PayPal Java MCP Server logo

PayPal Java MCP Server

by kumartheashwani

This is a Java implementation of a PayPal MCP (Merchant Capability Platform) server that provides tools for analyzing and improving payment processing. It offers both a REST API and a JSON-RPC over stdio interface.

View on GitHub

Last updated: N/A

What is PayPal Java MCP Server?

The PayPal Java MCP Server is a Java-based server providing tools for analyzing and improving payment processing. It offers both a REST API for web clients and a JSON-RPC over stdio interface for integration with systems like Smithery.

How to use PayPal Java MCP Server?

The server can be run in web mode (REST API) or stdio mode (JSON-RPC). Web mode exposes an API on port 8080. Stdio mode uses standard input/output for communication. Docker deployment is also supported, with specific instructions for both modes. Configuration is done via application.properties.

Key features of PayPal Java MCP Server

  • JSON-RPC over HTTP API for web clients

  • JSON-RPC over stdio interface for Smithery integration

  • Tools for analyzing authorization rates

  • Basic calculator functionality for testing

Use cases of PayPal Java MCP Server

  • Analyzing authorization rates to identify areas for improvement

  • Integrating with Smithery for automated deployment and management

  • Performing basic calculations related to payment processing

  • Providing a platform for developing and deploying merchant capabilities

FAQ from PayPal Java MCP Server

How do I run the server in web mode?

Run the command java -jar target/paypal-java-mcp-server-0.0.1-SNAPSHOT.jar.

How do I run the server in stdio mode?

Run the command 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.

How do I deploy the server with Smithery?

Use the ./prepare-smithery.sh script to create a smithery-deploy directory with the necessary files and follow the instructions in the README.

What are the prerequisites for running the server?

Java 17 or higher and Maven 3.6 or higher are required.

What do I do if the server's tool list is not accessible?

Ensure you're using the JSON-RPC over stdio interface, the server is running in interactive mode (if applicable), and the -Djsonrpc.stdio.interactive=true flag is included in the startup command.