Cursor Integration
Set up Quantish MCP servers in Cursor IDE for AI-powered prediction market trading.
Prerequisites
- ✓Cursor IDE - Download from cursor.sh
- ✓API Key - Generate from the Get Started page
- ✓Claude model - Cursor uses Claude for MCP tool execution
Step 1: Generate Your API Key
- Go to the Get API Key page
- Select your server type:
- Discovery - Search markets (no trading)
- Polymarket - Trade on Polymarket
- Kalshi - Trade on Kalshi via DFlow
- Enter your email and click "Generate API Key"
- Copy the generated API key and MCP config
Important: Save your API key immediately. It's only shown once and cannot be retrieved later.
Step 2: Configure MCP in Cursor
Find Your Config File
The MCP config file location depends on your OS:
macOS
~/.cursor/mcp.jsonWindows
%USERPROFILE%\.cursor\mcp.jsonLinux
~/.cursor/mcp.jsonAdd Your MCP Configuration
Create or edit the mcp.json file with the following content:
{
"mcpServers": {
"quantish_discovery": {
"url": "https://quantish.live/mcp",
"headers": {
"X-API-Key": "YOUR_DISCOVERY_API_KEY"
}
},
"polymarket": {
"url": "https://polymarket-mcp.quantish.live/mcp",
"headers": {
"X-API-Key": "YOUR_POLYMARKET_API_KEY"
}
},
"kalshi": {
"url": "https://kalshi-mcp.quantish.live/mcp",
"headers": {
"X-API-Key": "YOUR_KALSHI_API_KEY"
}
}
}
}Tip: You can add just the servers you need. Discovery is great for exploration, then add Polymarket or Kalshi when you're ready to trade.
Step 3: Restart Cursor
After saving your mcp.json file:
- Completely quit Cursor (not just close the window)
- Reopen Cursor
- Open the chat panel (Cmd/Ctrl + L)
Step 4: Verify Connection
Test that everything is working:
# Try these commands in Cursor chat:
"Search for Bitcoin prediction markets"
"List available tools from Polymarket MCP"
"Get Kalshi events in the Crypto category"
If Claude responds with market data or tool information, your MCP is configured correctly!
Troubleshooting
"MCP not found" or tools don't appear
- Make sure
mcp.jsonis in the correct location - Check for JSON syntax errors (missing commas, brackets)
- Restart Cursor completely (quit and reopen)
"Unauthorized" or "Invalid API Key"
- Verify your API key is correct (no extra spaces)
- Make sure the header is exactly
X-API-Key - Generate a new key if the old one isn't working
"Connection refused" or timeout
- Check your internet connection
- Verify the URL is correct (no typos)
- The server might be temporarily down - try again in a few minutes
Tools not executing
- Make sure you're using Claude model (not GPT)
- MCP tools only work in Agent mode, not regular chat
- Try being more explicit: "Use the search_markets tool to find..."
Example Trading Session
You:
"Search for upcoming election markets on Polymarket"
Claude:
I found 15 election markets. Here are the most active ones...
You:
"Show me the orderbook for the presidential election market"
Claude:
The current orderbook shows YES at $0.52 bid / $0.54 ask...
You:
"Buy $100 of YES shares at $0.52"
Claude:
Order placed! Bought 192 YES shares at $0.52. Order ID: abc123...