1. Conduid
  2. Finance
  3. Polymarket MCP Server
MCP server · Finance

Polymarket MCP Server

Polymarket MCP server — give Claude (and any MCP client) read-only access to Polymarket prediction markets: search markets, order books, price history, trader activity, and the reward-eligible markets ranked by pool-to-competition. No API keys required.

59Fair

Scored 23 hours ago · breakdown

About Polymarket MCP Server

Polymarket MCP Server is an MCP server in the Finance category: polymarket MCP server — give Claude (and any MCP client) read-only access to Polymarket prediction markets: search markets, order books, price history, trader activity, and the reward-eligible markets ranked by pool-to-competition. No API keys required.

The repository has 689 stars and 0 forks, with the last commit 3 months ago. Recent commit activity is the strongest signal that reported issues will get attention.

Install

Claude Code
claude mcp add polymarket-mcp-server -- npx -y polymarket-mcp-server
npx
npx -y polymarket-mcp-server
uvx
uvx polymarket-mcp-server
pip
pip install polymarket-mcp-server

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Tools (7)

export_private_keyExport wallet private key

Parameters not published.

get_balancesGet USDC/MATIC balances

Parameters not published.

get_deposit_addressesGet addresses for depositing (EVM, Solana, BTC)

Parameters not published.

get_wallet_statusCheck wallet deployment and approval status

Parameters not published.

import_private_keyImport existing wallet

Parameters not published.

request_api_keyCreate account with new wallet (or recover existing)

Parameters not published.

setup_walletDeploy Safe wallet and set approvals

Parameters not published.

Ask AI

✦

Ask AI about Polymarket MCP Server

Powered by Claude · Grounded in docs

I know everything about Polymarket MCP Server. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

  • ✓README presentThe repository ships documentation.

5 checks have not been run yet.

README

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:

  1. Use existing API key - If you have it saved
  2. HMAC Authentication (trusted bots only) - Sign with BOT_SIGNING_SECRET:
    signature = HMAC-SHA256(externalId:timestamp, BOT_SIGNING_SECRET)
    
  3. 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

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.

README copy captured when this server was indexed; it may lag the repository. The original is authoritative.

Questions

About Polymarket MCP Server

How do I install Polymarket MCP Server?

Run claude mcp add polymarket-mcp-server -- npx -y polymarket-mcp-server, then add the server to your MCP client's configuration.

Is Polymarket MCP Server safe to use with an AI agent?

Its trust score is 59 out of 100 (fair). It passes 1 of the 1 static security checks run so far. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Polymarket MCP Server still maintained?

Yes — the last commit was 3 months ago. The repository has 689 stars and 0 forks.