Skip to main content
Glama
unsanction

Polymarket MCP Server

by unsanction

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
POLYMARKET_FUNDERNoProxy wallet address (optional, derived if not set)
POLYMARKET_API_KEYNoAPI key (auto-derived if not set)
POLYMARKET_CHAIN_IDNoPolygon mainnet chain ID (default 137)
POLYMARKET_READONLYNoDisable trading tools when set to true (default false)
POLYMARKET_API_SECRETNoAPI secret (auto-derived if not set)
POLYMARKET_PASSPHRASENoAPI passphrase (auto-derived if not set)
POLYMARKET_PRIVATE_KEYYesWallet private key for signing

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
polymarket_get_marketsB

List available prediction markets on Polymarket, sorted by volume. Returns market question, current prices for Yes/No outcomes, token IDs, volume, liquidity, and Polymarket URL.

polymarket_get_marketA

Get detailed information about a specific prediction market including token IDs, current prices, description, liquidity, and market status.

Provide one of: condition_id, slug, or a full Polymarket URL (e.g. https://polymarket.com/event/btc-updown-15m-1770647400).

polymarket_get_orderbookA

Get the order book for a specific token showing current bids and asks with prices and sizes.

polymarket_get_balanceA

Get the USDC balance and allowance for the configured wallet on Polymarket.

polymarket_get_positionsA

Get real positions (token holdings) for the configured wallet from Polymarket Data API.

Returns actual token balances with P&L, not just open orders.

Parameters:

  • redeemable: Filter to only show redeemable (resolved) positions (default: false)

  • market: Filter by condition ID (optional)

  • limit: Max results 1-500 (default: 100)

Response includes:

  • token_id, condition_id, outcome, size, avg_price, current_price

  • pnl (cash P&L), pnl_percent

  • redeemable/mergeable flags

  • market title, slug, end_date

polymarket_update_allowanceA

Trigger a refresh of the USDC allowance for trading on Polymarket.

Use this when orders fail due to insufficient allowance. This tells the CLOB server to re-check and update the on-chain allowance state.

polymarket_get_newsA

Fetch recent news headlines for a topic via Google News RSS. Useful for understanding current events and market context when analyzing prediction markets. No API key required.

polymarket_get_tradesB

Get recent executed trades for the configured wallet.

polymarket_place_orderA

Place a limit order on Polymarket. CAUTION: This executes a real trade with real funds. Price must be between 0 and 1, size in shares.

polymarket_place_market_orderA

Place a market order on Polymarket for immediate execution.

CAUTION: This executes a REAL trade with REAL funds at market price!

Parameters:

  • token_id: The token to trade

  • side: "BUY" or "SELL"

  • amount: For BUY — USD amount to spend. For SELL — number of shares to sell.

  • order_type: "FOK" (Fill or Kill, default) or "FAK" (Fill and Kill — allows partial fills)

Examples:

  • BUY $10 worth of Yes tokens: side="BUY", amount="10"

  • SELL 5 shares at market: side="SELL", amount="5"

polymarket_cancel_orderC

Cancel an existing order on Polymarket.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

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/unsanction/mcp-polymarket'

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