Sandbox
@ozgureyilmaz/polymarket-mcp

MCP server and CLI for Polymarket data

This repo provides an MCP server plus a standalone CLI for querying Polymarket. It can show trending and active markets, search by keyword, and fetch market details and prices, with caching and retry logic built in.

48 stars13 forksRustUpdated 8mo ago
Who it's for

Builders who want to query Polymarket from Claude Desktop or a terminal.

What it delivers

You can check prediction markets and prices from your agent instead of switching to Polymarket by hand.

What it does

Real-time market data

Lists active markets, trending markets by volume, and current prices.

Search across markets

Finds markets by keyword in questions and descriptions.

Multiple interfaces

Works as an MCP server and as a standalone CLI.

Flexible output

Prints JSON, pretty output, or tables from the CLI.

Caching and retry logic

Uses built-in caching with automatic retries for API calls.

How to get it

  1. 1Run
    cargo install --git https://github.com/ozgureyilmaz/polymarket-mcp

README

polymarket-mcp

🎲 prediction markets at your fingertips

mcp server and cli for polymarket. get real-time market data, prices, and search through claude desktop or terminal.

CI Release License: MIT Ask DeepWiki

features

real-time data: active markets, trending by volume, current prices.

search: find markets by keyword across questions and descriptions.

multiple interfaces: claude desktop integration + standalone cli.

output formats: json, pretty-printed, or clean tables.

caching: built-in smart caching with auto-retry logic.

requirements

rust 1.70+ (curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh)

claude desktop for mcp integration (download)

install

cargo install --git https://github.com/ozgureyilmaz/polymarket-mcp

binary installs to ~/.cargo/bin/polymarket-mcp.

setup

configure claude desktop:

edit ~/Library/Application Support/Claude/claude_desktop_config.json (macos):

{
  "mcpServers": {
    "polymarket": {
      "command": "polymarket-mcp"
    }
  }
}

restart claude desktop.

usage

cli

# trending markets
polymarket-mcp --output table trending --limit 5

# active markets
polymarket-mcp --output table markets --limit 10

# search
polymarket-mcp --output table search "fed" --limit 5

# market details
polymarket-mcp market 601700

# prices
polymarket-mcp prices 601700

with claude

after setup, ask claude:

  • "show me trending prediction markets"
  • "search for markets about trump"
  • "what's the current price on the fed decision market?"

development

cargo test
cargo build --release

links

Files in the repo

Repository payload19 top-level entries
  • .github
  • src
  • tests
  • .dockerignore
  • .env.example
  • .gitignore
  • .release-please-manifest.json
  • Cargo.lock
  • Cargo.toml
  • CHANGELOG.md
  • config.toml.example
  • Dockerfile
  • LICENSE
  • Makefile
  • polymarket-mcp.service
  • README.md
  • RELEASE_PROCESS.md
  • release-please-config.json
  • update_readme.py

Discussion (0)

Ask about usage, or say what you built with it

Sign in to join the discussion.

No comments yet. Be the first to say what this is good for.

More connectors

Real-time global intelligence dashboard. AI-powered news aggregation, geopolitical monitoring, and infrastructure tracking in a unified situational awareness interface

86k

High-performance code intelligence MCP server. Indexes codebases into a persistent knowledge graph — average repo in milliseconds. 158 languages, sub-ms queries, 99% fewer tokens. Single static binary, zero dependencies.

43k

Universal provider proxy for OpenAI Codex & Claude Code — use any LLM (Claude, Gemini, Grok, DeepSeek, Ollama…) with Codex CLI, App, SDK, and Claude Code

14k
okf-memory/
okf-agent-memory

Git-native persistent memory for AI coding agents. Implements Google OKF v0.2 with sub-300µs in-memory BM25 search, embedded MCP server, and progressive disclosure. Slashes token bloat by 80% with zero external databases or dependencies. Built in pure Go.

547
2akouwu/
reverify

Stop your AI from making things up — it proposes, deterministic tools decide, every claim checked against ground truth with evidence. Grounded facts and context survive resets. Reverse engineering is the proving ground. MCP server + CLI.

1.1k
t8y2/dbxConnectors

20 MB lightweight cross-platform database client for 90+ databases, including MySQL, PostgreSQL, SQLite, Redis, MongoDB, DuckDB, SQL Server, and Dameng. Built-in AI, MCP Server, CLI, desktop and Docker. | 轻量级跨平台数据库管理工具,支持 MySQL、PostgreSQL、SQLite、Redis、MongoDB、达梦等 90+ 数据库,提供桌面端、Docker、CLI、内置 AI 助手和 MCP Server。

19k