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

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

-
security - not tested
F
license - not found
-
quality - not tested

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jjsteffen23/dk_mcp_2'

If you have feedback or need assistance with the MCP directory API, please join our Discord server