使用说明
Maestro MCP服务器
模型上下文协议(MCP)服务器,用于通过Maestro API平台与比特币进行交互。提供用于探索比特币区块链上的区块、交易、地址等的工具。
快速链接
- 托管主网:
https://xbt-mainnet.gomaestro-api.org/v0/mcp - 托管测试网4:
https://xbt-testnet.gomaestro-api.org/v0/mcp - 需要API密钥: 获取您的Maestro API密钥
- 客户示例: maestro mcp客户端示例
入门指南
需求
- 包子 v1.0或更高版本
安装和设置
# Install dependencies
bun install
# Build the project
bun run build
# Copy and edit environment variables
cp .env.example .env
# Edit .env to add your Maestro API key and any other config
运行服务器
bun run start:http
- 服务器将在您的
.env(默认值:3000)。 - 访问MCP端点
http://localhost:<PORT>/mcp.
特性
- 🚀 流式HTTP MCP服务器 (规格)
- 🔑 API密钥验证 (参见
.env.example) - 📦 多个API:
- 区块链索引器
- Mempool监控
- 市场价格
- 钱包
- 节点RPC
- 🌐 支持的网络:
- 主网:
API_BASE_URL=https://xbt-mainnet.gomaestro-api.org/v0 - 测试网4:
API_BASE_URL=https://xbt-testnet.gomaestro-api.org/v0
- 主网:
API参考和示例
服务器生成
此服务器是使用生成的 openapi-mcp-generator:
npx openapi-mcp-generator --input openapi-merged.json --output ./ --force --transport streamable-http --port 3000
贡献与发展
欢迎投稿和功能请求!拜托:
本地开发
- 使用
bun run dev用于热重新加载(如果已配置) - 使用运行测试
bun test
