Polymarket MCP Server
Servidor MCP de Polymarket
⚠️ Aviso: Quantish está cerrando. La plataforma Quantish (quantish.live) está cerrando. Este servidor MCP se auto-aloja y seguirá funcionando de forma independiente, pero el equipo de Quantish ya no mantendrá ni actualizará este proyecto. Si estás construyendo en el espacio de los mercados de predicción y necesitas infraestructura de datos en tiempo real, echa un vistazo a polynode.dev.
Servidor MCP auto-alojado para operar en los mercados de predicción de Polymarket.
Resumen
Este paquete proporciona un servidor MCP (Protocolo de Contexto del Modelo) que permite a los agentes de IA operar en los mercados de predicción de Polymarket a través de la red Polygon.
Related MCP server: polymarket-mcp
Características
Operativa Completa en Polymarket - Comprar/vender en cualquier mercado de Polymarket
Gestión de Carteras en Polygon - Generar y gestionar carteras con integración de Safe
Transacciones Sin Gas - La mayoría de las operaciones usan el relé de Polymarket (sin necesidad de MATIC)
Compatible con MCP - Funciona con Claude, Cursor y cualquier cliente MCP
Auto-Alojable - Ejecutar en Railway, Fly.io o cualquier alojamiento Node.js
Inicio Rápido
git clone https://github.com/joinQuantish/polymarket-mcp
cd polymarket-mcp
npm installVariables de Entorno
Variable | Requerida | Descripción |
| Sí | Cadena de conexión de PostgreSQL |
| Sí | Cadena hexadecimal de 32 bytes para cifrado de cartera |
| Sí | Punto final RPC de Polygon |
| No | Secreto para autenticación HMAC de bot confiable |
| No | Puerto del servidor (por defecto 3000) |
Generar Claves de Cifrado
# 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'))"Configuración de la Base de Datos
Cualquier base de datos PostgreSQL funciona. Opciones:
Proveedor | Notas |
Railway | Añadir servicio PostgreSQL, copiar |
Supabase | Nivel gratuito en supabase.com, copiar cadena de conexión desde Ajustes > Base de Datos |
Neon | Postgres sin servidor en neon.tech, nivel gratuito disponible |
Docker Local |
|
Establece tu DATABASE_URL y luego ejecuta:
# Generate Prisma client
npm run db:generate
# Create tables
npm run db:pushEjecutar el Servidor
# Development
npm run dev
# Production
npm run build
npm startHerramientas Disponibles
Cuenta y Cartera
Herramienta | Descripción |
| Crear cuenta con nueva cartera (o recuperar existente) |
| Desplegar cartera Safe y establecer aprobaciones |
| Verificar estado de despliegue y aprobación de cartera |
| Obtener saldos de USDC/MATIC |
| Obtener direcciones para depósitos (EVM, Solana, BTC) |
| Exportar clave privada de cartera |
| Importar cartera existente |
Operativa
Herramienta | Descripción |
| Colocar orden de compra/venta |
| Cancelar una orden abierta |
| Cancelar todas las órdenes abiertas |
| Obtener historial de órdenes |
| Ejecutar múltiples órdenes atómicamente |
| Obtener ofertas/demanda del mercado |
| Obtener precio medio del mercado |
Posiciones
Herramienta | Descripción |
| Obtener tus posiciones |
| Sincronizar posiciones desde la API de Polymarket |
| Verificar ganancias canjeables |
| Reclamar ganancias de mercados resueltos |
| Obtener todas las tenencias ERC-1155 (incluidas las regaladas) |
Transferencias e Intercambios
Herramienta | Descripción |
| Enviar USDC puenteado |
| Enviar USDC nativo de Circle |
| Enviar acciones ERC-1155 |
| Enviar MATIC desde EOA |
| Intercambiar tokens vía LI.FI |
| Obtener cotización de intercambio |
Claves API
Herramienta | Descripción |
| Listar tus claves API |
| Crear nueva clave API |
| Revocar una clave API |
Nota: Las herramientas de búsqueda de mercados (
search_markets,get_market,get_active_markets) están disponibles a través de Discovery MCP.
Formato de la API
El servidor expone un punto final JSON-RPC 2.0 en /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
}'Configuración del Cliente MCP
Claude Desktop / Cursor
{
"mcpServers": {
"polymarket": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://your-server.com/mcp",
"--header",
"x-api-key: YOUR_API_KEY"
]
}
}
}Seguridad
Usuarios Recurrentes
Por seguridad, los usuarios recurrentes (con externalId existente) no pueden obtener nuevas claves API sin autenticación. Opciones:
Usar clave API existente - Si la tienes guardada
Autenticación HMAC (solo bots confiables) - Firmar con
BOT_SIGNING_SECRET:signature = HMAC-SHA256(externalId:timestamp, BOT_SIGNING_SECRET)Nueva Cuenta - Usar un
externalIddiferente
Desarrollo
# Install dependencies
npm install
# Generate Prisma client
npm run db:generate
# Run migrations
npm run db:push
# Start development server
npm run devRecursos
GitHub: joinQuantish/polymarket-mcp
Discovery MCP: joinQuantish/quantish-discovery
Documentación de Polymarket: docs.polymarket.com
Licencia
Este proyecto está licenciado bajo la Licencia No Comercial PolyForm 1.0.0.
Gratuito para uso personal, investigación y fines no comerciales. El uso comercial requiere permiso explícito de Quantish Inc. Contacta a hello@quantish.live para licencias comerciales.
Construido por Quantish Inc.
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