This MCP connector integrates with PayPal's Account Updater service to maintain up-to-date payment card information in your e-commerce system. It provides tools for subscribing cards to the service, retrieving subscription details, and processing webhook notifications for card updates.
Install the PayPal Account Updater Subscription Connector with these simple steps:
# Clone the repository
git clone https://github.com/rishabh17081/paypal-au-subscription-connector.git
# Install dependencies
pip install fastmcp requests
Before running the server, configure your environment variables:
# Set environment variables
export PAYPAL_CLIENT_ID="your_client_id"
export PAYPAL_CLIENT_SECRET="your_client_secret"
export PAYPAL_ENVIRONMENT="SANDBOX" # or "LIVE" or "MOCKDB"
# Run the MCP server
python -m fastmcp run paypal_au_subscription_mcp.py
To use the connector with Claude, add the MCP server to your Claude configuration:
{
"mcpServers": {
"paypal-au": {
"command": "python",
"args": ["-m", "fastmcp", "run", "/path/to/paypal_au_subscription_mcp.py"],
"env": {
"PAYPAL_CLIENT_ID": "your_client_id",
"PAYPAL_CLIENT_SECRET": "your_client_secret",
"PAYPAL_ENVIRONMENT": "SANDBOX"
}
}
}
}
The connector provides several tools for managing PayPal Account Updater integrations:
This tool provides information about PayPal Account Updater as a solution for card freshness management.
Create a new account status subscription in PayPal:
create_subscription(pan="4111111111111111", expiry_date="2025-12")
Retrieve details for an existing account status subscription:
get_subscription(subscription_id="SUB-1234567890")
Provides instructions for subscribing merchant cards to the PayPal AU service.
Sets up webhook event handling code in your merchant codebase:
setup_webhook_events_in_merchant_code_base(url="/path/to/merchant/codebase")
To receive real-time card update notifications, set up a webhook endpoint in your application. This endpoint will listen for and process PayPal's card update events. The connector includes sample code for implementing this webhook functionality.
The connector requires the following environment variables:
PAYPAL_CLIENT_ID
: Your PayPal API client IDPAYPAL_CLIENT_SECRET
: Your PayPal API client secretPAYPAL_ENVIRONMENT
: The environment to use ("SANDBOX", "LIVE", or "MOCKDB")Make sure these are properly set before running the MCP server.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > MCP and click "Add new global MCP server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"cursor-rules-mcp": {
"command": "npx",
"args": [
"-y",
"cursor-rules-mcp"
]
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.