Polymarket MCP Server
Polymarket MCP 서버
⚠️ 공지: Quantish가 종료됩니다. Quantish 플랫폼(quantish.live)이 종료됩니다. 이 MCP 서버는 자체 호스팅되며 독립적으로 계속 작동하지만, Quantish 팀은 더 이상 이 프로젝트를 유지보수하거나 업데이트하지 않습니다. 예측 시장 분야에서 실시간 데이터 인프라가 필요하다면 polynode.dev를 확인하세요.
Polygon 네트워크를 통해 Polymarket 예측 시장에서 거래할 수 있는 자체 호스팅 MCP 서버입니다.
개요
이 패키지는 AI 에이전트가 Polygon 네트워크를 통해 Polymarket 예측 시장에서 거래할 수 있도록 하는 MCP(Model Context Protocol) 서버를 제공합니다.
Related MCP server: polymarket-mcp
기능
전체 Polymarket 거래 - 모든 Polymarket 시장에서 매수/매도
Polygon 지갑 관리 - Safe 통합을 통한 지갑 생성 및 관리
가스 없는 트랜잭션 - 대부분의 작업은 Polymarket의 릴레이어 사용(MATIC 불필요)
MCP 호환 - Claude, Cursor 및 모든 MCP 클라이언트와 작동
자체 호스팅 가능 - Railway, Fly.io 또는 모든 Node.js 호스트에서 실행 가능
빠른 시작
git clone https://github.com/joinQuantish/polymarket-mcp
cd polymarket-mcp
npm install환경 변수
변수 | 필수 | 설명 |
| 예 | PostgreSQL 연결 문자열 |
| 예 | 지갑 암호화를 위한 32바이트 16진수 문자열 |
| 예 | Polygon RPC 엔드포인트 |
| 아니요 | 신뢰할 수 있는 봇 HMAC 인증을 위한 비밀 키 |
| 아니요 | 서버 포트(기본값 3000) |
암호화 키 생성
# 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'))"데이터베이스 설정
모든 PostgreSQL 데이터베이스가 작동합니다. 옵션:
제공자 | 참고 |
Railway | PostgreSQL 서비스를 추가하고, 변수에서 |
Supabase | supabase.com에서 무료 티어, 설정 > 데이터베이스에서 연결 문자열 복사 |
Neon | neon.tech에서 서버리스 Postgres, 무료 티어 사용 가능 |
로컬 Docker |
|
DATABASE_URL을 설정한 후 다음을 실행하세요:
# Generate Prisma client
npm run db:generate
# Create tables
npm run db:push서버 실행
# Development
npm run dev
# Production
npm run build
npm start사용 가능한 도구
계정 및 지갑
도구 | 설명 |
| 새 지갑으로 계정 생성(또는 기존 계정 복구) |
| Safe 지갑 배포 및 승인 설정 |
| 지갑 배포 및 승인 상태 확인 |
| USDC/MATIC 잔액 조회 |
| 입금 주소 조회(EVM, Solana, BTC) |
| 지갑 개인 키 내보내기 |
| 기존 지갑 가져오기 |
거래
도구 | 설명 |
| 매수/매도 주문 |
| 열린 주문 취소 |
| 모든 열린 주문 취소 |
| 주문 내역 조회 |
| 여러 주문을 원자적으로 실행 |
| 시장 매수/매도 호가 조회 |
| 시장 중간 가격 조회 |
포지션
도구 | 설명 |
| 포지션 조회 |
| Polymarket API에서 포지션 동기화 |
| 수령 가능한 상금 확인 |
| 해결된 시장 상금 청구 |
| 모든 ERC-1155 보유 내역 조회(선물 포함) |
전송 및 스왑
도구 | 설명 |
| 브리지된 USDC 전송 |
| Circle 네이티브 USDC 전송 |
| ERC-1155 주식 전송 |
| EOA에서 MATIC 전송 |
| LI.FI를 통해 토큰 스왑 |
| 스왑 견적 조회 |
API 키
도구 | 설명 |
| API 키 목록 조회 |
| 새 API 키 생성 |
| API 키 폐기 |
참고: 시장 검색 도구(
search_markets,get_market,get_active_markets)는 Discovery MCP를 통해 사용할 수 있습니다.
API 형식
서버는 /mcp에서 JSON-RPC 2.0 엔드포인트를 노출합니다:
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 클라이언트 설정
Claude Desktop / Cursor
{
"mcpServers": {
"polymarket": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://your-server.com/mcp",
"--header",
"x-api-key: YOUR_API_KEY"
]
}
}
}보안
기존 사용자
보안을 위해 기존 사용자(기존 externalId)는 인증 없이 새 API 키를 받을 수 없습니다. 옵션:
기존 API 키 사용 - 저장해 둔 경우
HMAC 인증(신뢰할 수 있는 봇 전용) -
BOT_SIGNING_SECRET으로 서명:signature = HMAC-SHA256(externalId:timestamp, BOT_SIGNING_SECRET)새 계정 - 다른
externalId사용
개발
# Install dependencies
npm install
# Generate Prisma client
npm run db:generate
# Run migrations
npm run db:push
# Start development server
npm run dev리소스
GitHub: joinQuantish/polymarket-mcp
Discovery MCP: joinQuantish/quantish-discovery
Polymarket 문서: docs.polymarket.com
라이선스
이 프로젝트는 PolyForm 비상업적 라이선스 1.0.0에 따라 라이선스가 부여됩니다.
개인 사용, 연구 및 비상업적 목적에 무료입니다. 상업적 사용은 Quantish Inc.의 명시적 허가가 필요합니다. 상업적 라이선스는 hello@quantish.live로 문의하세요.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityCmaintenanceAn MCP server that gives AI agents direct access to Polymarket Crypto prediction markets, enriched with live spot prices. Discover markets, analyze order books, paper trade strategies, track activity, and execute live trades — all through natural language.1AGPL 3.0
- Alicense-qualityBmaintenanceAn MCP server and Python toolkit that provides AI agents with real-time tools for Polymarket prediction markets, including liquidity scanning, arbitrage detection, and slippage estimation. It also offers advanced wallet intelligence, portfolio risk calculation, and probabilistic reasoning to enhance market analysis and strategy.1MIT
- AlicenseCqualityBmaintenanceMCP server that provides a unified prediction market API for multiple venues like Polymarket and Kalshi, allowing AI agents to discover markets, fetch order books, and execute trades through a single interface.324388MIT
- Alicense-qualityCmaintenanceAgent-native, self-hosted MCP server for crypto trading and DeFi management. Enables agents to query balances, execute trades, and manage positions with a policy engine and secure key storage.7Apache 2.0
Related MCP Connectors
No-KYC managed MCP for AI agents: sandboxed TypeScript trading SDK, isolated sub-accounts, futures.
HiveCapital MCP Server — autonomous investment layer for AI agents
Polymarket + Hyperliquid + macro for AI agents. 38 tools, signal backtest, SSE streaming. Free tier.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/joinQuantish/polymarket-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server