Polymarket MCP Server

A Model Context Protocol (MCP) server for Polymarket's Gamma Markets API.

Local serverstdio

What is the Polymarket MCP Server?

A Model Context Protocol (MCP) server for Polymarket's Gamma Markets API.

What it actually does

  • Market and Event data access
  • List all available markets and events with extensive filtering options
  • Get detailed market and event information
  • Search markets by keyword
  • Get order book data
  • View recent trades

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
get_marketsMarket Data
get_market_by_idMarket Data
get_order_bookMarket Data
get_recent_tradesMarket Data
get_market_historyMarket Data
search_marketsMarket Data
get_eventsEvent Data
get_event_by_idEvent Data

How to install the Polymarket MCP Server

{
  "mcpServers": {
    "polymarket": {
      "command": "docker",
      "args": [
        "run",
        "--rm",
        "-i",
        "-e", "GAMMA_API_URL",
        "-e", "GAMMA_REQUIRES_AUTH",
        "polymarket-mcp-server"
      ],
      "env": {
        "GAMMA_API_URL": "https://gamma-api.polymarket.com",
        "GAMMA_REQUIRES_AUTH": "false"
      }
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

VariableDescriptionRequired
GAMMA_API_URLEndpoint or connection string the server talks to.Yes
GAMMA_REQUIRES_AUTHConfiguration value read at startup.Optional

Example prompts to try

  • “Use Polymarket to get markets.”
  • “Use Polymarket to get market by id.”
  • “Use Polymarket to get order book.”

Frequently asked questions

It uses Polymarket's Gamma Markets API, with the environment variable `GAMMA_API_URL` defaulting to `https://gamma-api.polymarket.com`.