Skip to main content

Prerequisites

  • Node.js 18+ installed (node --version)
  • An EventGraph API key (get one free)

Step 1 — Create the MCP server

Create a new folder and save this file as server.js:
Create server.js:
Add "type": "module" to your package.json:

Step 2 — Test it locally

The server starts and waits for MCP client connections. Now connect a client:

Claude Desktop

Add to Claude Desktop config

Cursor / Windsurf

Add to your IDE’s MCP config

ChatGPT

Create a Custom GPT with Actions

Verify it’s working

Once connected to Claude or Cursor, try asking:
“What are the top active prediction markets right now?”
“Find me any arbitrage opportunities across Polymarket and Kalshi.”
“What markets exist around the 2026 US midterm elections?”
The AI will call your MCP server and return live data.
API key tier matters. The find_arbitrage, compare_markets, and get_market_history tools require a Pro key. Free tier keys will return a 403 on those tools. Upgrade to Pro →