polymarket-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| logging | {} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| extensions | {
"io.modelcontextprotocol/ui": {}
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| gamma_search_publicA | Search Polymarket discovery data by free-text topic. Use this tool when you know a topic or phrase but do not yet know the exact market slug. This is the best first step for queries like "Fed decision", "NBA finals", or "election odds". Prefer this tool over The |
| gamma_list_marketsA | List or filter markets when you already have structured constraints. Use this tool when you want market discovery with explicit filters such as active-only results, a tag ID, a series slug, or an exact slug. This is more structured than free-text search. Prefer this tool over A slug should be the Polymarket slug string from the URL, not the full URL
itself. This tool returns normalized market objects that may include
|
| gamma_get_market_by_slugA | Fetch one canonical market by its slug. Use this tool when you already know the exact market slug and want the clearest single-market lookup. This is the preferred tool after a search step has identified the correct market. Do not use this tool for broad discovery across a topic; use
This tool is often followed by CLOB book or price lookups if you want live market state, or by event lookup if you want the parent event context. |
| gamma_list_eventsA | List or filter event groups that contain one or more markets. Use this tool when you want broader event-level discovery rather than individual market-level discovery. Events often provide better context for finding clusters of related markets under one theme. Prefer this tool over Event results may include nested market objects, which makes this tool a good starting point for collecting related market slugs and token IDs. |
| gamma_get_event_by_slugA | Fetch one canonical event by its slug. Use this tool when you already know the event slug and want the full event-level context, including any nested markets returned by Gamma. Prefer this tool when the question is about an event grouping rather than a
single market. If you only know the topic in natural language, use
The slug should be the event slug string from the Polymarket URL path, not the full URL. This tool is especially helpful for finding all related markets under one event before selecting a specific market for deeper analysis. |
| gamma_list_tagsA | List available discovery tags for category-based exploration. Use this tool when you need category metadata such as politics, crypto, or sports-style groupings and want to drive a later structured market query. Prefer this tool before Args: None. Returns: list[dict[str, object]]: Raw tag payloads from Gamma. Raises: httpx.HTTPError: If the upstream Gamma request fails. Examples: .. code-block:: python |
| gamma_list_seriesA | List available series metadata for structured discovery. Use this tool when the user refers to a known series or recurring grouping and you need series metadata before filtering markets with a series slug. Prefer this tool when discovery is series-oriented rather than free-text
topic-oriented. For general search, use Args: None. Returns: list[dict[str, object]]: Raw series payloads from Gamma. Raises: httpx.HTTPError: If the upstream Gamma request fails. Examples: .. code-block:: python |
| gamma_list_sportsA | List sports metadata for sports-related discovery flows. Use this tool when the user is exploring sports markets and you need sport metadata before narrowing to teams, events, or markets. Prefer this tool when the question is explicitly sports-oriented. For a
direct market/topic search, Args: None. Returns: list[dict[str, object]]: Raw sports payloads from Gamma. Raises: httpx.HTTPError: If the upstream Gamma request fails. Examples: .. code-block:: python |
| gamma_list_teamsA | List team metadata for sports-market exploration. Use this tool when a sports workflow needs team-level metadata before finding related events or markets. Prefer this tool after identifying a sport or when the user explicitly asks about teams. For non-sports discovery, use other Gamma tools instead. Args: None. Returns: list[dict[str, object]]: Raw team payloads from Gamma. Raises: httpx.HTTPError: If the upstream Gamma request fails. Examples: .. code-block:: python |
| data_get_positionsA | Fetch current positions for one wallet. Use this tool when the user wants to know what a wallet currently holds, which markets it is exposed to, or its current directional footprint. Prefer this tool over The input should be a wallet address, typically in |
| data_get_closed_positionsA | Fetch closed positions for one wallet. Use this tool when the user wants completed or no-longer-open positions, such as reviewing realized exposure or prior bets. Prefer this tool over The input should be a wallet address, typically in |
| data_get_activityA | Fetch recent activity for one wallet. Use this tool when the user wants to know what a wallet has been doing recently, including buying, selling, or other account-level actions. Prefer this tool over The input should be a wallet address, typically in |
| data_get_tradesA | Fetch trade rows for a wallet or market filter. Use this tool when the user wants trade-level records rather than current holdings or general wallet activity. This is useful for detailed flow analysis and execution history. Prefer this tool over The input can include a wallet address, a market filter, or both, depending on what the user already knows. A common next step is to summarize the trade flow or compare it with current positions. |
| clob_get_bookA | Fetch the current order book for one token. Use this tool when the user wants live market microstructure such as bids, asks, depth, spread, or liquidity around the current price. Prefer this tool over The input should be a single CLOB token ID, not a market slug or wallet address. A common next step is to summarize book depth or compare books across multiple tokens. |
| clob_get_booksA | Fetch current order books for multiple tokens. Use this tool when the user wants to compare liquidity or depth across several known tokens at once. Prefer this tool over repeated single-token lookups when you already know multiple token IDs. Do not use this tool if you still need to identify which market or token is relevant. The input should be a list of CLOB token IDs. A common next step is to rank the returned books by spread, depth, or visible liquidity. |
| clob_get_priceA | Fetch a current price quote for one token. Use this tool when the user wants the current quoted price or implied level for a known token but does not need the full order book. Prefer this tool over The input should be a single CLOB token ID. A common next step is to compare the quote with historical prices or fetch the full book. |
| clob_get_pricesA | Fetch current price quotes for multiple tokens. Use this tool when the user wants a quick multi-token quote snapshot without needing full order books for each token. Prefer this tool over repeated single-token quote calls when several token IDs are already known. Do not use this tool for discovery or wallet-level analysis. The input should be a list of CLOB token IDs. A common next step is to rank
tokens by price or follow up with |
| clob_get_midpointA | Fetch the midpoint for one token. Use this tool when the user specifically wants the midpoint rather than a full order book or generic quote. Prefer this tool when reasoning about fair value between best bid and best
ask. If depth matters too, use The input should be a single CLOB token ID. |
| clob_get_spreadA | Fetch the spread for one token. Use this tool when the user specifically wants transaction tightness, execution quality hints, or a quick liquidity proxy. Prefer this tool over The input should be a single CLOB token ID. |
| clob_get_price_historyA | Fetch historical price points for one token. Use this tool when the user wants trend, momentum, or time-series context for a known token. Prefer this tool over The input should be a single CLOB token ID plus an interval and optional time bounds. A common next step is to summarize the trend or compare recent history with the current quote or spread. |
| list_resourcesA | List all available resources and resource templates. Returns JSON with resource metadata. Static resources have a 'uri' field, while templates have a 'uri_template' field with placeholders like {name}. |
| read_resourceA | Read a resource by its URI. For static resources, provide the exact URI. For templated resources, provide the URI with template parameters filled in. Returns the resource content as a string. Binary content is base64-encoded. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/pr1m8/polymarket-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server