Skip to main content
Glama
Franzferdinan51

Polymarket MCP Server

Polymarket MCP Server

MCP server for Polymarket prediction markets — powered by the official polymarket-us TypeScript SDK.

Features

  • 6 MCP tools for reading market data, searching, and analyzing bets

  • Public data — no API key needed for reading markets

  • Trading ready — supports authenticated endpoints with API key

  • Dual mode — runs as stdio MCP (DuckHive/OpenClaw) or HTTP server

Related MCP server: Polymarket MCP Server

Installation

cd polymarket-mcp
npm install

DuckHive / OpenClaw Setup

Add to ~/.duckhive.json:

{
  "mcpServers": {
    "polymarket": {
      "command": "node",
      "args": ["/path/to/polymarket-mcp.mjs"]
    }
  }
}

For trading (optional), add your API key:

{
  "mcpServers": {
    "polymarket": {
      "command": "node",
      "args": ["/path/to/polymarket-mcp.mjs"],
      "env": {
        "POLYMARKET_KEY_ID": "your_key_id",
        "POLYMARKET_SECRET_KEY": "your_secret_key"
      }
    }
  }
}

Get your API key at: https://app.polymarket.com/api-keys

Tools

Tool

Description

search_polymarket

Search markets by keyword

get_polymarket_market

Full market details by slug

get_polymarket_trending

Trending events by volume

get_polymarket_price

Current odds + best bid/ask

get_polymarket_bet_analysis

Odds, profit calc, vig, value rating

get_polymarket_events

Browse events by category

HTTP Mode (testing)

node polymarket-mcp.mjs --http
curl http://localhost:3457/health

Known 2026 Midterm Slugs

Market

Slug

Senate GOP win

paccc-usse-midterms-2026-11-03-rep

Senate Democrat win

paccc-usse-midterms-2026-11-03-dem

House Democrat win

paccc-usho-midterms-2026-11-03-dem

House GOP win

paccc-usho-midterms-2026-11-03-rep

Docs

Available Tools

6 tools
get_polymarket_bet_analysisA

Full bet analysis: current odds, implied probability, potential profit on a $100 bet, vig estimate, and value assessment.

ParametersJSON Schema
NameRequiredDescriptionDefault
slugYesMarket slug
betSizeNoBet amount in USD (default $100)

TDQS

A4.1/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description bears full responsibility for behavioral disclosure. It explicitly lists the analysis components (odds, implied probability, profit, vig, value assessment), giving agents a clear idea of expected outputs. However, it does not mention potential error conditions, data freshness, or rate limits, which would enhance transparency.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence that lists the key components. It is front-loaded with 'Full bet analysis' and is not verbose. However, it lacks structured formatting (e.g., bullet points) which could improve readability and parsing.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's simplicity (2 parameters, no output schema), the description provides a comprehensive overview of what the tool returns. It covers the essential analysis aspects. While it does not detail the return format or error handling, it is sufficient for a well-defined tool with strong schema coverage and sibling context.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% with both 'slug' and 'betSize' documented. The description reinforces that betSize defaults to 100, matching the schema default. It does not add new semantic meaning beyond what the schema already provides, so a baseline score of 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool provides 'Full bet analysis' including specific components: current odds, implied probability, potential profit on a $100 bet, vig estimate, and value assessment. This distinctly differentiates it from sibling tools like get_polymarket_events, get_polymarket_market, get_polymarket_price, etc., which address other aspects of Polymarket markets.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage when a user has a market slug and wants to evaluate a bet, listing the analysis outputs. However, it does not explicitly state when not to use it or mention alternatives among siblings. The context is clear but lacks explicit exclusions.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

get_polymarket_eventsA

List Polymarket events (groupings of related markets). Good for browsing by category like politics, sports, crypto.

ParametersJSON Schema
NameRequiredDescriptionDefault
categoryNoFilter by category (e.g. "politics", "sports", "crypto")
limitNoMax events to return (default 10, max 50)

TDQS

A3.5/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description must carry the full burden. It only states it lists events, without disclosing read-only nature, error handling, rate limits, or behavior when no events match. The minimal description fails to provide sufficient behavioral context.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is extremely concise, with two short sentences that efficiently convey the tool's purpose and a usage hint. No fluff or unnecessary detail.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple list tool with 2 parameters and no output schema, the description is adequate but lacks details about the return format (e.g., what fields each event object contains). This leaves the agent uncertain about what to expect from the response.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the schema already describes both parameters. The description's mention of 'browsing by category like politics, sports, crypto' adds minimal value beyond the schema's example values. Baseline of 3 is appropriate as it does not contradict but also does not significantly augment.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action ('List') and the resource ('Polymarket events (groupings of related markets)'). It distinguishes from siblings like get_polymarket_market (individual market) and search_polymarket (search) by emphasizing categorization.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description says 'Good for browsing by category' which implies when to use, but it does not explicitly state alternatives or when not to use. No direct comparison with sibling tools is provided.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

