Getting started¶
Install¶
Install the published package:
pip install polymarket-mcp-server
Or run it without creating a persistent environment:
uvx --from polymarket-mcp-server polymarket-mcp
For local development, install the PDM groups:
pdm install -G dev
pdm install -G docs
Configure an MCP client¶
Example stdio configuration using uvx:
{
"mcpServers": {
"polymarket": {
"command": "uvx",
"args": ["--from", "polymarket-mcp-server", "polymarket-mcp"]
}
}
}
Inspect the server¶
Use the composed MCP inspector summary as the first sanity check:
pdm run mcp-inspect
You should see a polymarket server exposing the namespaced Gamma, Data, and
CLOB tools plus generated resource helpers.
Run the server¶
Run the stdio server for local MCP clients:
pdm run mcp-run
Or run the package entrypoint directly:
pdm run python -m polymarket_mcp.server
Namespaces¶
gammacovers market and event discovery.datacovers wallet positions, activity, and trades.clobcovers public quotes, books, spreads, and historical pricing.
Validate the project¶
pdm run test
pdm run test-mcp
pdm run check
pdm run all
testruns the full pytest suite.test-mcpfocuses on MCP client/server flows.checkruns tests and inspects the server.allruns tests, docs, and MCP inspection.
Domain-specific servers¶
You can inspect or run the child servers independently:
pdm run mcp-gamma-inspect
pdm run mcp-data-inspect
pdm run mcp-clob-inspect
pdm run mcp-gamma-run
pdm run mcp-data-run
pdm run mcp-clob-run