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 Code
Claude Desktop
Cursor
VS Code
Windsurf
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
Add to claude_desktop_config.json: {
"mcpServers" : {
"context-markets" : {
"command" : "npx" ,
"args" : [ "@contextwtf/mcp" ],
"env" : {
"CONTEXT_API_KEY" : "your-api-key" ,
"CONTEXT_PRIVATE_KEY" : "0x..."
}
}
}
}
Add to MCP settings: {
"mcpServers" : {
"context-markets" : {
"command" : "npx" ,
"args" : [ "@contextwtf/mcp" ],
"env" : {
"CONTEXT_API_KEY" : "your-api-key" ,
"CONTEXT_PRIVATE_KEY" : "0x..."
}
}
}
}
Add to .vscode/mcp.json: {
"servers" : {
"context-markets" : {
"command" : "npx" ,
"args" : [ "@contextwtf/mcp" ],
"env" : {
"CONTEXT_API_KEY" : "your-api-key" ,
"CONTEXT_PRIVATE_KEY" : "0x..."
}
}
}
}
Add to MCP configuration: {
"mcpServers" : {
"context-markets" : {
"command" : "npx" ,
"args" : [ "@contextwtf/mcp" ],
"env" : {
"CONTEXT_API_KEY" : "your-api-key" ,
"CONTEXT_PRIVATE_KEY" : "0x..."
}
}
}
}
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