Skip to main content

MCP server

The Context MCP server gives AI agents direct access to prediction markets through the Model Context Protocol. Browse markets, read orderbooks, place trades, and manage portfolios — all through natural language.

17 tools

Market data, trading, portfolio, and account management

Zero-config read-only

Browse markets and get quotes without any API key

Any MCP client

Works with Claude, Cursor, VS Code, Windsurf, and more

Installation

claude mcp add context-markets -- npx @contextwtf/mcp
With environment variables:
CONTEXT_API_KEY=your-key CONTEXT_PRIVATE_KEY=0x... claude mcp add context-markets -- npx @contextwtf/mcp

API key setup

  • Read-only tools work without any API key — browse markets, get quotes, view orderbooks
  • Set CONTEXT_API_KEY for authenticated endpoints
  • Set CONTEXT_PRIVATE_KEY for trading (order placement, cancellation, deposits)
Start without any keys to explore markets. Add your API key when you’re ready to trade.

Network

Default network is Base Sepolia testnet. Set the CONTEXT_NETWORK environment variable to switch networks.

Tool catalog

Browse all 17 available tools organized by category