polymcp
Polymarket MCP Server - Model Context Protocol integration for Polymarket prediction markets
GitHub Stars
1
User Rating
Not Rated
Forks
0
Issues
0
Views
2
Favorites
0
README
Polymarket MCP Server
A Model Context Protocol (MCP) server that provides conversational access to Polymarket prediction markets.
Features
- Search Markets: Find prediction markets by keyword (e.g., "Solana", "nuclear", "election")
- Get Market Info: Get detailed information about specific markets including current odds
- Real-time Data: Fetches live market data from Polymarket's APIs
Setup
- Install dependencies:
npm install
- Build the project:
npm run build
- Run the server:
npm start
Development
For development with hot reload:
npm run dev
Usage Examples
Search for Solana-related markets:
"Show me Solana related markets on Polymarket"
Check specific market probabilities:
"What are the chances of a nuclear attack this year?"
Integration
To integrate this MCP server with your AI agent:
- Add to your MCP configuration:
{
"polymarket": {
"command": "node",
"args": ["/path/to/polymcp/dist/index.js"]
}
}
- The server exposes two tools:
search_markets
: Search for markets by keywordget_market_info
: Get details about a specific market
Architecture
- Built with TypeScript and MCP SDK
- Uses Polymarket's Gamma API for market data
- Implements real-time price fetching from CLOB API
- Supports ES modules for modern JavaScript
Future Enhancements
- Add historical price data
- Support for placing orders (requires authentication)
- WebSocket support for real-time updates
- Market filtering by category/tags
- Portfolio tracking capabilities
Author Information
112
Followers
93
Repositories
0
Gists
1
Total Contributions
Top Contributors
Threads