Typed FastMCP server for Polymarket discovery, wallet reads, and public CLOB market data.
Project description
polymarket-mcp
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.pynow covers both in-process and subprocess MCP usage.pdm run mcp-devuses the FastMCP inspector flow; if the inspector package is not cached locally, the first run may need external package access.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6375348462d2efeafce35310e311f53d395518f7cf2dfdf47c2f02657772267c
|
|
| MD5 |
05a91261d43d7795e8f96c7b7362077d
|
|
| BLAKE2b-256 |
18f1c461db86fa7652828358ce70e1cc78fcc1414250abd05312d8ea5e898cde
|
Provenance
The following attestation bundles were made for polymarket_mcp_server-0.1.1.tar.gz:
Publisher:
release.yml on pr1m8/polymarket-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
polymarket_mcp_server-0.1.1.tar.gz -
Subject digest:
6375348462d2efeafce35310e311f53d395518f7cf2dfdf47c2f02657772267c - Sigstore transparency entry: 1299144981
- Sigstore integration time:
-
Permalink:
pr1m8/polymarket-mcp@ea84e95a00b83d9a3c8885fd7e78f9f59384921a -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/pr1m8
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@ea84e95a00b83d9a3c8885fd7e78f9f59384921a -
Trigger Event:
push
-
Statement type:
File details
Details for the file polymarket_mcp_server-0.1.1-py3-none-any.whl.
File metadata
- Download URL: polymarket_mcp_server-0.1.1-py3-none-any.whl
- Upload date:
- Size: 27.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
316f154e44b1cf0aa81b5ed6549a4038cb51ad716c5a909a5feb76481e5d8836
|
|
| MD5 |
8f2295512aacb4458aea3c16fb0598fa
|
|
| BLAKE2b-256 |
19570fb01480eff36e924952eea824eb03659c00b9c8a5fd47cec36b8a51a4ad
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
polymarket_mcp_server-0.1.1-py3-none-any.whl -
Subject digest:
316f154e44b1cf0aa81b5ed6549a4038cb51ad716c5a909a5feb76481e5d8836 - Sigstore transparency entry: 1299145048
- Sigstore integration time:
-
Permalink:
pr1m8/polymarket-mcp@ea84e95a00b83d9a3c8885fd7e78f9f59384921a -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/pr1m8
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@ea84e95a00b83d9a3c8885fd7e78f9f59384921a -
Trigger Event:
push
-
Statement type: