🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

btcmcp

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

btcmcp

An MCP server that provides Bitcoin price data from Binance API

pipPyPI
Version
0.1.2
Weekly downloads
21
-4.55%
Maintainers
1
Weekly downloads
 

BTC MCP Server

mcp-name: io.github.iworkist/btcmcp

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)

  • 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
  • Push to main branch:

    git add .
    git commit -m "Deploy to Vercel"
    git push origin main
    
  • 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

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts