Skip to main content

An MCP server that provides Bitcoin price data from Binance API

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

btcmcp-0.1.1.tar.gz (50.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

btcmcp-0.1.1-py3-none-any.whl (2.2 kB view details)

Uploaded Python 3

File details

Details for the file btcmcp-0.1.1.tar.gz.

File metadata

  • Download URL: btcmcp-0.1.1.tar.gz
  • Upload date:
  • Size: 50.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for btcmcp-0.1.1.tar.gz
Algorithm Hash digest
SHA256 2d322b1edd3c8f4647be7b1023c665102ed7937c043de4175b363629d9242d19
MD5 ab628d57771dd69f666d643dfb0f5176
BLAKE2b-256 434679ed659071262b9d355f455f49ac780fcf101982226ada0f6bcd92fef5d4

See more details on using hashes here.

File details

Details for the file btcmcp-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: btcmcp-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 2.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for btcmcp-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 73cfa955bd6eeede2829980365b362bf50de7bc52bbab8a5b2ba0981ee383ea7
MD5 56f41f95ad819f22f9251c7e1f17406b
BLAKE2b-256 311f40ab4498c9bfdfa5e6e2dea4441c251631c6847be1abb59cfe844aa27b7c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page