MCP.so
登录

Bitcoin MCP Server

@moncho

基本信息

分类

金融与商务

许可证

MIT license

传输方式

stdio

作者

moncho

关于 Bitcoin MCP Server

A Bitcoin MCP Server

Bitcoin MCP Server 配置

暂无标准配置

该服务器的 README 中没有可解析的 MCP 配置块,请前往代码仓库查看安装说明。

代码仓库

Bitcoin MCP Server 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is Bitcoin MCP Server?

A Go-based service that provides a unified interface to interact with a Bitcoin node through various RPC commands using the Model Context Protocol (MCP). It organizes Bitcoin RPC functionality into logical categories and is intended for developers who need to access blockchain data and operations programmatically.

How to use Bitcoin MCP Server?

Clone the repository, install dependencies with go mod download, build with go build -o bitcoin-mcp, and create a config.json with Bitcoin RPC credentials and server settings. Run ./bitcoin-mcp -config config.json after starting a Bitcoin Core node with RPC enabled. Then call RESTful endpoints like POST /api/v1/blockchain/info.

Key features of Bitcoin MCP Server

  • Unified Bitcoin RPC interface via Model Context Protocol
  • Organized into blockchain, mempool, UTXO, and management categories
  • Secure authentication support
  • Comprehensive error handling
  • Clean, documented RESTful API
  • Go-based, easy to extend with new RPC commands

Use cases of Bitcoin MCP Server

  • Retrieve blockchain information and individual block data
  • Monitor mempool transaction count and details
  • Query UTXO set for specific outputs or addresses
  • Integrate Bitcoin Core RPC into AI/LLM workflows via MCP
  • Build custom blockchain analysis or management tools

常见问题

1

What are the prerequisites?

Go 1.24 or later and a Bitcoin Core node with RPC enabled (run with `-server -rpcuser` and `-rpcpassword` flags).

2

How do I configure the server?

Create a `config.json` with `bitcoin.rpc_url`, `bitcoin.username`, `bitcoin.password`, `server.port`, and `server.host`. Alternatively, set environment variables `BITCOIN_RPC_URL`, `BITCOIN_RPC_USER`, and `BITCOIN_RPC_PASS`.

3

How do I secure the server?

Never expose RPC credentials in public repositories, use strong passwords, consider rate limiting for public APIs, validate all input parameters, and sanitize error messages.

4

How do I add new RPC commands?

Add the method to the Bitcoin client in `pkg/bitcoin/client.go`, create or update the corresponding tool in `pkg/tools/`, register it in the appropriate category, and add tests.

5

What transport and authentication does the server use?

The server exposes a RESTful API (HTTP) over the configured port and host. Authentication is handled via the Bitcoin RPC credentials provided in the configuration.

评论

金融与商务 分类下的更多 MCP 服务器