Skip to main content
Glama
jjsteffen23

CME Prediction Markets MCP Server

by jjsteffen23

CME Prediction Markets MCP Server

Complete MCP server for verifying claims against CME prediction market data.

Features

  • MCP Protocol Support: Full implementation of Model Context Protocol

  • Data Infrastructure: Automated CME data ingestion with PostgreSQL/TimescaleDB

  • Claim Verification: NLP-powered claim parsing and verification

  • Slack Integration: Real-time claim verification via Slack bot

  • Caching Layer: Redis-based caching for performance

  • Async Architecture: Built on FastAPI with async/await throughout

Related MCP server: Polymarket MCP Server

Quick Start

Prerequisites

  • Python 3.11+

  • PostgreSQL 15+ (with TimescaleDB)

  • Redis 7+

  • Docker & Docker Compose (optional)

Installation

  1. Clone the repository

  2. Copy .env.example to .env and configure

  3. Install dependencies:

poetry install
  1. Initialize database:

poetry run python scripts/init_db.py
  1. Run the server:

poetry run uvicorn src.main:app --reload

Docker Deployment

docker-compose up -d

MCP Tools

query_trading_data

Query historical trading data for contracts.

{
  "contract_symbol": "BTC_95000_YES",
  "start_time": "2024-12-01T00:00:00Z",
  "end_time": "2024-12-16T00:00:00Z"
}

verify_claim

Verify natural language claims against data.

{
  "claim_text": "Bitcoin reached 95 cents on December 15"
}

get_contract_info

Get detailed contract information.

{
  "contract_symbol": "BTC_95000_YES"
}

Testing

poetry run pytest

License

MIT

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables access to Polymarket's prediction markets for analyzing market probabilities, trading activity, and event outcomes across politics, sports, crypto, and other categories through natural language queries.
    17 npm
    10
    MIT
  • F
    license
    Not graded
    quality
    C
    maintenance
    Provides AI-powered tools for searching Polymarket prediction markets and calculating financial metrics like expected value and Kelly bet sizing. It enables users to perform arbitrage scanning, news-based sentiment analysis, and market research through natural language interfaces.
    -
  • A
    license
    Not graded
    quality
    F
    maintenance
    Unified access to prediction market data from Kalshi and Polymarket, enabling natural language queries for real-time odds, orderbooks, and trade history.
    16 npm
    12
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Provides real-time access to Polymarket prediction market data, enabling search, browsing, and analysis of prediction markets through natural language.
    17 npm
    MIT