PayPal Account Updater MCP server

Integrates with PayPal's Account Updater service to automatically maintain current payment card information for merchants across multiple environments through subscription management and webhook processing.
Back to servers
Provider
Rishabh Sharma
Release date
Mar 17, 2025
Language
Python

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.

Installation

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

Running the MCP Server

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

Integrating with Claude

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"
      }
    }
  }
}

Available Tools

The connector provides several tools for managing PayPal Account Updater integrations:

getFreshCardsSolve

This tool provides information about PayPal Account Updater as a solution for card freshness management.

create_subscription

Create a new account status subscription in PayPal:

create_subscription(pan="4111111111111111", expiry_date="2025-12")

get_subscription

Retrieve details for an existing account status subscription:

get_subscription(subscription_id="SUB-1234567890")

subscribe_merchant_to_paypal_au_service

Provides instructions for subscribing merchant cards to the PayPal AU service.

setup_webhook_events_in_merchant_code_base

Sets up webhook event handling code in your merchant codebase:

setup_webhook_events_in_merchant_code_base(url="/path/to/merchant/codebase")

Webhook Integration

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.

Environment Configuration

The connector requires the following environment variables:

  • PAYPAL_CLIENT_ID: Your PayPal API client ID
  • PAYPAL_CLIENT_SECRET: Your PayPal API client secret
  • PAYPAL_ENVIRONMENT: The environment to use ("SANDBOX", "LIVE", or "MOCKDB")

Make sure these are properly set before running the MCP server.

How to add this MCP server to Cursor

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.

Adding an MCP server to Cursor globally

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"
            ]
        }
    }
}

Adding an MCP server to a project

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.

How to use the MCP server

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.

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later