agent-next/polymarket-paper-trader
Paper trading simulator for Polymarket — built for AI agents. MCP server, live order books, strategy backtesting. Install: npx clawhub install polymarket-paper-trader
What it solves
It provides a risk-free environment for AI agents to trade on Polymarket using "paper money." It solves the problem of testing trading strategies against real-time market data and order books without risking actual capital.
How it works
The project simulates a real exchange by using actual Polymarket order books, meaning trades walk the bid/ask levels and consume liquidity just as they would in a real trade. It implements the exact fee model and slippage tracking used by Polymarket and includes a limit order state machine for GTC (good-til-cancelled) and GTD (good-til-date) orders. It also provides a Model Context Protocol (MCP) server, allowing AI agents to interact with the trading environment through a standardized set of tools for searching markets, executing trades, and managing portfolios.
Who it’s for
Developers building autonomous AI trading agents and researchers testing prediction market strategies.
Highlights
- Real Exchange Simulation: Uses live order books and exact fee formulas to ensure paper P&L closely matches real-world results.
- MCP Integration: Full Model Context Protocol support allows agents (like Claude Code) to perform complex trading tasks via tools.
- Strategy Backtesting: Ability to replay strategies against historical price snapshots.
- Comprehensive Tooling: Includes a CLI for manual trading, multi-account support for A/B testing, and built-in strategy examples (Momentum, Mean Reversion, and Limit Grid).
Related
- Project
- Project
- Project
- Project
- Project