feat(crypto/coinbase): @codespar/mcp-coinbase@0.1.0 MCP server#164
Open
fabianocruz wants to merge 1 commit into
Open
feat(crypto/coinbase): @codespar/mcp-coinbase@0.1.0 MCP server#164fabianocruz wants to merge 1 commit into
fabianocruz wants to merge 1 commit into
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
Verification
`npm run build` clean. `node dist/index.js` waits on stdio without crashing. Published successfully.
🤖 Generated with Claude Code