mcp-server MCP Server
Interact with Counterparty — the token protocol on Bitcoin. Query, compose, sign.
mcp-server scores 55 (Fair), licensed MIT and written in TypeScript. It installs as a local process. It declares 40 tools. Filed under Finance. GitHub shows 1 stars. Package registries report about 70 downloads a week. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.
Fair trust
55 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: mit.
License, quality and maintenance
Quality: Grade A
85/100 for listing completeness. Lost points: 20 of 40 tools barely described, short summary.
How quality is graded
Where the 55 comes from
22 + 5 + 4 + 10 + 4 + 10 = 55. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 5 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 4 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 10 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "xcp-mcp-server": { "command": "npx", "args": [ "-y", "@21e14/mcp-server@1.0.1" ], "env": { "COUNTERPARTY_NODE": "", "SIGNER_PRIVATE_KEY": "YOUR_SIGNER_PRIVATE_KEY", "SIGNER_ADDRESS": "" } } }}
Environment variables
| Name | Required | Notes |
|---|---|---|
COUNTERPARTY_NODE | Optional | Counterparty node URL (default: https://api.counterparty.io:4000) |
SIGNER_PRIVATE_KEYSecret | Optional | WIF-encoded private key for transaction signing |
SIGNER_ADDRESS | Optional | Bitcoin address for the signing key |
Tools40Tool docs quality grade D
All capabilitiescompose_attachtoolAttach tokens to a UTXO
Broadcast a message (supports inscriptions)
compose_btcpaytoolPay for a matched BTC order
compose_canceltoolCancel an open order
compose_destroytoolPermanently burn tokens
compose_dispensetoolBuy from a dispenser
Create, open, or close a dispenser
compose_dividendtoolDistribute dividends to holders
compose_fairminttoolMint from an active fair launch
Create a fair launch (supports inscriptions)
compose_issuancetoolCreate or update an asset (supports inscriptions)
compose_mpmatoolMulti-party multi-asset send
About
Counterparty MCP Server
Give AI agents the ability to interact with Counterparty — the token protocol built on Bitcoin. Query balances, assets, orders, and dispensers. Compose, sign, and broadcast transactions. Works with any MCP-compatible client.
Install
No download needed — just add the config below to your AI client. npx fetches and runs the server automatically.
Claude Desktop
Add to claude_desktop_config.json (how to find it):
{
"mcpServers": {
"counterparty": {
"command": "npx",
"args": ["-y", "@21e14/mcp-server"]
}
}
}
Claude Code
claude mcp add counterparty -- npx -y @21e14/mcp-server
With signing (see Signing & Broadcasting):
claude mcp add counterparty \
-e SIGNER_PRIVATE_KEY=L1aW4aubDFB7yfras2S1mN... \
-e SIGNER_ADDRESS=bc1q... \
-- npx -y @21e14/mcp-server
Manage servers with claude mcp list, claude mcp get counterparty, or claude mcp remove counterparty.
VS Code (Copilot)
Use Ctrl+Shift+P → MCP: Add Server → Stdio, then enter:
npx -y @21e14/mcp-server
Or add to .vscode/mcp.json:
{
"servers": {
"counterparty": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@21e14/mcp-server"]
}
}
}
Cursor
Add to .cursor/mcp.json:
{
"mcpServers": {
"counterparty": {
"command": "npx",
"args": ["-y", "@21e14/mcp-server"]
}
}
}
Windsurf
Add to ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"counterparty": {
"command": "npx",
"args": ["-y", "@21e14/mcp-server"]
}
}
}
ChatGPT
In ChatGPT desktop, go to Settings → Beta Features → MCP Servers, then add:
npx -y @21e14/mcp-server
Any MCP Client
The server speaks stdio. Point any MCP-compatible client at:
npx -y @21e14/mcp-server
That's it. The agent can now query the Counterparty network and compose unsigned transactions.
Signing & Broadcasting
To let the agent sign and broadcast transactions, add a signing key:
{
"mcpServers": {
"counterparty": {
"command": "npx",
"args": ["-y", "@21e14/mcp-server"],
"env": {
"SIGNER_PRIVATE_KEY": "L1aW4aubDFB7yfras2S1mN...",
"SIGNER_ADDRESS": "bc1q..."
}
}
}
}
This enables the sign_and_broadcast tool. Signing gives the AI agent the ability to spend funds — read the security guidance below.
Bot wallet pattern (recommended)
- Generate a fresh keypair offline. Don't reuse an existing wallet or generate keys through the AI.
- Fund it with only what you're willing to risk. This is your blast radius.
- Use a segwit address. P2WPKH (
bc1q...), P2SH-P2WPKH (3...), or P2TR (bc1p...). Legacy P2PKH is not supported. - One key, one address. No HD derivation. Counterparty reuses addresses by design.
- Keep main holdings elsewhere. The bot wallet is disposable.
Compose-only mode
Without signing keys, the server returns unsigned transaction hex from all compose tools. You can review and sign offline with your own tooling. This is the safest mode.
Transaction verification
sign_and_broadcast extracts and returns the embedded OP_RETURN data from the transaction before signing — done locally without trusting the API, so the agent can verify the transaction matches what was requested.
Environment Variables
| Variable | Required | Description |
|---|---|---|
COUNTERPARTY_NODE | No | Counterparty node URL (default: https://api.counterparty.io:4000) |
SIGNER_PRIVATE_KEY | No | WIF-encoded private key for signing |
SIGNER_ADDRESS | No | Bitcoin address for the signing key |
Tools
Query (24)
| Tool | Description |
|---|---|
get_balances | All token balances for an address |
get_balance | Single asset balance for an address |
get_asset_info | Asset metadata (supply, divisibility, issuer) |
get_asset_balances | All holders of an asset |
get_assets | Search/list assets |
get_issuances | Issuance history for an asset |
get_owned_assets | Assets issued by an address |
get_orders | DEX orders |
get_order | Single order by hash |
get_order_matches | Matches for an order |
get_orders_by_pair | Order book for a trading pair |
get_asset_orders | Orders involving an asset |
get_address_orders | Orders by address |
get_dispensers | Dispensers |
get_dispenser | Single dispenser by hash |
get_dispensers_by_asset | Dispensers for an asset |
get_address_dispensers | Dispensers by address |
get_dispenses | Purchases from a dispenser |
get_dividends | Dividend distributions for an asset |
get_address_transactions | Transaction history for an address |
get_sends | Token transfers from an address |
get_transaction | Single transaction by hash |
get_utxo_balances | Tokens attached to a UTXO |
get_latest_block | Latest block info |
Compose (18)
| Tool | Description |
|---|---|
compose_send | Send tokens to an address |
compose_mpma | Multi-party multi-asset send |
compose_order | Place a DEX order |
compose_cancel | Cancel an open order |
compose_btcpay | Pay for a matched BTC order |
compose_issuance | Create or update an asset (supports inscriptions) |
compose_dispenser | Create, open, or close a dispenser |
compose_dispense | Buy from a dispenser |
compose_dividend | Distribute dividends to holders |
compose_broadcast | Broadcast a message (supports inscriptions) |
compose_sweep | Sweep all assets to a destination |
compose_destroy | Permanently burn tokens |
compose_fairminter | Create a fair launch (supports inscriptions) |
compose_xcp420_fairminter | XCP-420 compliant fair launch |
compose_fairmint | Mint from an active fair launch |
compose_attach | Attach tokens to a UTXO |
compose_detach | Detach tokens from a UTXO |
compose_movetoutxo | Move a UTXO to a new output |
Bitcoin (4)
| Tool | Description |
|---|---|
sign_and_broadcast | Sign and broadcast (requires signing keys) |
broadcast_transaction | Broadcast an already-signed transaction |
get_fee_estimate | Current fee rate estimate |
decode_transaction | Decode raw transaction hex |
Utility (3)
| Tool | Description |
|---|---|
unpack_transaction | Decode a Counterparty message from a transaction |
get_server_info | Node status and version |
api_request | Raw API request to any endpoint (full API reference) |
Resources
The server includes protocol documentation that agents can read for context:
counterparty://protocol-overview— Assets, quantities, DEX, dispensers, fair minting, fees, and operational tipscounterparty://xcp420-standard— XCP-420 fair launch standardcounterparty://quick-start— Step-by-step workflows for common operations
Development
git clone https://github.com/XCP/mcp-server.git
cd mcp-server
npm install
npm test
Test locally:
{
"mcpServers": {
"counterparty": {
"command": "node",
"args": ["/path/to/mcp-server/dist/index.js"]
}
}
}
License
MIT
Frequently asked questions
What is mcp-server MCP Server?
Interact with Counterparty — the token protocol on Bitcoin. Query, compose, sign.
How do I install mcp-server MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. mcp-server MCP Server runs locally from the npm package @21e14/mcp-server with the command npx -y @21e14/mcp-server@1.0.1.
Is mcp-server MCP Server free and open source?
Yes. mcp-server MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does mcp-server MCP Server support remote (HTTP) connections?
No remote endpoint is listed for mcp-server MCP Server. It runs locally on your machine over stdio, started by your MCP client.
What tools does mcp-server MCP Server provide?
mcp-server MCP Server provides 40 tools, including compose_attach, compose_broadcast, compose_btcpay, and compose_cancel. See the full tool list for descriptions and parameters.
How is mcp-server MCP Server's trust score calculated?
mcp-server MCP Server scores 55 out of 100 (Fair). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.