get_polymarket_marketA

Get full details for a specific Polymarket market by slug. Includes current odds, outcomes, volume, liquidity, and order book.

ParametersJSON Schema
NameRequiredDescriptionDefault
slugYesMarket slug (e.g. "paccc-usse-midterms-2026-11-03-rep")
includeBookNoInclude best bid/ask and spread (default false)

TDQS

A3.5/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations provided, so description carries full burden. It mentions included data but does not disclose potential null fields, error responses, or any side effects. Acceptable but not thorough.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two concise sentences with no filler. Essential information is front-loaded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

No output schema, so description should explain return shape. Lists some fields but incomplete (e.g., no mention of market ID, start time, etc.). Adequate but could be more complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Input schema has 100% coverage, so baseline is 3. Description adds no new meaning beyond what schema provides for 'slug' and 'includeBook'.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Description clearly states the tool retrieves full details for a specific market by slug, listing included data (odds, outcomes, volume, liquidity, order book). This distinguishes it from siblings like get_polymarket_price which only returns price.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance on when to use this tool versus alternatives. Does not specify prerequisites or contexts where other tools are more appropriate.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

get_polymarket_priceA

Get current odds for a specific market by slug. Shows all outcomes with implied probability.

ParametersJSON Schema
NameRequiredDescriptionDefault
slugYesMarket slug

TDQS

A3.8/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations provided, so description carries burden. It mentions output (outcomes with probabilities) but lacks details on error behavior, idempotency, or rate limits.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences tightly pack purpose and output. No redundant words.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Adequate for a simple one-parameter tool with no output schema. Covers main functionality and output type, though could hint at output format.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% for the single parameter. Description adds 'by slug' confirmation but no extra value beyond schema's 'Market slug'.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Clearly states verb (get), resource (current odds), and how to specify (by slug). Shows all outcomes with implied probability. Distinguishes from sibling tools like get_polymarket_market.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Implies usage when needing odds for a specific market by slug, but does not explicitly compare with siblings or provide when-not-to-use guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

search_polymarketA

Search Polymarket markets by keyword. Returns matching events with their markets, odds, and volume. Use this to find slugs for other tools.

ParametersJSON Schema
NameRequiredDescriptionDefault
queryYesSearch keyword (e.g. "US Senate 2026", "Bitcoin", "Elections")
limitNoMax events to return (default 10, max 50)

TDQS

A4.4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

The description implies a read-only operation ('Search... Returns...') but does not explicitly state it is non-destructive or safe. Given no annotations, a slightly more explicit statement (e.g., 'Read-only search') would improve transparency.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is two short sentences, front-loaded with the core action and input, followed by output and usage guidance. No wasted words.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Lacking an output schema, the description provides a useful summary of return fields (events, markets, odds, volume) and the tool's role. It does not explain what a slug is or how to use it with siblings, but such details are reasonable to omit for brevity.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Both parameters are already well-documented in the input schema (query with examples, limit with defaults). The description adds no additional meaning beyond stating the output's purpose (find slugs), which is only marginally helpful for parameter understanding.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool searches Polymarket markets by keyword, returns matching events with markets, odds, and volume. It explicitly mentions the purpose of finding slugs for other tools, which differentiates it from sibling tools that require specific identifiers.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explicitly tells when to use this tool: 'Use this to find slugs for other tools.' This is clear guidance on its role in the workflow, implying it is the entry point for discovering markets, while siblings likely require pre-existing slugs.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

TDQS

A4.1/5.0
Disambiguation5/5

Each tool has a clearly distinct function: analysis, event listing, market details, price, trending, and search. No overlapping purposes.

Naming Consistency5/5

All tools use a consistent 'get_' or 'search_' prefix followed by the domain name 'polymarket' with underscore-separated words, making them predictable.

Tool Count5/5

Six tools is optimal for a prediction market server, covering browsing and analysis without being too sparse or overly numerous.

Completeness4/5

The tools cover key operations: listing, searching, getting details, pricing, trending, and analysis. However, actions like placing bets or managing accounts are absent, which might limit full workflow integration.

Maintenance

ActivityInactive
ResponsivenessSyncing

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    A Model Context Protocol server that enables seamless integration with Polymarket, providing tools to search markets, fetch events, analyze leaderboards, query user activity, and more via MCP-compatible clients like Claude.
    37
    MIT
  • A
    license
    C
    quality
    D
    maintenance
    MCP server exposing 47 Polymarket API tools for AI assistants. Covers the full Gamma, CLOB, and Data APIs plus a fluent MarketBuilder for multi-source queries.
    47
    22
    2
    MIT

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/Franzferdinan51/polymarket-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server