Skip to main content

Typed FastMCP server for Polymarket discovery, wallet reads, and public CLOB market data.

Project description

polymarket-mcp

CI Release PyPI Python Docs

Typed FastMCP server for Polymarket discovery, wallet analytics, and public CLOB market data.

This package is intentionally read-only in 0.1.x. It helps agents and MCP clients inspect markets, wallets, books, quotes, and history without exposing authenticated trading actions.

PyPI distribution: polymarket-mcp-server
Python package: polymarket_mcp
CLI command: polymarket-mcp

What you get

Surface Purpose Examples
gamma market and event discovery topic search, event lookup, metadata
data wallet reads positions, activity, trades
clob live public market state books, quotes, midpoint, spread, history
flowchart LR
    Client["MCP client / agent"] --> Server["polymarket_mcp.server"]
    Server --> Gamma["gamma server"]
    Server --> Data["data server"]
    Server --> Clob["clob server"]
    Gamma --> GAPI["Gamma API"]
    Data --> DAPI["Data API"]
    Clob --> CLOB["Public CLOB API"]

Install

pip install polymarket-mcp-server

For local development with PDM:

pdm install -G dev
pdm install -G docs

Quick start

pdm run mcp-inspect      # inspect the composed server surface
pdm run mcp-run          # run the stdio MCP server
pdm run test             # run the full pytest suite
pdm run test-mcp         # run MCP client/server end-to-end tests
pdm run all              # tests + docs + MCP inspect

Run the package directly:

pdm run python -m polymarket_mcp.server

Project layout

src/polymarket_mcp/
  models/     typed domain and tool I/O models
  services/   upstream normalization layers
  servers/    FastMCP tool/resource surfaces
  server.py   composed parent MCP server
tests/        unit and MCP end-to-end coverage
docs/         Sphinx documentation

Documentation

  • Docs source: docs/
  • Local build: pdm run docs
  • Local preview: pdm run docs-serve
  • Published docs target: Read the Docs via .readthedocs.yaml

Development notes

  • Tool docstrings are written for LLM tool selection, not just human API reference.
  • tests/test_mcp_e2e.py now covers both in-process and subprocess MCP usage.
  • pdm run mcp-dev uses the FastMCP inspector flow; if the inspector package is not cached locally, the first run may need external package access.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

polymarket_mcp_server-0.1.1.tar.gz (27.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

polymarket_mcp_server-0.1.1-py3-none-any.whl (27.1 kB view details)

Uploaded Python 3

File details

Details for the file polymarket_mcp_server-0.1.1.tar.gz.

File metadata

  • Download URL: polymarket_mcp_server-0.1.1.tar.gz
  • Upload date:
  • Size: 27.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for polymarket_mcp_server-0.1.1.tar.gz
Algorithm Hash digest
SHA256 6375348462d2efeafce35310e311f53d395518f7cf2dfdf47c2f02657772267c
MD5 05a91261d43d7795e8f96c7b7362077d
BLAKE2b-256 18f1c461db86fa7652828358ce70e1cc78fcc1414250abd05312d8ea5e898cde

See more details on using hashes here.

Provenance

The following attestation bundles were made for polymarket_mcp_server-0.1.1.tar.gz:

Publisher: release.yml on pr1m8/polymarket-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file polymarket_mcp_server-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for polymarket_mcp_server-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 316f154e44b1cf0aa81b5ed6549a4038cb51ad716c5a909a5feb76481e5d8836
MD5 8f2295512aacb4458aea3c16fb0598fa
BLAKE2b-256 19570fb01480eff36e924952eea824eb03659c00b9c8a5fd47cec36b8a51a4ad

See more details on using hashes here.

Provenance

The following attestation bundles were made for polymarket_mcp_server-0.1.1-py3-none-any.whl:

Publisher: release.yml on pr1m8/polymarket-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page