Skip to main content
Glama
Cryptocurrency Market Data MCP Server

Cryptocurrency Market Data MCP Server

by Nayshins

암호화폐 시장 데이터 MCP 서버

주요 거래소와의 통합을 통해 실시간 및 과거 암호화폐 시장 데이터를 제공하는 모델 컨텍스트 프로토콜(MCP) 서버입니다. 이 서버를 통해 클로드와 같은 LLM은 현재 가격을 확인하고, 시장 동향을 분석하고, 자세한 거래 정보에 접근할 수 있습니다.

엠씨피 파이썬 CCXT 대장간 배지

특징

  • 실시간 시장 데이터

    • 현재 암호화폐 가격

    • 매수/매도 스프레드가 포함된 시장 요약

    • 거래량 기준 상위 거래 쌍

    • 다중 거래소 지원

  • 역사적 분석

    • OHLCV(캔들스틱) 데이터

    • 가격 변화 통계

    • 볼륨 내역 추적

    • 사용자 정의 가능한 시간 프레임

  • 교환 지원

    • 바이낸스

    • 코인베이스

    • 크라켄

    • 쿠코인

    • 하이퍼리퀴드

    • 후오비

    • 비트파이넥스

    • 바이비트

    • 오케이엑스

    • 멕시코

Related MCP server: Crypto MCP Server

설치

Smithery를 통해 설치

Smithery를 통해 Claude Desktop용 Cryptocurrency Market Data Server를 자동으로 설치하려면:

지엑스피1

수동 설치

# Using uv (recommended)
uv pip install mcp ccxt

# Using pip
pip install mcp ccxt

용법

서버 실행

python crypto_server.py

Claude Desktop과 연결

  1. Claude Desktop 구성을 다음에서 엽니다.

    • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

    • Windows: %APPDATA%\Claude\claude_desktop_config.json

  2. 서버 구성을 추가합니다.

{
    "mcpServers": {
        "crypto": {
            "command": "python",
            "args": ["/path/to/crypto_server.py"]
        }
    }
}
  1. Claude Desktop을 다시 시작하세요

사용 가능한 도구

  1. 가격 받기

    • 모든 거래 쌍의 현재 가격을 확인하세요

    • 예: "바이낸스에서 BTC/USDT의 현재 가격은 얼마인가요?"

  2. get-market-summary

    • 자세한 시장 정보를 가져옵니다

    • 예: "ETH/USDT에 대한 시장 요약을 보여주세요"

  3. 최고 볼륨 얻기

    • 거래량별 상위 거래 쌍 목록

    • 예: "Kraken에서 가장 인기 있는 거래 쌍 5개는 무엇입니까?"

  4. 목록 교환

    • 지원되는 모든 거래소 표시

    • 예: "어떤 거래소가 지원되나요?"

  5. get-historical-ohlcv

    • 과거 캔들스틱 데이터 가져오기

    • 예: "1시간 간격으로 최근 7일간의 BTC/USDT 가격 데이터를 보여주세요"

  6. 가격 변경

    • 다양한 기간 동안 가격 변동을 계산합니다.

    • 예: "SOL/USDT의 24시간 가격 변화는 얼마입니까?"

  7. 볼륨 기록 가져오기

    • 시간 경과에 따른 거래량 추적

    • 예: "지난주 ETH/USDT 거래량 내역을 보여주세요"

예제 쿼리

서버가 연결되면 Claude에게 물어볼 수 있는 몇 가지 질문 예시는 다음과 같습니다.

- What's the current Bitcoin price on Binance?
- Show me the top 5 trading pairs by volume on Coinbase
- How has ETH/USDT performed over the last 24 hours?
- Give me a detailed market summary for SOL/USDT on Kraken
- What's the trading volume history for BNB/USDT over the last week?

기술적 세부 사항

종속성

  • mcp : 모델 컨텍스트 프로토콜 SDK

  • ccxt : 암호화폐 거래소 거래 라이브러리

  • 파이썬 3.9 이상

건축학

서버는 다음을 사용합니다.

  • 효율적인 교환 통신을 위한 CCXT의 비동기 지원

  • LLM 통합을 위한 MCP 도구 시스템

  • 일관된 출력을 위한 표준화된 데이터 형식

  • 최적의 성능을 위한 연결 풀링

