Onchain swap / trade API on Coinbase Developer Platform. Uses ES256 JWT (ECDSA P-256) — distinct from Advanced Trade's HMAC keys. Endpoint set provisional; package skeleton pending.
Coinbase CDP Trading gives your agent 4 tools it calls directly — pick the ones it needs, in Claude, Cursor, or any MCP client.
// Your agent calls a tool directly — no glue code.
// CodeSpar's managed tier handles OAuth2, token rotation and rate limits.
const result = await session.call("list_resources", { /* ... */ });$ npm install @codespar/mcp-coinbase-cdpAdd this entry to your claude_desktop_config.json (or any MCP-compatible client config).
{
"mcpServers": {
"coinbase-cdp-trading": {
"command": "npx",
"args": [
"-y",
"@codespar/mcp-coinbase-cdp"
],
"env": {}
}
}
}Each tool is independent — your agent loads only what it needs to reduce context and response time.
Tool list is being indexed. Check the source on GitHub in the meantime.
MCP is a protocol — any framework that speaks it can mount this server.