
A stateless streamable HTTP MCP server for interacting with the official source of government spending data.

A Java implementation of a PayPal MCP server offering tools for analyzing and improving payment processing.
PayPal Java MCP Server is cataloged as an MCP server attributed to kumartheashwani. A Java implementation of a PayPal MCP server offering tools for analyzing and improving payment processing. It is categorized under finance crypto. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: MIT License. Check the source repository's current license and terms before using, modifying or distributing this software.
Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for PayPal Java MCP Server are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
It requires a merchantId and optionally accepts a timeframe (default last_30_days) and a transactionType filter (default all).
It supports initialize, getTools, and executeFunction JSON-RPC methods.
README.md · 9036a96d6da6 · Fetched 2026-11-13 12:53:44 UTC
Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.
Showing the last retrieved documentation snapshot; check the source for current changes.
This is a Java implementation of a PayPal MCP (Merchant Capability Platform) server that provides tools for analyzing and improving payment processing.
To run the server in web mode, which exposes a REST API on port 8080:
java -jar target/paypal-java-mcp-server-0.0.1-SNAPSHOT.jar
In this mode, you can access the API at http://localhost:8080/api/mcp.
To run the server in stdio mode, which uses JSON-RPC over standard input/output:
java -Dspring.profiles.active=stdio -Dspring.main.web-application-type=NONE -Djsonrpc.stdio.interactive=true -jar target/paypal-java-mcp-server-0.0.1-SNAPSHOT-stdio.jar
In this mode, the server reads JSON-RPC requests from stdin and writes responses to stdout. All logs are written to stderr and a log file.
IMPORTANT: The JSON-RPC stdio interface requires stdin/stdout connectivity. When deploying, ensure that the process has access to stdin/stdout, typically by running it in interactive mode.
You can test the stdio mode using the provided test script:
./test-stdio.sh
If you need to run the server in a non-interactive environment (where stdin/stdout connectivity is not available), you can use the provided start-non-interactive.sh script:
./start-non-interactive.sh
This script:
-Djsonrpc.stdio.interactive=false flagThe server will pre-initialize all capabilities and tools, so it's ready to respond to requests even without initial input. You can then interact with the server by writing to the input pipe and reading from the output pipe:
# Send a request
echo '{"jsonrpc":"2.0","method":"getTools","id":"1"}' > /path/to/input_pipe
# Read responses
cat /path/to/output_pipe
When running the server in a Docker container, you MUST use the -i flag to provide stdin connectivity:
docker run -i paypal-mcp-jsonrpc
The provided run-docker.sh script handles this for you:
./run-docker.sh
The server supports the following JSON-RPC methods:
Initializes the server and returns its capabilities:
{"jsonrpc":"2.0","method":"initialize","id":"1"}
Returns a list of available tools:
{"jsonrpc":"2.0","method":"getTools","id":"2"}
Executes a function with the specified arguments:
{"jsonrpc":"2.0","method":"executeFunction","params":{"function":"calculate","arguments":{"operation":"add","a":5,"b":3}},"id":"3"}
This server is designed to be deployed with Smithery, which requires the JSON-RPC over stdio interface.
To prepare the server for Smithery deployment:
./prepare-smithery.sh
This will create a smithery-deploy directory with all the necessary files for deployment, including:
The server includes a smithery-config.json file that configures the server for Smithery:
{
"name": "paypal-java-mcp-server",
"type": "stdio",
"interactive": true,
"command": "java",
"args": [
"-Dspring.profiles.active=stdio",
"-Dspring.main.web-application-type=NONE",
"-DLOG_FILE=/logs/mcp-server.log",
"-Dlogging.config=classpath:logback-stdio.xml",
"-Djsonrpc.stdio.interactive=true",
"-jar",
"/app/app.jar"
]
}
CRITICAL: When using the server with Smithery, ensure that:
"interactive": true flag is set in the Smithery configuration-Djsonrpc.stdio.interactive=true argument is included in the startup commandstart-non-interactive.sh script insteadIf your Smithery environment does not support interactive processes, you have two options:
Use the start-non-interactive.sh script: This script creates named pipes and handles the stdin/stdout connectivity for you.
Modify the Smithery configuration: Set "interactive": false in the Smithery configuration and ensure the server is started with the -Djsonrpc.stdio.interactive=false flag.
Configure the application in application.properties:
# Server configuration
server.port=8080
# Logging
logging.level.com.example.mcpserver=DEBUG
Build the application:
mvn clean package
curl http://localhost:8080/api/v1/health
curl -X POST http://localhost:8080/api/v1/completions \
-H "Content-Type: application/json" \
-d '{
"query": "How can I improve my authorization rate?",
"messages": [
{
"role": "system",
"content": "You are a helpful PayPal assistant."
},
{
"role": "user",
"content": "I need to improve my authorization rate. My merchant ID is MERCH123."
}
],
"context": {
"merchantId": "MERCH123"
}
}'
curl -X POST http://localhost:8080/api/v1/tools/improveAuthorizationRate/execute \
-H "Content-Type: application/json" \
-d '{
"merchantId": "MERCH123",
"timeframe": "last_30_days",
"transactionType": "card"
}'
curl -X POST http://localhost:8080/api/v1/tools/calculate/execute \
-H "Content-Type: application/json" \
-d '{
"operation": "multiply",
"a": 6,
"b": 7
}'
The JSON-RPC over stdio interface accepts JSON-RPC 2.0 requests on stdin and writes responses to stdout. Each request and response is a single line of JSON.
{"jsonrpc":"2.0","method":"completions","params":{"query":"How can I improve my authorization rate?","messages":[{"role":"system","content":"You are a helpful PayPal assistant."},{"role":"user","content":"I need to improve my authorization rate. My merchant ID is MERCH123."}],"context":{"merchantId":"MERCH123"}},"id":"1"}
{"jsonrpc":"2.0","method":"executeFunction","params":{"function":"improveAuthorizationRate","arguments":{"merchantId":"MERCH123","timeframe":"last_30_days","transactionType":"card"}},"id":"2"}
{"jsonrpc":"2.0","method":"executeFunction","params":{"function":"calculate","arguments":{"operation":"multiply","a":6,"b":7}},"id":"3"}
{
"content": "Based on the analysis of your authorization rates, here are the recommendations:
Current Authorization Rate: 85.3%
Current Decline Rate: 14.7%
Total Transactions: 12500
Top Decline Reasons:
- insufficient funds: 42.5%
- risk triggers: 23.8%
- expired card: 12.3%
- invalid data: 10.7%
- other: 10.7%
Recommendations to Improve Authorization Rate:
1. Implement Account Updater (Priority: high, Est. Impact: +3.5%)
Use PayPal's Account Updater service to automatically update expired or replaced cards
2. Optimize AVS Settings (Priority: medium, Est. Impact: +2.1%)
Adjust Address Verification Service settings to reduce false declines
3. Implement Intelligent Retry Logic (Priority: high, Est. Impact: +4.2%)
Add smart retry logic for declined transactions with specific reason codes
4. Review Risk Rules (Priority: medium, Est. Impact: +2.8%)
Analyze and adjust risk rules to reduce false positives",
"toolCalls": [
{
"id": "12345-67890",
"type": "function",
"function": {
"name": "improveAuthorizationRate",
"arguments": "{\"merchantId\":\"MERCH123\",\"timeframe\":\"last_30_days\",\"transactionType\":\"all\"}"
}
}
],
"metadata": {
"merchantId": "MERCH123",
"timeframe": "last_30_days"
}
}
{"jsonrpc":"2.0","result":{"content":"Based on the analysis of your authorization rates, here are the recommendations:\n\nCurrent Authorization Rate: 85.3%\nCurrent Decline Rate: 14.7%\nTotal Transactions: 12500\n\nTop Decline Reasons:\n- insufficient funds: 42.5%\n- risk triggers: 23.8%\n- expired card: 12.3%\n- invalid data: 10.7%\n- other: 10.7%\n\nRecommendations to Improve Authorization Rate:\n1. Implement Account Updater (Priority: high, Est. Impact: +3.5%)\n Use PayPal's Account Updater service to automatically update expired or replaced cards\n\n2. Optimize AVS Settings (Priority: medium, Est. Impact: +2.1%)\n Adjust Address Verification Service settings to reduce false declines\n\n3. Implement Intelligent Retry Logic (Priority: high, Est. Impact: +4.2%)\n Add smart retry logic for declined transactions with specific reason codes\n\n4. Review Risk Rules (Priority: medium, Est. Impact: +2.8%)\n Analyze and adjust risk rules to reduce false positives","toolCalls":[{"id":"12345-67890","type":"function","function":{"name":"improveAuthorizationRate","arguments":"{\"merchantId\":\"MERCH123\",\"timeframe\":\"last_30_days\",\"transactionType\":\"all\"}"}}],"metadata":{"merchantId":"MERCH123","timeframe":"last_30_days"}},"id":"1"}
This tool analyzes transaction data and provides recommendations to improve authorization rates.
Parameters:
merchantId (required): The merchant ID to analyzetimeframe (optional): The timeframe for analysis (default: "last_30_days")transactionType (optional): Transaction type filter (default: "all")This tool performs basic math operations.
Parameters:
operation (required): The operation to perform (add, subtract, multiply, divide)a (required): First operandb (required): Second operandThe project includes Docker support for both the REST API server and the JSON-RPC stdio server.
docker-compose build
docker build --target rest-api -t paypal-mcp-rest-api .
docker build -f Dockerfile.smithery -t paypal-mcp-jsonrpc .
docker run -p 8080:8080 paypal-mcp-rest-api
The JSON-RPC server reads from stdin and writes to stdout, so it MUST be run with interactive mode:
docker run -i paypal-mcp-jsonrpc
Or use the provided script:
./run-docker.sh
Start the REST API server:
docker-compose up rest-api
Note: The JSON-RPC stdio server is not typically run directly with docker-compose since it requires stdin/stdout interaction.
If you see an error indicating that the server's tool list is not accessible via a network connection, this is likely because:
-Djsonrpc.stdio.interactive=true flag is missing from the startup commandSolution:
-i flag if using Docker-Djsonrpc.stdio.interactive=true flag to the startup commandstart-non-interactive.sh script if running in a non-interactive environmentIf the server fails to initialize in a non-interactive environment:
start-non-interactive.sh script, which is specifically designed for non-interactive environments-Djsonrpc.stdio.interactive=false flagSolution:
./start-non-interactive.sh
If the server doesn't respond to requests:
Solution:
test-stdio.sh script to verify it works correctlystart-non-interactive.sh script and check the named pipesThis project is licensed under the MIT License - see the LICENSE file for details.
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for PayPal Java MCP Server from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/paypal-java-mcp-server)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.
No reviewed package or image identity; download statistics are not listed yet.
Alternative and complementary servers in the same category

A stateless streamable HTTP MCP server for interacting with the official source of government spending data.

A hosted, remote MCP server for Fortnox that lets AI assistants answer questions from a company's bookkeeping and propose changes for approval before writing them.

OptimistFi is a read-only remote MCP server that provides perpetual futures market data, perps prop firm rules and pricing, and US equity investment research.