mcp-coinbase-cdp MCP Server
MCP server for Coinbase Developer Platform (CDP) — Trading, Wallets, Payments under one CDP key
mcp-coinbase-cdp scores 45 (Fair), with no SPDX license recorded. It installs as a local process. It declares 14 tools. Filed under Finance. Package registries report about 73 downloads a week. Install configs are generated for 12 clients. Being listed in the registry is not the same as being vendor-official.
Fair trust
45 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- No license recorded.
License, quality and maintenance
Quality: Grade A
89/100 for listing completeness. Lost points: 1 of 14 tools barely described, short summary, no docs link.
How quality is graded
Where the 45 comes from
22 + 10 + 0 + 0 + 10 + 3 = 45. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 10 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 0 of 20 points.A clear, OSI-style open-source license.
License: 0 of 10 points.Not archived, a secure install path, a pinned version.
Security: 10 of 10 points.A real summary, a README with depth, listed tools.
Docs: 3 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "codespar-coinbase-cdp": { "command": "npx", "args": [ "-y", "@codespar/mcp-coinbase-cdp@0.1.1" ], "env": { "COINBASE_CDP_KEY_NAME": "", "COINBASE_CDP_PRIVATE_KEY": "YOUR_COINBASE_CDP_PRIVATE_KEY" } } }}
Environment variables
| Name | Required | Notes |
|---|---|---|
COINBASE_CDP_KEY_NAME | Required | CDP key id of the form organizations/<org>/apiKeys/<id>. Mint at https://portal.cdp.coinbase.com. |
COINBASE_CDP_PRIVATE_KEYSecret | Required | PEM-encoded ECDSA P-256 private key downloaded once at mint time from https://portal.cdp.coinbase.com. Pass the full PEM including BEGIN/END lines. |
Tools14Tool docs quality grade C
All capabilitiescancel_paymenttoolCancel a pending payment before it lands onchain.
cancel_swaptoolCancel a pending swap before it lands onchain.
create_paymenttoolCreate an onchain payment (outbound transfer to a payee).
create_swaptoolCreate an onchain swap between two assets.
create_wallettoolCreate a new wallet (smart / embedded / MPC).
get_paymenttoolGet a single payment by id.
get_swaptoolGet a single swap by id — full status, executed amounts, gas, tx hash.
get_transactiontoolGet a single transaction by id.
get_wallettoolGet a single wallet by id.
list_balancestoolList asset balances across all addresses + networks.
list_paymentstoolList historical payments.
list_quotestoolList recent swap quotes minted under the authenticated CDP account.
About
@codespar/mcp-coinbase-cdp
MCP server for the Coinbase Developer Platform (CDP) — single npm package covering three CDP product surfaces under one key:
- Trading — onchain swap / trade API
- Wallets — Smart / Embedded / MPC wallet primitives
- Payments — onchain outbound payment infrastructure
All three live on the same CDP account, share one ES256 JWT-signed key, and share one base URL (https://api.cdp.coinbase.com) — so they ship as one package, not three.
Positioning vs the rest of the catalog
| Server | Coinbase surface | Auth |
|---|---|---|
@codespar/mcp-coinbase | Advanced Trade exchange (legacy retail) | HMAC API keys (CB-ACCESS-*) |
@codespar/mcp-coinbase-commerce | Commerce merchant gateway (accept BTC/ETH/USDC at checkout) | API key (X-CC-Api-Key) |
@codespar/mcp-coinbase-cdp | Developer Platform (Trading + Wallets + Payments) | ES256 JWT (this package) |
Each surface has a separate API host, a separate key type, and a separate dashboard — they do not share credentials. Mint the right key for the surface you want.
Tools (15)
Trading (4)
| Tool | Purpose |
|---|---|
list_quotes | List recent swap quotes minted under the authenticated CDP account. |
create_swap | Create an onchain swap between two assets. |
get_swap | Get a single swap by id — full status, executed amounts, gas, tx hash. |
cancel_swap | Cancel a pending swap before it lands onchain. |
Wallets (7)
| Tool | Purpose |
|---|---|
create_wallet | Create a new wallet (smart / embedded / MPC). |
list_wallets | List wallets under the authenticated CDP account. |
get_wallet | Get a single wallet by id. |
list_balances | List asset balances across all addresses + networks. |
transfer | Send a transfer from a wallet to a destination address. |
get_transaction | Get a single transaction by id. |
list_transactions | List historical transactions for a wallet. |
Payments (4)
| Tool | Purpose |
|---|---|
create_payment | Create an onchain payment (outbound transfer to a payee). |
list_payments | List historical payments. |
get_payment | Get a single payment by id. |
cancel_payment | Cancel a pending payment before it lands onchain. |
Install
npm install -g @codespar/mcp-coinbase-cdp
Environment
COINBASE_CDP_KEY_NAME="organizations/<org>/apiKeys/<id>"
COINBASE_CDP_PRIVATE_KEY="-----BEGIN EC PRIVATE KEY-----
...
-----END EC PRIVATE KEY-----"
Mint the key (and download the PEM once — it is not recoverable later) at https://portal.cdp.coinbase.com. The same key authenticates Trading, Wallets, and Payments.
Important — the PEM must be the full multi-line block including
BEGIN/ENDlines. When supplying via shell env, wrap in double quotes and preserve newlines (or use$'...'/ a.envfile).
Authentication
CDP signs every request with a fresh ES256 JWT in the Authorization: Bearer … header.
JWT claims (per request):
| Claim | Value |
|---|---|
sub | COINBASE_CDP_KEY_NAME |
iss | "cdp" |
aud | ["cdp_service"] |
nbf | now (unix seconds) |
exp | now + 120 |
uri | "<METHOD> api.cdp.coinbase.com<path>" (path includes any query string) |
JWT header:
| Field | Value |
|---|---|
alg | "ES256" |
typ | "JWT" |
kid | COINBASE_CDP_KEY_NAME |
nonce | random 16-byte hex (per request) |
Signed with the ECDSA P-256 private key from COINBASE_CDP_PRIVATE_KEY. The PEM is imported once at startup and cached — only the JWT is minted per request.
Run
# stdio (default — for Claude Desktop, Cursor, etc.)
npx @codespar/mcp-coinbase-cdp
# HTTP (for server-to-server testing)
MCP_HTTP=true MCP_PORT=3000 npx @codespar/mcp-coinbase-cdp
Enterprise
Need governance, budget limits, and audit trails for agent-driven onchain transactions? CodeSpar Enterprise adds policy engine, payment routing, and compliance templates on top of these MCP servers.
License
MIT
Frequently asked questions
What is mcp-coinbase-cdp MCP Server?
MCP server for Coinbase Developer Platform (CDP) — Trading, Wallets, Payments under one CDP key
How do I install mcp-coinbase-cdp MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. mcp-coinbase-cdp MCP Server runs locally from the npm package @codespar/mcp-coinbase-cdp with the command npx -y @codespar/mcp-coinbase-cdp@0.1.1.
Does mcp-coinbase-cdp MCP Server support remote (HTTP) connections?
No remote endpoint is listed for mcp-coinbase-cdp MCP Server. It runs locally on your machine over stdio, started by your MCP client.
What tools does mcp-coinbase-cdp MCP Server provide?
mcp-coinbase-cdp MCP Server provides 14 tools, including cancel_payment, cancel_swap, create_payment, and create_swap. See the full tool list for descriptions and parameters.
How is mcp-coinbase-cdp MCP Server's trust score calculated?
mcp-coinbase-cdp MCP Server scores 45 out of 100 (Fair). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.