Coinbase Commerce

Finance and commerce

MCP server for Coinbase Commerce, crypto merchant payments (BTC/ETH/USDC); settle crypto or fiat.

Your AI app calls the Coinbase Commerce MCP server, which does the finance and commerce work and sends the result back to the chat.

About Coinbase Commerce

Coinbase Commerce is a community MCP server from codespar, filed in our directory under finance and commerce. MCP server for Coinbase Commerce, crypto merchant payments (BTC/ETH/USDC); settle crypto or fiat.

Coinbase Commerce runs on your own machine: your AI app starts it with the command npx -y @codespar/mcp-coinbase-commerce@0.2.2 and talks to it over standard input and output. It needs COINBASE_COMMERCE_API_KEY set before Coinbase Commerce starts.

Coinbase Commerce is listed in the official MCP registry as io.github.codespar/mcp-coinbase-commerce, version 0.2.2.

At a glance

Publisher
codespar (community)
Runs
Locally on your machine
Install from
Node.js package on npm: @codespar/mcp-coinbase-commerce
Written in
TypeScript
License
MIT
GitHub stars
278
Official MCP registry
io.github.codespar/mcp-coinbase-commerce

How to set up Coinbase Commerce

  1. Install Node.js on the machine that runs your AI app, because Coinbase Commerce starts with npx and downloads its package on first run.
  2. Create COINBASE_COMMERCE_API_KEY for Coinbase Commerce in the connected service's own settings, scoped to the smallest permissions the job needs.
  3. Add Coinbase Commerce to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Coinbase Commerce tools to confirm the connection.
  5. Run one read-only task with Coinbase Commerce first, and keep your app asking before each tool call until the results look right.

Coinbase Commerce compared with similar servers

  • Colppy by codespar has fewer GitHub stars than Coinbase Commerce (278 against 278); both are community servers, and both run locally.
  • Codespar C6 by codespar has fewer GitHub stars than Coinbase Commerce (278 against 278); both are community servers, and both run locally.
  • Conekta by codespar has fewer GitHub stars than Coinbase Commerce (278 against 278); both are community servers, and both run locally.

Before you connect Coinbase Commerce

  • Give Coinbase Commerce its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Coinbase Commerce tool call until you trust what it does with them.
  • Treat text that Coinbase Commerce fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Coinbase Commerce on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Coinbase Commerce

How marketing and sales teams put Coinbase Commerce to work, by company size. Pick the size closest to yours and start Coinbase Commerce on one use case.

Small business

  • A small business can ask Coinbase Commerce which products and customers drive margin, then plan promotions around them.
  • Owners can use Coinbase Commerce to check refunds, failed payments and churn reasons without opening three dashboards.
  • Coinbase Commerce runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Ecommerce teams can connect Coinbase Commerce to tie campaigns to orders and revenue, not just clicks.
  • Marketing and finance can use Coinbase Commerce to check spend against budget each week and move money to what's working.
  • Start Coinbase Commerce on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprises should keep Coinbase Commerce read-only for agents, with any money movement handled by people and existing approvals.
  • Large commerce teams can use Coinbase Commerce to answer revenue questions by channel and region with figures finance signs off on.
  • Coinbase Commerce is a community server, so have security review the code and pin a version before Coinbase Commerce touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Coinbase Commerce README

From codespar/mcp-dev-latam on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

@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

Server Use case Direction
@codespar/mcp-coinbase-commerce Merchants accept crypto at checkout Buyer pays merchant
@codespar/mcp-unblockpay BRL / MXN <-> USDC corridor Value transfer
@codespar/mcp-moonpay End-user fiat <-> crypto (100+ assets) Onramp / offramp
@codespar/mcp-transak End-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 (18)

Tool Purpose
create_charge Create a crypto charge, a one-time merchant invoice priced in local fiat that a buyer can settle in BTC, E...
retrieve_charge Retrieve a charge by its Coinbase Commerce id OR its short code (the 8-character code embedded in the hoste...
list_charges List charges, newest first.
cancel_charge Cancel a charge that has not yet been paid.
resolve_charge Manually resolve a charge as paid.
create_checkout Create a reusable hosted checkout, think product-page-style link that can be paid multiple times.
retrieve_checkout Retrieve a checkout by id.
list_checkouts List reusable hosted checkouts, newest first.
update_checkout Update an existing reusable checkout.
delete_checkout Delete a reusable checkout.
list_events List events, the lifecycle signals (charge:created, charge:confirmed, charge:failed, charge:delayed, charg...
retrieve_event Retrieve a single event by id.
create_invoice Create an invoice, a directed bill sent to a specific named recipient.
retrieve_invoice Retrieve an invoice by code.
list_invoices List invoices, newest first.
void_invoice Void an unpaid invoice.
list_exchange_rates Fetch current Coinbase exchange rates for a base asset (e.g.
verify_webhook_signature Local helper, verify a Coinbase Commerce webhook payload using HMAC-SHA256.

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

Enterprise

Need governance, budget limits, and audit trails for agent payments? CodeSpar Enterprise adds policy engine, payment routing, and compliance templates on top of these MCP servers.

License

MIT

Questions about Coinbase Commerce

What is the Coinbase Commerce MCP server?

MCP server for Coinbase Commerce, crypto merchant payments (BTC/ETH/USDC); settle crypto or fiat. Coinbase Commerce is maintained by codespar on GitHub at codespar/mcp-dev-latam, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Coinbase Commerce MCP server?

Add Coinbase Commerce to your AI app's MCP config with the command npx -y @codespar/mcp-coinbase-commerce@0.2.2. In Claude Code, run claude mcp add --transport stdio codespar-coinbase-commerce -- npx -y @codespar/mcp-coinbase-commerce@0.2.2. To run Coinbase Commerce this way you need Node.js installed.

Does Coinbase Commerce need an API key?

Yes. Coinbase Commerce expects COINBASE_COMMERCE_API_KEY to be set. Create the key for Coinbase Commerce in the connected service's own settings, give it the smallest permissions the job needs, and keep it out of shared config files.

Is Coinbase Commerce an official MCP server?

No. Coinbase Commerce is a community server maintained by codespar. Community servers can be excellent; read the code and the open issues before you give Coinbase Commerce access to company data.

What license is Coinbase Commerce under?

Coinbase Commerce is released under the MIT license, according to its GitHub repository. The license covers the code of Coinbase Commerce; the service it connects to has its own terms.