Skip to content

feat(crypto/coinbase): @codespar/mcp-coinbase@0.1.0 MCP server#164

Open
fabianocruz wants to merge 1 commit into
mainfrom
feat/mcp-coinbase-package
Open

feat(crypto/coinbase): @codespar/mcp-coinbase@0.1.0 MCP server#164
fabianocruz wants to merge 1 commit into
mainfrom
feat/mcp-coinbase-package

Conversation

@fabianocruz

Copy link
Copy Markdown
Member

Summary

MCP server package for Coinbase Advanced Trade (the exchange / treasury / trading API). Mirrors the foxbit pattern (HMAC-SHA256 client-side signing per request).

Already published: `@codespar/mcp-coinbase@0.1.0` on npm.

13 tools

`list_accounts` · `get_account` · `list_products` · `get_product` · `get_best_bid_ask` · `get_market_trades` · `create_order` · `list_orders` · `get_order` · `cancel_orders` · `list_fills` · `get_transaction_summary` · `list_portfolios`

Input schemas match `codespar-enterprise/packages/api/src/catalog/coinbase.json` verbatim.

Signing

HMAC-SHA256 with unix-seconds timestamp (different from Foxbit's ms). Prehash `${ts}${UPPER_METHOD}${path_with_query}${body}` with no separators. Hex signature. Headers `CB-ACCESS-KEY` / `CB-ACCESS-TIMESTAMP` / `CB-ACCESS-SIGN`.

Auth scope

Env: `COINBASE_ACCESS_KEY` + `COINBASE_API_SECRET` — legacy HMAC keys minted from `coinbase.com/settings/api`. New JWT-ECDSA "Coinbase Cloud" keys are NOT supported — would require a 7th `auth_type` on the managed-tier backend (pending).

Files

  • `package.json` (31)
  • `tsconfig.json` (14)
  • `server.json` (46) — MCP canonical schema
  • `README.md` (136) — install / config / tools table / CDP caveat
  • `src/index.ts` (331) — HMAC helper + 13 dispatchers + stdio + http transport

Verification

`npm run build` clean. `node dist/index.js` waits on stdio without crashing. Published successfully.

🤖 Generated with Claude Code

MCP server for Coinbase Advanced Trade — global crypto exchange.
Mirrors the foxbit pattern (HMAC-signed REST per request).

13 tools: list_accounts / get_account / list_products / get_product
/ get_best_bid_ask / get_market_trades / create_order / list_orders
/ get_order / cancel_orders / list_fills / get_transaction_summary
/ list_portfolios.

Signing: HMAC-SHA256 with unix-seconds timestamp (different from
Foxbit which uses ms). Prehash: ${ts}${UPPER_METHOD}${path_with_query}${body}
with no separators. Hex signature. Headers CB-ACCESS-KEY /
CB-ACCESS-TIMESTAMP / CB-ACCESS-SIGN.

Env vars: COINBASE_ACCESS_KEY + COINBASE_API_SECRET (legacy HMAC keys
minted from coinbase.com/settings/api). New JWT-ECDSA Coinbase Cloud
keys are NOT supported — needs a 7th auth_type on backend (pending).

Files:
- package.json (31 lines)
- tsconfig.json (14)
- server.json (46) — MCP canonical schema (matches foxbit's local copy)
- README.md (136) — install / config / tools table / CDP caveat
- src/index.ts (331) — HMAC helper + 13 tool dispatchers + stdio + http transport

@codespar/mcp-coinbase@0.1.0 published to npm. Distinct from
@codespar/mcp-coinbase-commerce (merchant gateway) and pending CDP
package (onchain wallets / trading / payments).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant