
Polymarket MCP Server
- Updated March 29, 2026
- joinQuantish/polymarket-mcp
Polymarket MCP Server is a MCP integration that lets AI agents interact with Polymarket prediction markets through a self-hosted stdio server.
About
Polymarket MCP Server is a self-hosted Model Context Protocol server that exposes Polymarket prediction-market capabilities to coding agents. developers shipping trading bots, research assistants, or semi-automated market-making experiments install it when they want the agent to query markets and act on-chain or via Polymarket APIs without custom glue for every session. Because it is self-hosted, you control credentials, rate limits, and deployment topology—important when real funds or API keys are involved. It sits in the Build → Integrations journey slice: you add it while composing agent tooling, not while doing competitor research or post-launch SEO. Pair it with clear human-in-the-loop rules; prediction markets carry financial and regulatory risk. The catalog treats this as an MCP integration, not a bundled agent skill—register the server in your MCP config and invoke tools from your agent of choice.
- Self-hosted MCP server scoped to Polymarket prediction markets
- Designed for AI agent workflows rather than manual browser trading
- stdio transport for local Claude Code, Cursor, and compatible MCP clients
- Repository: joinQuantish/polymarket-mcp (version 0.1.0 in server metadata)
Polymarket MCP Server by the numbers
- Data as of Jul 7, 2026 (Skillselion catalog sync)
claude mcp add PolymarketMCPServer -- npx -y joinQuantish/polymarket-mcpAdd your badge
Show developers this MCP server is listed on Skillselion. Paste this into your README.
| Last updated | March 29, 2026 |
|---|---|
| Repository | joinQuantish/polymarket-mcp ↗ |
What it does
Let Claude Code or Cursor agents discover markets, read odds, and execute trades on Polymarket through a self-hosted MCP bridge.
Who is it for?
Best when you're prototyping agent-driven Polymarket research, alerting, or execution with your own keys and infra.
Skip if: Skip if you need a hosted SaaS terminal, non-agent manual trading UIs, or developers and will not run or secure a self-hosted MCP process.
What you get
After you register the server locally, your agent can call Polymarket-oriented MCP tools from Claude Code, Cursor, or other MCP clients using your hosted instance.
- Registered stdio MCP server in your agent config
- Agent-callable tools for Polymarket market operations
- Repeatable local trading or research loop without per-session custom scripts
By the numbers
- Server schema version 0.1.0 in published metadata
- Source repository: github.com/joinQuantish/polymarket-mcp
README.md
Polymarket MCP Server
⚠️ Notice: Quantish is winding down. The Quantish platform (quantish.live) is shutting down. This MCP server is self-hosted and will continue to work independently, but the Quantish team will no longer be maintaining or updating this project. If you're building in the prediction market space and need real-time data infrastructure, check out polynode.dev.
Self-hosted MCP server for trading on Polymarket prediction markets.
Overview
This package provides an MCP (Model Context Protocol) server that enables AI agents to trade on Polymarket prediction markets via the Polygon network.
Features
- Full Polymarket Trading - Buy/sell on any Polymarket market
- Polygon Wallet Management - Generate and manage wallets with Safe integration
- Gasless Transactions - Most operations use Polymarket's relayer (no MATIC needed)
- MCP Compatible - Works with Claude, Cursor, and any MCP client
- Self-Hostable - Run on Railway, Fly.io, or any Node.js host
Quick Start
git clone https://github.com/joinQuantish/polymarket-mcp
cd polymarket-mcp
npm install
Environment Variables
| Variable | Required | Description |
|---|---|---|
DATABASE_URL |
Yes | PostgreSQL connection string |
ENCRYPTION_KEY |
Yes | 32-byte hex string for wallet encryption |
POLYGON_RPC_URL |
Yes | Polygon RPC endpoint |
BOT_SIGNING_SECRET |
No | Secret for trusted bot HMAC authentication |
PORT |
No | Server port (defaults to 3000) |
Generate Encryption Keys
# Generate ENCRYPTION_KEY (32 bytes = 64 hex chars)
node -e "console.log(require('crypto').randomBytes(32).toString('hex'))"
# Generate BOT_SIGNING_SECRET (for trusted bot auth)
node -e "console.log(require('crypto').randomBytes(32).toString('hex'))"
Database Setup
Any PostgreSQL database works. Options:
| Provider | Notes |
|---|---|
| Railway | Add PostgreSQL service, copy DATABASE_URL from variables |
| Supabase | Free tier at supabase.com, copy connection string from Settings > Database |
| Neon | Serverless Postgres at neon.tech, free tier available |
| Local Docker | docker run -e POSTGRES_PASSWORD=pass -p 5432:5432 postgres |
Set your DATABASE_URL then run:
# Generate Prisma client
npm run db:generate
# Create tables
npm run db:push
Running the Server
# Development
npm run dev
# Production
npm run build
npm start
Available Tools
Account & Wallet
| Tool | Description |
|---|---|
request_api_key |
Create account with new wallet (or recover existing) |
setup_wallet |
Deploy Safe wallet and set approvals |
get_wallet_status |
Check wallet deployment and approval status |
get_balances |
Get USDC/MATIC balances |
get_deposit_addresses |
Get addresses for depositing (EVM, Solana, BTC) |
export_private_key |
Export wallet private key |
import_private_key |
Import existing wallet |
Trading
| Tool | Description |
|---|---|
place_order |
Place buy/sell order |
cancel_order |
Cancel an open order |
cancel_all_orders |
Cancel all open orders |
get_orders |
Get order history |
execute_atomic_orders |
Execute multiple orders atomically |
get_orderbook |
Get market bids/asks |
get_price |
Get market midpoint price |
Positions
| Tool | Description |
|---|---|
get_positions |
Get your positions |
sync_positions |
Sync positions from Polymarket API |
get_claimable_winnings |
Check redeemable winnings |
claim_winnings |
Claim resolved market winnings |
get_onchain_shares |
Get all ERC-1155 holdings (including gifted) |
Transfers & Swaps
| Tool | Description |
|---|---|
transfer_usdc |
Send bridged USDC |
transfer_native_usdc |
Send Circle native USDC |
transfer_shares |
Send ERC-1155 shares |
send_matic |
Send MATIC from EOA |
swap_tokens |
Swap tokens via LI.FI |
get_swap_quote |
Get swap quote |
API Keys
| Tool | Description |
|---|---|
list_api_keys |
List your API keys |
create_additional_api_key |
Create new API key |
revoke_api_key |
Revoke an API key |
Note: Market search tools (
search_markets,get_market,get_active_markets) are available via the Discovery MCP.
API Format
The server exposes a JSON-RPC 2.0 endpoint at /mcp:
curl -X POST https://your-server.com/mcp \
-H "Content-Type: application/json" \
-H "x-api-key: YOUR_API_KEY" \
-d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "get_balances",
"arguments": {}
},
"id": 1
}'
MCP Client Configuration
Claude Desktop / Cursor
{
"mcpServers": {
"polymarket": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://your-server.com/mcp",
"--header",
"x-api-key: YOUR_API_KEY"
]
}
}
}
Security
Returning Users
For security, returning users (existing externalId) cannot get new API keys without authentication. Options:
- Use existing API key - If you have it saved
- HMAC Authentication (trusted bots only) - Sign with
BOT_SIGNING_SECRET:signature = HMAC-SHA256(externalId:timestamp, BOT_SIGNING_SECRET) - New Account - Use a different
externalId
Development
# Install dependencies
npm install
# Generate Prisma client
npm run db:generate
# Run migrations
npm run db:push
# Start development server
npm run dev
Resources
- GitHub: joinQuantish/polymarket-mcp
- Discovery MCP: joinQuantish/quantish-discovery
- Polymarket Docs: docs.polymarket.com
License
This project is licensed under the PolyForm Noncommercial License 1.0.0.
Free for personal use, research, and non-commercial purposes. Commercial use requires explicit permission from Quantish Inc. Contact hello@quantish.live for commercial licensing.
Built by Quantish Inc.
Recommended MCP Servers
How it compares
MCP market connector for agents, not a prediction-market web app or a general finance analytics skill.
FAQ
Who is Polymarket MCP Server for?
Developers who use Claude Code, Cursor, or similar MCP clients and want agent-accessible Polymarket workflows on hardware they control.
When should I use Polymarket MCP Server?
During the build phase when you are adding agent integrations and need standardized tools for Polymarket instead of ad-hoc HTTP scripts.
How do I add Polymarket MCP Server to my agent?
Clone or install from joinQuantish/polymarket-mcp, run the MCP server over stdio, and add the server entry to your client’s MCP configuration with any required Polymarket or wallet credentials.