New:Socket for Asana Is Now Available.Learn more
Get Started

@codespar/mcp-coinbase-commerce

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@codespar/mcp-coinbase-commerce

MCP server for Coinbase Commerce — global crypto merchant payments. Accept BTC, ETH, USDC and more at checkout with hosted charges, checkouts, and invoices.

npmnpm
Version
0.2.0
Version published
Maintainers
1
Created
Source

@codespar/mcp-coinbase-commerce

MCP server for Coinbase Commerce — global crypto merchant payments.

Coinbase Commerce is the merchant-accept side of crypto. Your store prices an order in local fiat (USD, BRL, EUR, MXN, ...), the buyer settles in BTC / ETH / USDC / and other supported assets, and Coinbase settles to you in the crypto or fiat of your choice.

Positioning vs the rest of the catalog

ServerUse caseDirection
@codespar/mcp-coinbase-commerceMerchants accept crypto at checkoutBuyer pays merchant
@codespar/mcp-unblockpayBRL / MXN <-> USDC corridorValue transfer
@codespar/mcp-moonpayEnd-user fiat <-> crypto (100+ assets)Onramp / offramp
@codespar/mcp-transakEnd-user fiat <-> crypto (broad geo)Onramp / offramp

Use Coinbase Commerce when an agent needs to bill a buyer in crypto — hosted charge page, reusable checkout, or directed invoice.

Tools

ToolPurpose
create_chargeCreate a one-time crypto charge priced in fiat
retrieve_chargeLook up a charge by id or short code
list_chargesList charges (paginated)
cancel_chargeCancel an unpaid charge
resolve_chargeManually mark a charge as paid
create_checkoutCreate a reusable hosted checkout (product page)
retrieve_checkoutLook up a checkout by id
list_eventsList lifecycle events (same payload as webhooks)
create_invoiceCreate an invoice directed at a named recipient

Install

npm install @codespar/mcp-coinbase-commerce

Environment

COINBASE_COMMERCE_API_KEY="..."         # API key (required, secret)
COINBASE_COMMERCE_API_VERSION="..."     # Optional. Defaults to 2018-03-22.

Create an API key at https://beta.commerce.coinbase.com/settings/security.

Authentication

Every request carries two headers:

X-CC-Api-Key: <COINBASE_COMMERCE_API_KEY>
X-CC-Version: 2018-03-22

The version header is required. Pin it so future API changes don't silently break your integration.

Run

# stdio (default — for Claude Desktop, Cursor, etc)
npx @codespar/mcp-coinbase-commerce

# HTTP (for server-to-server testing)
MCP_HTTP=true MCP_PORT=3000 npx @codespar/mcp-coinbase-commerce

License

MIT

Keywords

mcp

FAQs

Package last updated on 25 Apr 2026

Related posts