For agents
Context Markets is built for programmatic access. Structured JSON APIs, deterministic order flows, EIP-712 signed orders, and machine-readable market data make it a natural fit for AI agents.MCP server
17 tools for browsing, trading, and creating prediction markets from any MCP client
Claude Code plugin
One install: MCP server + expert skills + reference files
Skills
Model-agnostic instruction sets for trading, research, and building
TypeScript SDK
Type-safe methods for all Context APIs with automatic EIP-712 signing
React SDK
React hooks for market data, trading, and portfolio management
CLI
35+ commands with JSON output for scripting and automation
Quick start
Choose your tool
| Tool | Interface | Best for | Auth required |
|---|---|---|---|
| MCP Server | Natural language via AI assistants | Agents in Claude, Cursor, VS Code | Optional (read-only without) |
| Claude Code Plugin | Slash commands + MCP | Claude Code users who want everything | Optional |
| TypeScript SDK | Programmatic TypeScript | Custom agents, bots, backends | API key + signer for trading |
| React SDK | React hooks | Frontend apps, dashboards | API key + wagmi wallet |
| CLI | Shell commands | Scripting, pipelines, automation | API key + private key for trading |
Authentication
Two levels of access:- Read-only (no auth): Browse markets, get quotes, view orderbooks, price history
- Trading (API key + private key): Place orders, manage portfolio, deposit/withdraw
Recommended workflows
| Use case | Recommended tools | Description |
|---|---|---|
| Trading bot | SDK + Skills (Trade) | Autonomous order management with EIP-712 signing |
| Market scanner | MCP Server or CLI | Browse and analyze markets without trading |
| Portfolio manager | SDK + CLI | Monitor positions, rebalance, claim winnings |
| Market maker | SDK + Skills (Trade) | Quote both sides, manage inventory |
| Frontend app | React SDK + Skills (Build) | Build trading UIs with live data |
| Research agent | MCP Server + Skills (Research) | Analyze oracle data, find mispricings |
Network
Context Markets is currently on Base Sepolia testnet. All API endpoints, contract addresses, and examples use testnet. Mainnet coming soon.
- API base URL:
https://api-testnet.context.markets/v2 - Chain: Base Sepolia (chain ID 84532)