PayPal AI Toolkit
A plugin that integrates PayPal's APIs and MCP server into your AI coding workflow. Get AI-assisted help with PayPal payments, subscriptions, invoices, disputes, and more — in Claude Code, OpenAI Codex, Cursor, IBM Bob, and other compatible agents.
Features
- Best practices Skill — auto-injects PayPal API knowledge when you're working on payment integrations
- Commands — quick reference commands for common developer tasks (Claude Code and Cursor)
- Hooks — automatically checks PayPal best practices before writing integration code
- MCP Server integration — connects your agent to PayPal's sandbox MCP servers for direct API operations via natural language

Installation
Prerequisites
- A PayPal Developer account at https://developer.paypal.com
- A PayPal sandbox access token
- Claude Code (
claude --version), OpenAI Codex (codex --version), Cursor, and/or IBM Bob
Claude Code
PayPal AI Toolkit is available on the official Anthropic marketplace, which Claude Code adds automatically. Install it with:
/plugin install paypal@claude-plugins-official
Then run /reload-plugins to activate it.
Local / development install
To work on the plugin itself, clone the repo and load it directly instead:
git clone https://github.com/paypal/AI-Toolkit.git
Then start Claude Code with the plugin loaded:
cd your-project/
claude --plugin-dir /path/to/AI-Toolkit
OpenAI Codex
Add the PayPal marketplace, then install the plugin:
codex plugin marketplace add paypal/AI-Toolkit
codex plugin add paypal@paypal-ai-toolkit
Local / development install
git clone https://github.com/paypal/AI-Toolkit.git
codex plugin marketplace add /path/to/AI-Toolkit
codex plugin add paypal@paypal-ai-toolkit
Restart Codex after installing so skills and the sandbox MCP server load.
Cursor
Add this repository as a marketplace, then install the plugin:
cursor-agent plugin marketplace add https://github.com/paypal/AI-Toolkit
Then open Customize (or type /plugin) and install paypal at user or project scope.
Once the plugin is listed on the Cursor marketplace, you can also install it from chat with /add-plugin paypal.
Local / development install
Load the checkout directly (no marketplace or admin setting required):
git clone https://github.com/paypal/AI-Toolkit.git
cursor-agent --plugin-dir /path/to/AI-Toolkit
You can also copy the repo into Cursor's local plugin folder. This requires Allow Local Plugin Imports (Dashboard → Settings → Security & Identity → Marketplace and Plugins), which is off by default on some teams. Symlinks that point outside this folder are skipped:
git clone https://github.com/paypal/AI-Toolkit.git ~/.cursor/plugins/local/paypal
cursor-agent plugin marketplace add only accepts a git URL (for example https://github.com/paypal/AI-Toolkit), not a local path.
Restart Cursor or run Developer: Reload Window, then confirm skills, commands, and paypal-sandbox in Customize.
IBM Bob
Clone the repository and open it in IBM Bob (Bob IDE or Bob Shell):
git clone https://github.com/paypal/AI-Toolkit.git
cd AI-Toolkit
IBM Bob automatically discovers and loads skills from .bob/skills/ and the sandbox MCP server from .bob/mcp.json. The Bob config connects to https://mcp.sandbox.paypal.com/mcp over Streamable HTTP and contains no credentials. When Bob first connects, it prompts you to authenticate in your browser (see MCP OAuth authentication). Check the connection status under Settings → MCP. IBM Bob users can skip the sandbox access token section below.
Configure your sandbox access token
-
Generate a sandbox access token:
curl -X POST https://api-m.sandbox.paypal.com/v1/oauth2/token \
-u "YOUR_SANDBOX_CLIENT_ID:YOUR_SANDBOX_CLIENT_SECRET" \
-d "grant_type=client_credentials" \
| jq -r .access_token
Get the client ID and secret from the PayPal Developer Dashboard.
-
Paste the single-line value into your agent's config.
Claude Code — merge into the existing "env" block in ~/.claude/settings.json:
"env": {
"PAYPAL_SANDBOX_ACCESS_TOKEN": "A21AA…"
}
OpenAI Codex — merge into ~/.codex/config.toml:
[shell_environment_policy.set]
PAYPAL_SANDBOX_ACCESS_TOKEN = "A21AA…"
Cursor — after installing the plugin, open Customize → Plugins → PayPal → Configure and paste the token. Cursor stores it and substitutes ${PAYPAL_SANDBOX_ACCESS_TOKEN} in .mcp.json. A GUI-launched Cursor does not inherit export from ~/.zshrc.