POLYMARKET MCP SERVER

Polymarket MCP server for Claude Code, Codex and Cursor.

Slay runs a remote MCP server. Your agent connects by URL. Market reads need no key. Orders need a Slay API key, and Slay's server enforces your limits.

Read https://www.slay.money/skill.md and set me up on Slay. Plan a strategy and wait for my approval before the first trade.

Or add the server by hand. The steps are below.

TOOLS

Seven tools. Three need no key.

The list is read from the server's own tool definitions, so it matches what the endpoint returns. Prices run from 0 to 1, which is the market's probability.

search_marketsNo key

Find live prediction markets on Polymarket and Hyperliquid by words. No key needed. Returns each market's id, title, options and live prices. Prices are 0 to 1 (probability).

Inputs: query, venue, category, limit

get_order_bookNo key

One side's order book, best first: bids and asks as {px, sz} (price 0 to 1, size in shares). Coin is a Hyperliquid side (#398270) or a Polymarket token (pm:<token id>). No key needed.

Inputs: coin

get_quoteNo key

What an order would get on each venue, after fees, and which venue is better. Give usd for a buy or shares for a sell. No key needed; with a key, the fee is priced at the account's rate.

Inputs: market, option, outcome, side, usd, shares

place_orderSlay API key

Place an order on the account's own Hyperliquid or Polymarket wallets, through Slay's API. Needs the Slay API key with trading on. Limits and price checks apply. Show the plan and get a yes first.

Inputs: market, venue, coin, option, outcome, side, type, usd, shares, price, clientOrderId

cancel_orderSlay API key

Cancel an open order that Slay placed for this key's account. Hyperliquid needs coin.

Inputs: venue, orderId, coin

list_ordersSlay API key

Open orders on both venues, and the last 50 orders and cancels Slay placed for this key. Needs the Slay API key.

Inputs: none

get_accountSlay API key

The account behind the Slay API key: wallets, cash, positions on both venues, open Hyperliquid orders, and API trading (on or off, limits). Needs the Slay API key.

Inputs: none

SETUP

Connect in one command or one file.

Create a key at slay.money/api/keys. Turn trading on and set your limits first. Put the key in place of <your key>.

Claude Code

Run this in a terminal. Leave out the --header part to read markets only.

claude mcp add --transport http slay https://www.slay.money/api/mcp --header "Authorization: Bearer <your key>"

Codex

Add this to ~/.codex/config.toml. The file holds the variable name, not the key. Set SLAY_API_KEY in the shell that starts Codex.

[mcp_servers.slay]
url = "https://www.slay.money/api/mcp"
bearer_token_env_var = "SLAY_API_KEY"

Cursor

Add this to ~/.cursor/mcp.json (or .cursor/mcp.json in one project).

{
  "mcpServers": {
    "slay": {
      "url": "https://www.slay.money/api/mcp",
      "headers": { "Authorization": "Bearer <your key>" }
    }
  }
}

Any other agent that adds a remote MCP server by URL and header works the same way. The endpoint speaks Streamable HTTP with JSON responses.

APPROACHES

Three ways to trade Polymarket from code.

Polymarket's own CLOB API

You hold the key that signs each order. You build the client, the wallet setup and the limits in your own code.

Use it when you want to hold the signing key yourself and write every check yourself.

Community MCP servers

The author wrote the code and may run it. What it can do with your key depends on that code.

Read the code and the hosting before you give it a key. Check what it sends and where.

Slay's MCP server

Slay holds the trading key or API wallet for your account. Slay's server enforces the limits and the price check.

Use it for one key across Polymarket and Hyperliquid, with limits you set when you create the key.

The official API gives you control of the signing key. Slay gives one key for Polymarket and Hyperliquid, with the limits enforced on Slay's server. Pick the one whose custody and limits fit your setup.

LIMITS

What stops a runaway agent.

  • Per order: the default cap is $100. A key can be set up to $10,000.
  • Per UTC day: the default cap is $500. A key can be set up to $50,000.
  • Rate: 60 order requests a minute per key.
  • Price check on main-account orders: no buy more than 5 cents above the book's middle. A book with a spread over 10 cents is refused.
  • Retry safety: a repeated clientOrderId returns the first answer. It never places a second order.
  • No withdraw tool. The list above has no withdrawal.
  • Revoking the key stops it within a minute. Slay can also pause all API trading at once.

The same limits apply to the REST endpoints. Details: the API reference and /ai/facts.md.

NOTES

How the endpoint behaves.

  • Stateless. Each request stands alone. Responses are JSON, not streams.
  • Protocol versions 2025-06-18 and 2025-03-26. A client that asks for another version gets 2025-06-18.
  • The endpoint is not for search results: it sends noindex, and robots.txt disallows it. This page is the indexable part.
  • The full agent guide is at /skill.md. Hyperliquid details are on the HIP-4 trading page.
Start with the one line.
Your agent plans first. You approve the first trade.
Back to the line