오류 처리

서버는 다음에 대해 강력한 오류 처리를 구현합니다.

  • 유효하지 않은 거래 쌍

  • Exchange 연결 문제

  • 속도 제한

  • 잘못된 요청

  • 네트워크 시간 초과

개발

테스트 실행

# To be implemented
pytest tests/

기여하다

  1. 저장소를 포크하세요

  2. 기능 브랜치 생성

  3. 변경 사항을 만드세요

  4. 풀 리퀘스트 제출

지역 개발

# Clone the repository
git clone [repository-url]
cd crypto-mcp-server

# Install dependencies
uv pip install -e .

문제 해결

일반적인 문제

  1. Exchange 연결 오류

    • 인터넷 연결을 확인하세요

    • 거래소가 운영되는지 확인하세요

    • 선택한 거래소에 거래 쌍이 있는지 확인하세요.

  2. 속도 제한

    • 요청 간 지연 구현

    • 고빈도 쿼리에 대해 다른 교환을 사용하세요

    • 거래소별 환율 한도 확인

  3. 데이터 형식 문제

    • 거래 쌍 형식 확인(예: BTC/USDT, BTCUSDT 아님)

    • 시간대 사양 확인

    • 숫자 매개변수가 유효한 범위 내에 있는지 확인하세요.

특허

MIT 라이선스 - 자세한 내용은 라이선스 파일을 참조하세요.

감사의 말

Available Tools

7 tools
get-historical-ohlcvB

Get historical OHLCV (candlestick) data for a trading pair

Inputs: symbol (required), timeframe, days_back, exchange.

get-market-summaryC

Get detailed market summary for a cryptocurrency pair from a specific exchange

Inputs: symbol (required), exchange.

get-priceB

Get current price of a cryptocurrency pair from a specific exchange

Inputs: symbol (required), exchange.

get-price-changeC

Get price change statistics over different time periods

Inputs: symbol (required), exchange.

get-top-volumesB

Get top cryptocurrencies by trading volume from a specific exchange

Inputs: limit, exchange.

get-volume-historyC

Get trading volume history over time

Inputs: symbol (required), days, exchange.

list-exchangesB

List all supported cryptocurrency exchanges

Inputs: no named parameters.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.5/5.0

    Scored across 7 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose with no ambiguity: get-historical-ohlcv for candlestick data, get-market-summary for detailed pair info, get-price for current price, get-price-change for statistics, get-top-volumes for volume rankings, get-volume-history for volume trends, and list-exchanges for exchange listing. The descriptions precisely differentiate their functions, making misselection unlikely.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern using kebab-case (e.g., get-historical-ohlcv, list-exchanges). The naming is predictable and readable throughout, with 'get-' or 'list-' prefixes clearly indicating the action, ensuring a uniform and professional appearance.

    Tool Count5/5

    With 7 tools, the server is well-scoped for cryptocurrency market data, covering key areas like pricing, volume, exchanges, and historical data. Each tool earns its place by addressing specific market analysis needs, avoiding bloat while providing comprehensive coverage for the domain.

    Completeness4/5

    The tool set offers strong coverage for cryptocurrency market data, including price, volume, historical data, and exchange info. Minor gaps exist, such as no tools for order book depth, trade history, or market sentiment, but agents can work around these with the provided tools for core market analysis tasks.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      A Model Context Protocol server that exposes Binance cryptocurrency exchange data to LLMs, allowing agents to access real-time prices, order books, and historical market data without requiring API keys.
      21
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      Provides real-time and historical cryptocurrency market data using ccxt, enabling users to fetch live prices, historical candlestick data, and stream real-time ticker updates across multiple exchanges.
      14
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      A Model Context Protocol server that provides cryptocurrency data tools and resources via an HTTP endpoint. It enables users to fetch real-time market data from Binance, track activity logs, and generate cryptocurrency executive summaries.
      ISC
    • A
      license
      A
      quality
      D
      maintenance
      A comprehensive cryptocurrency market-data MCP server with 49 tools across six data sources, enabling LLMs to answer market questions via natural language.
      49
      MIT