Command Palette

Search for a command to run...

UnylyUnyly
Browse all

Coinbase

FreeNot checked

Browser-automated MCP server for Coinbase crypto exchange, enabling live prices, portfolio management, transaction history, and trading.

GitHubEmbed

About

Browser-automated MCP server for Coinbase crypto exchange, enabling live prices, portfolio management, transaction history, and trading.

README

MCP (Model Context Protocol) server for Coinbase crypto exchange. Provides browser-automated tools for live prices, portfolio management, transaction history, and trading.

Tools

Tool Description
get_prices Get current cryptocurrency prices from Coinbase
get_portfolio Get your Coinbase portfolio balances and values
get_transactions Get recent transaction history
buy_crypto Place a buy order (with preview mode)
sell_crypto Place a sell order (with preview mode)
get_wallet_address Get your deposit address for a cryptocurrency

Installation

npm install -g @striderlabs/mcp-coinbase
npx playwright install chromium

Or from the tarball:

npm install -g striderlabs-mcp-coinbase-1.0.0.tgz
npx playwright install chromium

Configuration

Set these environment variables before running:

export COINBASE_EMAIL="[email protected]"
export COINBASE_PASSWORD="yourpassword"
export COINBASE_2FA_CODE="123456"   # optional: TOTP code, or leave blank to enter manually

Usage with Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "coinbase": {
      "command": "mcp-coinbase",
      "env": {
        "COINBASE_EMAIL": "[email protected]",
        "COINBASE_PASSWORD": "yourpassword"
      }
    }
  }
}

Or using npx:

{
  "mcpServers": {
    "coinbase": {
      "command": "npx",
      "args": ["-y", "@striderlabs/mcp-coinbase"],
      "env": {
        "COINBASE_EMAIL": "[email protected]",
        "COINBASE_PASSWORD": "yourpassword"
      }
    }
  }
}

Tool Reference

get_prices

Get current spot prices for one or more cryptocurrencies.

{
  "symbols": ["BTC", "ETH", "SOL"],
  "currency": "USD"
}

Returns live prices fetched from the Coinbase public API — no login required.

get_portfolio

Get your full portfolio with balances and USD values. Requires login.

{}

get_transactions

Get recent transaction history.

{
  "limit": 20
}

buy_crypto

Place a buy order. Use confirm: false (default) to preview the order without executing.

{
  "symbol": "BTC",
  "amount_usd": 100,
  "confirm": false
}

Set confirm: true to execute the trade.

sell_crypto

Place a sell order. Use confirm: false (default) to preview.

{
  "symbol": "ETH",
  "amount_crypto": 0.5,
  "confirm": false
}

get_wallet_address

Get your deposit address for a cryptocurrency.

{
  "symbol": "BTC"
}

2FA Handling

The server handles two-factor authentication gracefully:

  • If COINBASE_2FA_CODE is set, it will be used automatically
  • Otherwise, the server waits up to 60 seconds for you to complete 2FA in the browser
  • The browser session is reused across tool calls to minimize repeated logins

Browser Automation

This package uses Playwright with stealth mode (via playwright-extra + puppeteer-extra-plugin-stealth) to automate the Coinbase web interface. This approach:

  • Works with Coinbase's standard web UI
  • Handles dynamic page content
  • Bypasses basic bot detection via stealth plugin

Development

git clone https://github.com/markswendsen-code/mcp-coinbase
cd mcp-coinbase
npm install
npx playwright install chromium
npm run build

Run in dev mode (with tsx, no build step):

npm run dev

Security Notes

  • Never commit your Coinbase credentials to version control
  • Use environment variables for all sensitive configuration
  • The confirm: false default on buy/sell prevents accidental trades
  • Review all trades carefully before setting confirm: true

License

MIT

from github.com/markswendsen-code/mcp-coinbase

Installing Coinbase

This server has no published package — it is built from source. Open the repository and follow its README.

▸ github.com/markswendsen-code/mcp-coinbase

FAQ

Is Coinbase MCP free?

Yes, Coinbase MCP is free — one-click install via Unyly at no cost.

Does Coinbase need an API key?

No, Coinbase runs without API keys or environment variables.

Is Coinbase hosted or self-hosted?

Self-hosted: the server runs locally on your machine via the install command above.

How do I install Coinbase in Claude Desktop, Claude Code or Cursor?

Open Coinbase on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.

Related MCPs

$5

Stripe

Payments, customers, subscriptions

Stripeby Stripe

malamutemayhem/unclick-agent-native-endpoints

110+ tools for AI agents spanning social media, finance, gaming, music, AU-specific services, and utilities. Zero-config local tools plus platform connectors. n

malamutemayhemby malamutemayhem

whiteknightonhorse/APIbase

Unified API hub for AI agents with 56+ tools across travel (Amadeus, Sabre), prediction markets (Polymarket), crypto, and weather. Pay-per-call via x402 micropa

whiteknightonhorseby whiteknightonhorse

trackerfitness729-jpg/sitelauncher-mcp-server

Deploy live HTTPS websites in seconds. Instant subdomains ($1 USDC) or custom .xyz domains ($10 USDC) on Base chain. Templates for crypto tokens and AI agent pr

trackerfitness729-jpgby trackerfitness729-jpg

embeddedlayers/mcp-analytics

Statistical analysis, forecasting, and ML for business data (Shopify, Stripe, WooCommerce, eBay, GA4, Search Console). Upload a CSV or connect live data sources

embeddedlayersby embeddedlayers

carrierone/verilexdata-mcp

20 structured datasets (NPI healthcare, SEC filings, OFAC sanctions, crypto whales, Polymarket signals, patents, economic indicators) via x402 pay-per-query wit

carrieroneby carrierone

tipdotmd/tip-md-x402-mcp-server

MCP server for cryptocurrency tipping through AI interfaces using x402 payment protocol and CDP Wallet.

tipdotmdby tipdotmd

laundromatic/shopgraph

Structured product data from the open web — Schema.org + AI extraction for e-commerce enrichment. Pay per call via Stripe. [shopgraph.dev](https://shopgraph.dev

laundromaticby laundromatic

mrslbt/xendit-mcp

Xendit payment gateway for Southeast Asia. Invoices, disbursements, balance checks, and bank transfers across Indonesia, Philippines, Thailand, Vietnam, and Mal

mrslbtby mrslbt

@arbitova/mcp-server

Non-custodial on-chain escrow + AI dispute arbitration for agent-to-agent USDC payments on Base. Seven tools covering the full EscrowV1 contract surface: create

jiayuanliang0716-maxby jiayuanliang0716-max

Compare Coinbase with

Not sure what to pick?

Find your stack in 60 seconds

Author?

Embed badge for your README

Browse similar

All finance MCPs