b

btcmcp

@iworkist/btcmcp
0 Stars 16 次浏览 iworkist 更新于 2026-08-23

An MCP server that provides Bitcoin price data from Binance API

MCP 服务配置

复制以下 JSON 到 OPClaw 或其他 MCP 客户端的配置文件中即可使用

{
  "mcpServers": {
    "btcmcp": {
      "args": [
        "btcmcp@0.1.2"
      ],
      "command": "uvx"
    }
  }
}

可用工具 (5 个)

该服务在 MCP 协议中暴露的工具,AI 可按需调用

tavily_search 14 个参数 需填 1 项

Search the web for current information on any topic. Use for news, facts, or data beyond your knowledge cutoff. Returns snippets and source URLs.

必填参数:query

tavily_extract 6 个参数 需填 1 项

Extract content from URLs. Returns raw page content in markdown or text format.

必填参数:urls

tavily_crawl 11 个参数 需填 1 项

Crawl a website starting from a URL. Extracts content from pages with configurable depth and breadth.

必填参数:url

tavily_map 8 个参数 需填 1 项

Map a website's structure. Returns a list of URLs found starting from the base URL.

必填参数:url

tavily_research 2 个参数 需填 1 项

Perform comprehensive research on a given topic or question. Use this tool when you need to gather information from multiple sources to answer a question or complete a task. Returns a detailed response based on the research findings.

必填参数:input

服务介绍

BTC MCP Server

Bitcoin price MCP server deployed on Vercel with GitHub auto-deployment.

# 🚀 Features

  • Real-time Bitcoin price from Binance API
  • RESTful API endpoints
  • Automatic deployment from GitHub
  • Health monitoring

# 📡 API Endpoints

  • GET /api/get_btc_price - Get current Bitcoin price
  • GET /api/health - Health check
  • GET /api/tools - List available tools
  • GET / - API documentation

# 🛠️ Local Development

#  Install dependencies
uv sync

#  Run locally
uv run python api/index.py

#  Test
uv run python test_btcmcp.py

# 🚀 Deployment

# # Automatic Deployment (GitHub + Vercel)

  1. Setup Vercel Secrets in GitHub:

    • Go to your GitHub repository → Settings → Secrets and variables → Actions
    • Add these secrets:
      • VERCEL_TOKEN: Your Vercel API token
      • ORG_ID: Your Vercel organization ID
      • PROJECT_ID: Your Vercel project ID
  2. Push to main branch:

    git add .
    git commit -m "Deploy to Vercel"
    git push origin main
    
  3. Automatic deployment:

    • GitHub Actions will automatically deploy to Vercel
    • Your API will be available at: https://your-app.vercel.app

# # Manual Deployment

#  Install Vercel CLI
npm i -g vercel

#  Deploy
vercel - -prod

# 📊 Example Usage

#  Get Bitcoin price
curl https://your-app.vercel.app/api/get_btc_price

#  Health check
curl https://your-app.vercel.app/api/health

# 🔧 Configuration

The server uses:

  • Flask for web API
  • Binance API for Bitcoin price data
  • Vercel for hosting
  • GitHub Actions for CI/CD

相关 MCP 服务