drio
Open app

PolyMarket MCP Server

Source

MCP Server for PolyMarket API

Catalog onlyCatalog onlySTDIO

Overview

PolyMarket MCP Server is a Model Context Protocol (MCP) server that provides access to prediction market data through the PolyMarket API, allowing users to retrieve market information, prices, and historical data.

To use the PolyMarket MCP Server, install it via Smithery or clone the repository, install dependencies, and run the server with your PolyMarket API key configured in a .env file.

  • Real-time prediction market data with current prices and probabilities - Detailed market information including categories, resolution dates, and descriptions - Historical price and volume data with customizable timeframes - Built-in error handling and rate limit management - Clean data formatting for easy consumption
  1. Accessing real-time market data for analysis
  2. Building applications that require prediction market insights
  3. Conducting research on market trends and probabilities

Add to your AI client

Use these steps to connect PolyMarket MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "polymarket-mcp-berlinbra": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-polymarket-mcp-berlinbra"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "polymarket-mcp-berlinbra": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-polymarket-mcp-berlinbra"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "polymarket-mcp-berlinbra": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-polymarket-mcp-berlinbra"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "polymarket-mcp-berlinbra": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-polymarket-mcp-berlinbra"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "polymarket-mcp-berlinbra": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-polymarket-mcp-berlinbra"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "polymarket-mcp-berlinbra": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-polymarket-mcp-berlinbra"
      ]
    }
  }
}

FAQ

What programming language is used for the server?

The server is built using Python.

Is there a limit on the number of requests?

Yes, the server implements rate limiting to manage API requests.

Can I contribute to the project?

Yes! Contributions are welcome, and you can submit a Pull Request.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":947,"uuid":"bdd86490-9ff4-4e5d-b9e1-2d5c60787f6c","name":"polymarket-mcp","title":"PolyMarket MCP Server","description":"MCP Server for PolyMarket API","avatar_url":"https://avatars.githubusercontent.com/u/22691626?v=4","created_at":"2025-01-28T02:19:59.603Z","updated_at":"2025-02-23T07:12:21.778Z","status":"created","author_name":"berlinbra","author_avatar_url":"https://avatars.githubusercontent.com/u/22691626?v=4","tags":"polymarket,prediction-market,api-server","category":"research-and-data","is_featured":false,"sort":1,"url":"https://github.com/berlinbra/polymarket-mcp","target":"_self","content":"$29","summary":"$2a","img_url":"https://camo.githubusercontent.com/0b5ef9bcbf4122789a4358ef413a31d2333a8b43b3b0b0e9aa22ad10ca09b1b7/68747470733a2f2f736d6974686572792e61692f62616467652f706f6c796d61726b65745f6d6370","type":null,"metadata":null,"user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]