比特币区块链交互服务器

Maestro MCP Server是一个通过Maestro API平台与比特币交互的模型上下文协议服务器,提供探索比特币区块链上的区块、交易、地址等工具。

  • by maestro-org
  • JavaScript
  • 本地部署
  • 25 星标
  • 更新于
在 GitHub 查看 maestro-org/maestro-mcp

使用说明

Maestro MCP服务器

模型上下文协议(MCP)服务器,用于通过Maestro API平台与比特币进行交互。提供用于探索比特币区块链上的区块、交易、地址等的工具。


快速链接


入门指南

需求

安装和设置

# 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

支持


许可证

Apache 2.0