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
25 tools for browsing, trading, creating, and managing prediction markets from any MCP client
Claude Code plugin
One install: MCP server + 4 expert skills + reference files
Skills
4 model-agnostic instruction sets for trading, research, building, and creating markets
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 |
| Skills | Markdown instruction sets | Any LLM — 4 skills for trade, research, build, create | Depends on underlying tool |
| 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
~/.config/context/config.env as a shared config file, which all Context tools will read automatically.
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 |
| Market creator | MCP Server + Skills (Create) | Submit market drafts for oracle review and deployment |
Network
Context Markets runs on Base (chain ID 8453). API base URL:
https://api.context.markets/v2. For testnet access, see the Testnet guide.- API base URL:
https://api.context.markets/v2 - Chain: Base (chain ID 8453)