mcp-server
MCP server by XCP Community
Lets AI assistants query and build transactions on Counterparty, the token protocol built on Bitcoin. It is for users who want an agent to read balances, orders and dispensers, or compose transactions.
Install mcp-server
Built from the published package, never by AI.
claude mcp add mcp-server -- npx -y @21e14/mcp-serverRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"mcp-server": {
"args": [
"-y",
"@21e14/mcp-server"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"mcp-server": {
"args": [
"-y",
"@21e14/mcp-server"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"mcp-server": {
"args": [
"-y",
"@21e14/mcp-server"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add mcp-server -- npx -y @21e14/mcp-server{
"mcpServers": {
"mcp-server": {
"args": [
"-y",
"@21e14/mcp-server"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add mcp-server npx -y @21e14/mcp-serverGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the mcp-server block.
About
The Counterparty MCP Server gives AI agents access to Counterparty, a token protocol built on Bitcoin. It provides query tools for balances, assets, orders, dispensers and dividends, along with compose tools for sends, DEX orders, issuances, dispensers and other operations. It runs over stdio and works with any MCP-compatible client. The server is installed by running it with npx.
Without signing keys, the server returns unsigned transaction hex from its compose tools, so a user can review and sign offline. Adding a WIF private key and address enables a sign_and_broadcast tool. The source says signing gives the agent the ability to spend funds, and it recommends a disposable bot wallet. The project is published by XCP under the MIT license.
Written from the project's README and checked against it.
Tools it gives your assistant
get_balancesReturns all token balances for an address.get_asset_infoReturns asset metadata such as supply, divisibility and issuer.get_orders_by_pairReturns the order book for a trading pair.get_dispensersLists dispensers on the Counterparty network.compose_sendComposes an unsigned transaction to send tokens to an address.compose_orderComposes an unsigned transaction to place a DEX order.compose_dispenseComposes an unsigned transaction to buy from a dispenser.sign_and_broadcastSigns and broadcasts a transaction. Requires signing keys.decode_transactionDecodes raw transaction hex.unpack_transactionDecodes a Counterparty message from a transaction.
What you need
- npx available on the machine
- An MCP-compatible client
- Optional: a WIF private key and address for signing
- Optional: a Counterparty node URL, defaults to api.counterparty.io:4000
| Setting | Needed | What it is |
|---|---|---|
COUNTERPARTY_Environment variable | Optional | Counterparty node URL (default: https://api.counterparty.io:4000) |
SIGNER_Environment variable, secret | Optional | WIF-encoded private key for transaction signing |
SIGNER_Environment variable | Optional | Bitcoin address for the signing key |
From the publisher's entry in the official MCP Registry. Required settings are already in the install config below as placeholders.
Try asking
- Show me all token balances for this Bitcoin address.
- Get the order book for a Counterparty trading pair.
- Compose an unsigned send of tokens to this address.
Good to know
- Signing lets the agent spend funds, so use a disposable bot wallet with limited funds.
- Legacy P2PKH addresses are not supported for signing.
- Without signing keys, compose tools return unsigned hex only and nothing is broadcast.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to mcp-server
All alternatives →Connects AI assistants to Stripe through the hosted Stripe MCP server at mcp.stripe.com. It is for developers building AI-powered products and businesses on Stripe.
Gives AI assistants market data, technical analysis, backtests, options activity and news sentiment for stocks, crypto, FX and metals. Built for traders and developers using Claude, ChatGPT, Cursor or other MCP clients. Its outputs are informational, not financial advice.
CCXT is an official MCP server for market data and trading across more than 100 exchanges and prediction markets. It is aimed at developers, traders and AI agents.
Calculates over 1400 transparent financial methods from raw statements and exposes them to AI assistants through an MCP server. Suited to analysts and developers who want to see how each metric is computed.
Lets an AI assistant search x402 APIs and pay for them in USDC from a local, non-custodial wallet. Built for people and agents that need to pay APIs per call under spend caps.
Lets AI assistants explore a free database of over 300,000 symbols, including equities, ETFs, funds, indices, currencies and cryptocurrencies, categorised by sector, industry and country. It suits private investors who want to discover products rather than look up fundamentals or stock data.
Compare with mcp, TradingMCP or CCXT
mcp-server: common questions
Can the server work without a private key?
Yes. Without signing keys, the server returns unsigned transaction hex from all compose tools, which you can sign offline with your own tooling.
Which Bitcoin address types can it sign for?
The source recommends segwit addresses: P2WPKH (bc1q), P2SH-P2WPKH (3...) or P2TR (bc1p). Legacy P2PKH is not supported.
Does sign_and_broadcast check what it signs?
It extracts and returns the embedded OP_RETURN data locally before signing, without trusting the API, so the agent can verify the transaction matches the request.
How do I install mcp-server?
In Claude Code run claude mcp add mcp-server -- npx -y @21e14/mcp-server. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is mcp-server the official server?
mcp-server is a community project by XCP, not verified by a company domain.
Is mcp-server free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is mcp-server safe to use?
It scores 56 of 100. Grades: maintenance D, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to mcp-server?
Similar MCP servers: mcp, TradingMCP, CCXT, Finance Toolkit.
Does mcp-server work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
