Universal MCP server for 8+ AI platforms. Connects Claude, Cursor, VS Code, Windsurf, Zed, Codex, and Gemini to 298+ AgentPMT tools.
npm install @agentpmt/mcp-router> One install. Unlimited tools. Seamless Agent Payments. Connect your AI agent to everything with the AgentPMT marketplace of tools, data sources, and specialty agents—powered by Agent Blockchain Wallet infrastructure and instant stablecoin payments.
Agent Payment MCP is a dynamic MCP router that gives your AI assistant access to an entire marketplace of tools through a single installation, with built-in Agent Payments infrastructure for seamless pay-per-use billing.
This package runs a local MCP server over stdio (JSON-RPC) and proxies requests to the hosted AgentPMT MCP server:
- Your AI tool talks to this package via stdio
- The router connects to https://api.agentpmt.com/mcp via streamable-http (HTTPS)
- Tool discovery and execution happens via the hosted MCP server (no local tool execution)
How it works:
1. You install the router once
2. You approve tools from your dashboard
3. Your AI agent can immediately use those tools—no additional installs required
4. Agent stablecoin payments handle all billing automatically via your Agent Blockchain Wallet
Key benefits:
- One install, unlimited access — Add new tools from the marketplace anytime. No reinstalls, no config changes.
- Agent Blockchain Wallet — A secure digital wallet is deployed for your account, enabling programmable Agent Payments with customizable rules and limits.
- Agent stablecoin payments — Pay for tools using USDC with instant settlement on Base. Only pay for what you use.
- x402Direct compatible — Built on the x402 Direct payment protocol for direct, verifiable agent-to-vendor transactions. x402direct.org
- Centralized control — Approve tools, set budgets, and manage access for your whole team from one dashboard.
- Full audit trail — Every tool call and Agent Payment is logged with complete context for compliance and debugging.
- Works everywhere — Supports Claude Desktop, Cursor, VS Code, Windsurf, Zed, and more.
---
Agent Payment MCP leverages blockchain-native infrastructure to enable seamless Agent Payments:
- Agent Blockchain Wallet — When you activate your account, a digital wallet is automatically deployed on your behalf. This wallet powers all Agent stablecoin payments through secure smart contract infrastructure.
- USDC Stablecoin — All Agent Payments are settled in USDC, the world's largest regulated digital dollar with 1:1 USD backing.
- x402Direct Protocol — Agent Payments use the x402 payment standard, enabling instant, verifiable transactions directly from your Agent Blockchain Wallet to vendors without intermediaries.
- Recorded on Base — Every Agent Payment is verified and recorded on the Base L2 blockchain, providing an immutable audit trail.
---
1. Go to https://www.agentpmt.com and create a free account
2. Your Agent Blockchain Wallet will be deployed automatically
3. Copy your Bearer Token from the dashboard
4. Fund your wallet with USDC to enable Agent Payments
``bashInstall the Agent Payment router
npm install -g @agentpmt/mcp-router
The installer will:
- Auto-detect your installed AI tools (Claude, Cursor, VS Code, etc.)
- Prompt for your bearer token
- Configure everything automatically for Agent Payments
$3
Restart your AI tool. That's it—your approved marketplace tools are now available with Agent stablecoin payments handling all billing.
$3
Need separate budgets for different projects or teams? Agent Payment MCP supports granular budget controls:
`bash
agentpmt-setup
`Each run creates a separate MCP server entry with its own bearer token (typically one per budget) linked to your Agent Blockchain Wallet. Use different server names when prompted (e.g.,
agentpmt-projectA, agentpmt-projectB) to keep them organized.---
Supported Platforms
The Agent Payment installer auto-detects and configures all of these:
| Platform | Config Location |
|----------|-----------------|
| Claude Desktop |
claude_desktop_config.json |
| Claude Code CLI | ~/.claude.json |
| Cursor | ~/.cursor/mcp.json |
| VS Code | ~/.config/Code/User/mcp.json |
| Windsurf | Auto-detected |
| Zed | ~/.config/zed/settings.json |
| OpenAI Codex CLI | Auto-detected |
| Google Gemini CLI | Auto-detected |---
How It Works
`
Your AI Assistant (Claude, Cursor, etc.)
↓ stdio (JSON-RPC)
Agent Payment Router (this package, runs locally)
↓ streamable-http (HTTPS)
AgentPMT Hosted MCP Server (https://api.agentpmt.com/mcp)
↓
Tool Marketplace → Agent Payments via x402Direct → Tools execute remotely
`1. Your AI requests available tools — The Agent Payment router fetches your personalized tool catalog from the API
2. Tools appear dynamically — Only tools you've approved on your dashboard are shown
3. Tool execution with Agent Payments — When the AI calls a tool, Agent stablecoin payments are processed via your Agent Blockchain Wallet using the x402 protocol
4. Billing & logging — Each call is metered via x402Direct, logged, and enforced against your budget
Auto-refresh: The tool catalog updates every 30 minutes. Approve a new tool on your dashboard and it appears in your AI assistant automatically.
---
Agent Payment Features
$3
Your secure digital wallet powers all Agent Payments. Built on Circle's enterprise-grade infrastructure with:
- Programmable spending rules per agent
- Customizable limits and approved vendors
- Full control over every transaction$3
All Agent Payments are settled in USDC on the Base network:
- Near-instant settlement (~6 seconds)
- Minimal transaction fees (~$0.01)
- No currency conversion needed
- Works globally without traditional banking rails$3
Agent Payments leverage the x402 protocol for direct, verifiable transactions:
- No third-party payment processors
- Cryptographically verifiable via smart contract events
- Immutable payment records on-chain
- True peer-to-peer Agent Payments from wallet to vendor---
For Teams & Organizations
- Team-wide tool approval — Enable or restrict tools across your entire organization with one click
- Shared Agent Blockchain Wallet — Manage Agent Payments for your whole team from a single wallet
- Budget controls — Set spending limits per team, per project, or per individual with granular Agent Payment rules
- Instant deployment — New tools propagate to all team members within 30 minutes
- Complete auditability — Every tool call and Agent Payment logged with user, parameters, response, cost, and timestamp
---
Environment Variables
Required:
-
AGENTPMT_BEARER_TOKEN - Your bearer token from the AgentPMT dashboardOptional:
-
X_INSTANCE_METADATA - JSON string with client/platform metadata (written by agentpmt-setup)---
Manual Configuration
If the Agent Payment installer doesn't auto-detect your AI tool, you can configure it manually.
Universal config (works with most MCP-compatible tools):
`json
{
"mcpServers": {
"agentpmt": {
"command": "npx",
"args": ["--package=@agentpmt/mcp-router@latest", "agentpmt-router"],
"env": {
"AGENTPMT_BEARER_TOKEN": "your-bearer-token"
}
}
}
}
`Add this to your AI tool's MCP config file (see Supported Platforms for file locations).
$3
Zed uses a different configuration structure:
`json
{
"context_servers": {
"agentpmt": {
"command": {
"path": "npx",
"args": ["--package=@agentpmt/mcp-router@latest", "agentpmt-router"],
"env": {
"AGENTPMT_BEARER_TOKEN": "your-bearer-token"
}
}
}
}
}
`$3
Postman's MCP client can connect via stdio.
- Transport:
STDIO
- Command: npx --package=@agentpmt/mcp-router@latest agentpmt-routerSet environment variables in Postman's MCP request:
-
AGENTPMT_BEARER_TOKEN$3
- Cursor: Open Settings → Features → MCP and click Refresh
- Zed: Check Agent Panel → Server Extensions for a green indicator
- All others: Restart the application
---
Troubleshooting
$3
1. Restart your AI tool completely (close and reopen)
2. Check that you've approved tools on your dashboard
3. Visit the Marketplace to add tool connections
4. Verify your keys are correct (no extra spaces when copying)
$3
1. Check your Agent Blockchain Wallet balance — Ensure you have sufficient USDC
2. Verify budget limits — Your spending limit may have been reached
3. Check x402Direct status — View transaction history on your dashboard
$3
- Claude Desktop:
%APPDATA%\Claude\logs\ (Windows) or ~/Library/Application Support/Claude/logs/ (macOS)
- Look for [AgentPMT] entries$3
Contact support at https://www.agentpmt.com
---
Uninstall
`bash
npm uninstall -g @agentpmt/mcp-router
`Optionally, remove the
agentpmt` section from your AI tools' config files (see Supported Platforms for locations).---
- Agent Blockchain Wallet — Deployed on secure, regulated Circle infrastructure
- API keys stored locally in your AI tool's config file
- All communication over HTTPS
- x402Direct payments verified on-chain for complete transparency
- Agent stablecoin payments settled on Base L2 with Ethereum security
- No telemetry beyond API billing
- Budget enforcement — spending limits enforced server-side before any Agent Payment is processed
---
- Dashboard: https://www.agentpmt.com
- Marketplace: https://www.agentpmt.com/marketplace
- NPM Package: @agentpmt/mcp-router
- x402Direct Specification: x402direct.org
---
Proprietary — See https://www.agentpmt.com/terms