Skip to main content
Glama

Polymarket MCP Tool

A Model Context Protocol (MCP) tool for interacting with Polymarket through Claude Desktop.

Prerequisites

  • Claude Desktop App for Mac

  • Python 3.8+

Related MCP server: Polymarket MCP Server

Installation

  1. Clone this repository:

git clone https://github.com/fernandezpablo85/polymarket-mcp.git
cd polymarket-mcp
  1. Install uv if you haven't already:

curl -LsSf https://astral.sh/uv/install.sh | sh
  1. Install dependencies:

uv sync

Configure Claude Desktop

  1. Open Claude Desktop configuration directory:

open ~/Library/Application\ Support/Claude
  1. Create or edit claude_desktop_config.json:

touch ~/Library/Application\ Support/Claude/claude_desktop_config.json
  1. Add the following configuration:

{
  "mcpServers": {
    "polymarket": {
      "command": "/Users/YOUR_USERNAME/.local/bin/uv",
      "args": [
        "--directory",
        "/Users/YOUR_USERNAME/projects/polymarket-mcp",
        "run",
        "main.py"
      ]
    }
  }
}

Replace YOUR_USERNAME with your actual macOS username.

Usage

Invoke the tool via Claude Desktop.

Troubleshooting

  • If tools don't appear in Claude Desktop:

    • Verify your claude_desktop_config.json is correct

    • Restart Claude Desktop

    • Check your Python path and dependencies

  • If authentication fails:

    • Verify your .env file has correct credentials

    • Check Polymarket API status

License

MIT

Contributing

Feel free to open issues or submit pull requests.

Available Tools

3 tools
prediction_markets_markets_by_topicA

Call after you have a Polymarket topic slug (from the user or prediction_markets_trending_topics) and need the top markets under it.

Parameters

topic_slug : str Identifier such as "trump-presidency". limit : int, default 10 Number of markets to return, ranked by 24-hour volume (desc).

Returns

str JSON array of objects with the schema: [ { "title": "Trump to win 2024?", "volume": 123456.78, "outcomes": [ {"option": "Yes", "probability": 0.42}, {"option": "No", "probability": 0.58} ] }, … ] Parse with json.loads.

Inputs: topic_slug (required), limit.

search_prediction_marketsB

Search prediction markets by any term.

Parameters

search_term : str Identifier such as "argentina".

Returns

str JSON array of objects with the schema: [ { "title": "Trump to win 2024?", "volume": 123456.78, "outcomes": [ {"option": "Yes", "probability": 0.42}, {"option": "No", "probability": 0.58} ] }, … ] Parse with json.loads.

Inputs: search_term (required).

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A3.8/5.0

    Scored across 3 tools

    Disambiguation4/5

    The three tools have distinct primary purposes: getting trending topics, fetching markets by topic, and searching markets by term. However, there is some functional overlap between `prediction_markets_markets_by_topic` and `search_prediction_markets` as both return market data, which could cause minor confusion about when to use each.

    Naming Consistency5/5

    All tool names follow a consistent snake_case pattern with a clear `prediction_markets_` prefix and descriptive suffixes (`trending_topics`, `markets_by_topic`, `search_prediction_markets`). The naming is predictable and follows a logical structure throughout.

    Tool Count3/5

    With only 3 tools, the server feels somewhat thin for a prediction markets domain. While the tools cover basic discovery and search functionality, the limited count suggests potential gaps in comprehensive market interaction capabilities that might be expected from such a service.

    Completeness3/5

    The tools provide good discovery and search capabilities but lack any market interaction functions (like placing bets, viewing user positions, or managing portfolios). For a prediction markets server, this represents notable gaps in the full lifecycle of market participation, though the provided tools work well together for information gathering.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      A Model Context Protocol (MCP) server for Polymarket prediction markets, providing real-time market data, prices, and AI-powered analysis tools for Claude Desktop integration.
      48
      MIT
    • F
      license
      A
      quality
      C
      maintenance
      A Model Context Protocol server that enables seamless integration with Polymarket, providing tools to search markets, fetch events, analyze leaderboards, query user activity, and more via MCP-compatible clients like Claude.
      15
      -