@imazhar101/paypal-mcp
Provides tools for interacting with the PayPal REST API, including reading transactions, balances, invoices, orders, captures, disputes, billing plans, and subscriptions, as well as optional write tools for creating/sending invoices and refunds.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@@imazhar101/paypal-mcplist my recent transactions"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
@imazhar101/paypal-mcp
A lite Model Context Protocol server for PayPal.
Unlike PayPal's official @paypal/mcp (which pulls in the entire LangChain / Vercel-AI agent-toolkit and expects a pre-minted, short-lived access token), this server is intentionally small:
No heavy dependencies — just
@modelcontextprotocol/sdk+zod. Calls the PayPal REST API directly withfetch.Owns its token lifecycle — you give it a durable client id + secret; it mints, caches, and refreshes the
client_credentialsaccess token itself. Proactive refresh (expiry skew) + reactive refresh (re-mint + retry once on a 401). A long-lived host (e.g. an MCP gateway) can spawn one child per merchant with only the static client-id/secret in its env and never babysit token expiry.Read-only by default — this server handles money. Write/refund/payout tools are not registered unless you opt in with
PAYPAL_READONLY=0.
Install
npm install -g @imazhar101/paypal-mcpRelated MCP server: PayPal MCP Server
Configure
Env var | Required | Default | Notes |
| yes | — | PayPal REST app client id |
| yes | — | PayPal REST app secret |
| no |
|
|
| no |
|
|
Create a REST app and obtain credentials at the PayPal Developer Dashboard. The app must have the relevant features enabled (Invoicing, Transaction Search, etc.) or those tools will return 403 NOT_AUTHORIZED.
Run (stdio)
PAYPAL_CLIENT_ID=... PAYPAL_CLIENT_SECRET=... PAYPAL_ENVIRONMENT=SANDBOX paypal-mcpClaude Code / MCP client config
{
"mcpServers": {
"paypal": {
"command": "npx",
"args": ["-y", "@imazhar101/paypal-mcp"],
"env": {
"PAYPAL_CLIENT_ID": "...",
"PAYPAL_CLIENT_SECRET": "...",
"PAYPAL_ENVIRONMENT": "SANDBOX"
}
}
}
}Tools
Read-only (always registered):
Tool | PayPal API |
| mints a token; reports environment |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Write tools (create/send invoice, refund, …) are a deliberate follow-up gated behind PAYPAL_READONLY=0.
License
MIT
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/imazhar101/paypal-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server