Mcp Coinbase Cdp

io.github.codespar由 GitHub 帳號 codespar 發布v0.1.1更新於 Oct 24, 2026

MCP server for Coinbase Developer Platform (CDP) — Trading, Wallets, Payments under one CDP key

已驗證STDIO僅桌面金融商業與電商

概覽

AI 產生的概覽

面向 Coinbase Developer Platform 的本機 MCP 伺服器,讓助理用同一把 CDP 金鑰管理兌換、錢包與鏈上付款。

可以做什麼
列出、建立、查詢與取消鏈上兌換,包含狀態、成交數量、gas 與交易雜湊。建立與列出錢包、依 id 取得錢包,並列出跨地址與網路的資產餘額。從錢包發起轉帳,並查詢單筆或歷史交易。建立、列出、查詢與取消給收款方的鏈上對外付款。
適用情境
當你想在桌面 MCP 用戶端中讓助理操作 Coinbase Developer Platform 的交易、錢包或付款功能,而不是使用獨立的 Advanced Trade 或 Commerce 伺服器時使用。
執行需求
以 npm 套件形式在本機執行(需要 Node.js),預設走 stdio;設定 MCP_HTTP 後可透過 HTTP 執行。需要 CDP 帳戶與兩個環境變數:COINBASE_CDP_KEY_NAME(金鑰 id)和 COINBASE_CDP_PRIVATE_KEY(完整 PEM 區塊,含 BEGIN/END 行)。需要連線至 CDP API 主機的網路。
安裝前請注意
私鑰是用來簽署每個請求的機密,避免寫入日誌或共用設定;該 PEM 只能下載一次。工具可建立錢包、發起轉帳、建立付款與兌換、取消待處理項目,會實際轉移鏈上資金。核准任何寫入或送出操作前請先核對。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Mcp Coinbase Cdp,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

@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

ServerCoinbase surfaceAuth
@codespar/mcp-coinbaseAdvanced Trade exchange (legacy retail)HMAC API keys (CB-ACCESS-*)
@codespar/mcp-coinbase-commerceCommerce merchant gateway (accept BTC/ETH/USDC at checkout)API key (X-CC-Api-Key)
@codespar/mcp-coinbase-cdpDeveloper 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)

ToolPurpose
list_quotesList recent swap quotes minted under the authenticated CDP account.
create_swapCreate an onchain swap between two assets.
get_swapGet a single swap by id — full status, executed amounts, gas, tx hash.
cancel_swapCancel a pending swap before it lands onchain.

Wallets (7)

ToolPurpose
create_walletCreate a new wallet (smart / embedded / MPC).
list_walletsList wallets under the authenticated CDP account.
get_walletGet a single wallet by id.
list_balancesList asset balances across all addresses + networks.
transferSend a transfer from a wallet to a destination address.
get_transactionGet a single transaction by id.
list_transactionsList historical transactions for a wallet.

Payments (4)

ToolPurpose
create_paymentCreate an onchain payment (outbound transfer to a payee).
list_paymentsList historical payments.
get_paymentGet a single payment by id.
cancel_paymentCancel a pending payment before it lands onchain.

Install

bash
npm install -g @codespar/mcp-coinbase-cdp

Environment

bash
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/END lines. When supplying via shell env, wrap in double quotes and preserve newlines (or use $'...' / a .env file).

Authentication

CDP signs every request with a fresh ES256 JWT in the Authorization: Bearer … header.

JWT claims (per request):

ClaimValue
subCOINBASE_CDP_KEY_NAME
iss"cdp"
aud["cdp_service"]
nbfnow (unix seconds)
expnow + 120
uri"<METHOD> api.cdp.coinbase.com<path>" (path includes any query string)

JWT header:

FieldValue
alg"ES256"
typ"JWT"
kidCOINBASE_CDP_KEY_NAME
noncerandom 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

bash
# 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

來源:packages/crypto/coinbase-cdp/README.md,提交 d0a519a

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.1.1最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分