> ## Documentation Index
> Fetch the complete documentation index at: https://docs.eventgraph.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# MCP & AI Agents

> Connect Claude, Cursor, ChatGPT, and any AI agent to live prediction market data

## What is MCP?

**Model Context Protocol (MCP)** is an open standard that lets AI assistants — like Claude, Cursor, and Windsurf — connect to external data sources and tools. Instead of copying data into a prompt, the AI calls your tools directly and gets live results.

With the **EventGraph MCP server**, any MCP-compatible AI can:

* Search live prediction markets across Polymarket, Kalshi, Limitless, and OpinionTrade
* Fetch market details, price history, and statistics
* Scan for cross-platform arbitrage opportunities
* Compare the same event across multiple platforms

<CardGroup cols={3}>
  <Card title="Claude Desktop" icon="message" href="/mcp/claude">
    Connect EventGraph to Claude for live market analysis in conversation
  </Card>

  <Card title="Cursor / Windsurf" icon="code" href="/mcp/cursor">
    Use prediction market data inside your AI coding environment
  </Card>

  <Card title="ChatGPT Actions" icon="robot" href="/mcp/chatgpt">
    Build a Custom GPT that queries EventGraph data via Actions
  </Card>
</CardGroup>

***

## How it works

```
Your AI (Claude, Cursor...)
        │
        │  calls tool: search_markets("US election 2026")
        ▼
  EventGraph MCP Server
        │
        │  GET /api/v1/markets?query=US+election+2026
        │  X-API-Key: eg_live_your_key
        ▼
  EventGraph API  →  returns live market data
        │
        ▼
  AI receives structured data and responds to you
```

No prompt engineering. No stale data. The AI fetches real-time results on demand.

***

## Available tools

| Tool                 | Description                                  | Tier |
| -------------------- | -------------------------------------------- | ---- |
| `search_markets`     | Search & filter markets across all platforms | Free |
| `get_market`         | Full details on a specific market            | Free |
| `search_events`      | Search events (groups of related markets)    | Free |
| `get_api_status`     | API health and data freshness                | Free |
| `find_arbitrage`     | Cross-platform spread opportunities          | Pro  |
| `compare_markets`    | Side-by-side platform comparison             | Pro  |
| `get_market_history` | Historical price data for a market           | Pro  |

***

## What you need

1. **An EventGraph API key** — [get one free in 30 seconds](/authentication)
2. **An MCP-compatible client** — Claude Desktop, Cursor, Windsurf, Continue, etc.
3. **Node.js 18+** — to run the MCP server locally

<Card title="Get started in 5 minutes →" icon="rocket" href="/mcp/quickstart">
  Set up the EventGraph MCP server and make your first AI-powered market query
</Card>
