Finance Toolkit
500+ transparent financial methods calculated from raw statements, not third-party endpoints.
คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)
Polymarket paper trading for AI agents: $10k paper money, real order books, official fees.
สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน
ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry
เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง
ต้องเตรียมก่อน
คุณใช้แอปไหน
เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”
เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json
{
"mcpServers": {
"polymarket-paper-trader": {
"command": "uvx",
"args": [
"polymarket-paper-trader"
]
}
}
}พิมพ์คำสั่งนี้ใน Terminal
claude mcp add polymarket-paper-trader -- uvx polymarket-paper-traderวางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json
{
"mcpServers": {
"polymarket-paper-trader": {
"command": "uvx",
"args": [
"polymarket-paper-trader"
]
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
วางในไฟล์ .vscode/mcp.json ของโปรเจกต์
{
"servers": {
"polymarket-paper-trader": {
"type": "stdio",
"command": "uvx",
"args": [
"polymarket-paper-trader"
]
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น
ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี
ค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README
รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง
เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 7 พ.ย. 2569
ชื่อใน registry ยืนยันด้วยบัญชี GitHub agent-next ซึ่งเป็นเจ้าของ repo
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต
ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน
รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต
เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo
จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น
registry ไม่ได้ระบุว่าต้องใช้กุญแจ แต่บางตัวจะขอให้ล็อกอินตอนใช้ครั้งแรก
รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)
repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (0.4.13) เข้า registry 22 วันที่ผ่านมา
โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Python (uv) ในเครื่องด้วย
ในหมวดเดียวกันมี Finance Toolkit, SolidInvoice, Korea Tax Calculator
server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว
อ่านการ์ด:★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi
500+ transparent financial methods calculated from raw statements, not third-party endpoints.
Create and send invoices and quotes, manage clients, and track payments in SolidInvoice.
Korean tax calculation and tax-audit judgment MCP: 96 tools with statutory citations.
ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ
A zero-risk gym for AI agents on real prediction markets — real order books, official fees, verified fill fidelity. Practice, evaluate, and benchmark decision intelligence.
Agents make probability judgments all day. Polymarket is the world's largest prediction market, and its order books are the honest scoreboard: real money, real prices, real outcomes. But you cannot hand an agent a wallet to learn with. So this project gives every agent what SWE-bench gave coders — a faithful environment where judgment has consequences and gets scored:
polymarket-benchmark harness in this repository (installed separately) scores any model on prediction-market decision sets (Brier score, calibration, alpha)Part of agent-next — building an agentic world.
pip install polymarket-paper-trader
pm-trader init --balance 10000 # $10k paper money pm-trader markets search "bitcoin" # find markets pm-trader buy will-bitcoin-hit-100k yes 500 # buy $500 of YES pm-trader stats --card # shareable stats card
Prefer not to install? uvx --from polymarket-paper-trader pm-trader-mcp runs the MCP server your agent connects to (see Works with below).
That's it. Your AI agent is now trading Polymarket with zero risk.
# via pip (CLI + MCP server)
pip install polymarket-paper-trader
uvx --from polymarket-paper-trader pm-trader-mcp
uv pip install -e ".[dev]"
Requires Python 3.10+.
| Runtime | One-line install |
|---|---|
| Claude Code | /plugin marketplace add agent-next/polymarket-paper-trader |
| Codex CLI | codex mcp add polymarket-paper-trader -- uvx --from polymarket-paper-trader pm-trader-mcp |
| Cursor | |
| Gemini CLI | gemini extensions install https://github.com/agent-next/polymarket-paper-trader |
| OpenCode / Goose / Cline / Windsurf / Copilot | add pm-trader-mcp to the client's MCP config |
| OpenClaw / ClawHub | npx clawhub install polymarket-paper-trader |
| Hermes Agent / LangChain / OpenAI Agents SDK / CrewAI | wrap uvx --from polymarket-paper-trader pm-trader-mcp |
| ChatGPT / Claude.ai (remote MCP) | add the remote /mcp URL in the host's remote-MCP settings |
Full copy-paste config for every runtime above (plus Grok/xAI remote MCP): docs/integrations.md. Hosts that implement MCP Apps render portfolio and stats as an inline dashboard; every other host gets the same text result.
Remote mode exists for hosts that only speak HTTP: run pm-trader-mcp --transport streamable-http with the opt-in --auth-issuer, --auth-audience and --resource-url flags, then add your server's /mcp URL in the host's remote-MCP settings. It is off by default, and it needs an OAuth/OIDC issuer you operate — pm-trader verifies bearer tokens against it and gives every verified subject its own paper accounts. There is no hosted endpoint to add: you run the server yourself. Setup, threat model and the environment equivalents: docs/remote-mcp.md.
# Initialize with $10k paper balance
pm-trader init --balance 10000
pm-trader markets list --sort liquidity pm-trader markets search "bitcoin"
pm-trader buy will-bitcoin-hit-100k yes 100 # buy $100 of YES pm-trader sell will-bitcoin-hit-100k yes 50 # sell 50 shares
pm-trader portfolio pm-trader stats
fee = C × rate × p × (1-p), rounded to 5 decimals, makers exempt (exact spec in the CHANGELOG) — charged per filled level from each market's published fee schedule, not an approximationresolve (or resolve --all) when a market closes and winners pay out like the real thingkalshi: slug (pm-trader buy kalshi:KXNBAGAME-26OCT16DENLAL-LAL yes 25); find them with kalshi markets. Fees follow each series' published curve (docs/kalshi.md)| Command | Description | ||
|---|---|---|---|
init [--balance N] | Create paper trading account | ||
balance | Show cash, reserved/available cash, positions value, total P&L | ||
reset --confirm | Wipe all data | ||
| `markets list [--limit N] [--sort volume\ | liquidity]` | Browse active markets | |
markets search QUERY | Full-text market search | ||
markets get SLUG | Market details | ||
markets tags | List all market categories/tags | ||
markets event SLUG | Event details — a group of related markets | ||
price SLUG | YES/NO midpoints and spread | ||
book SLUG [--depth N] | Order book snapshot | ||
| `watch SLUG [SLUG...] [--outcome yes\ | no]` | Monitor live prices | |
| `buy SLUG OUTCOME AMOUNT [--type fok\ | fak]` | Buy at market price | |
| `sell SLUG OUTCOME SHARES [--type fok\ | fak]` | Sell at market price | |
portfolio | Open positions with live prices | ||
history [--limit N] | Trade history | ||
| `kalshi markets [--limit N] [--status open\ | closed\ | settled] [--series T] [--event T]` | Kalshi markets (read-only) |
kalshi market TICKER | One Kalshi market (read-only) | ||
kalshi book TICKER [--depth N] | Kalshi YES order book (read-only) | ||
orders place SLUG OUTCOME SIDE AMOUNT PRICE | Limit order (GTC/GTD) | ||
orders list | Open limit orders (pending and partially filled) | ||
orders cancel ID | Cancel a limit order | ||
orders cancel-all | Cancel all pending limit orders at once | ||
orders check | Fill limit orders if price crosses | ||
| `stats [--card\ | --tweet\ | --plain]` | Win rate, ROI, profit, max drawdown |
resolve [SLUG] [--all] | Resolve a closed market, or all closed markets (winners get $1/share) | ||
leaderboard | Local account rankings | ||
pk ACCOUNT_A ACCOUNT_B | Battle: who's the better trader? | ||
| `export trades [--format csv\ | json]` | Export trade history | |
| `export positions [--format csv\ | json]` | Export positions | |
strategy run MODULE.FUNC | Run a trading strategy | ||
strategy compare ACCT1 ACCT2 | Compare account performance | ||
strategy pk STRAT_A STRAT_B | Battle: who's the better trader? | ||
benchmark run MODULE.FUNC | Alias of strategy run | ||
benchmark compare ACCT1 ACCT2 | Alias of strategy compare | ||
benchmark pk STRAT_A STRAT_B | Alias of strategy pk | ||
accounts list | List named accounts | ||
accounts create NAME | Create account for A/B testing | ||
accounts delete NAME --confirm | Delete a named account and all its data | ||
mcp | Start MCP server (stdio transport) |
Global flags: --data-dir PATH, --account NAME (or env vars PM_TRADER_DATA_DIR, PM_TRADER_ACCOUNT).
Your agent gets the following tools via the Model Context Protocol. The server also carries the full trading playbook with it — as MCP server instructions, as a trading_playbook prompt, and as a skill://trading-playbook resource — so MCP-only clients (Cursor, Claude.ai connectors, Grok API remote MCP, ChatGPT apps) get the same guidance skill-aware agents get from skill/polymarket-paper-trader/SKILL.md.
pm-trader-mcp # starts on stdio
uvx --from polymarket-paper-trader pm-trader-mcp
Add to your Claude Code config:
{
"mcpServers": { "polymarket-paper-trader": { "command": "pm-trader-mcp" } } }
For MCP clients that only speak HTTP, run the server with --transport streamable-http:
pm-trader-mcp --transport streamable-http --host 127.0.0.1 --port 8000
The MCP endpoint is then http:// : /mcp. There is no isolation between callers — everyone who reaches the server shares all of its paper accounts; it is self-host-only, not a public multi-user service. There is no authentication on this transport; anyone who can reach the port can call every exposed tool. backtest and pk_battle (local file reads + local strategy-module execution) are stdio-only and are not registered when serving over streamable-http.
docker build -t pm-trader-mcp .
docker run -p 127.0.0.1:8000:8000 -v pm-trader-data:/root/.pm-trader pm-trader-mcp
Publish the port to 127.0.0.1 only (as above) unless you put a real authenticating proxy in front of it — the container has no auth of its own.
| Tool | What it does |
|---|---|
init_account | Create paper account with starting balance |
get_balance | Cash, reserved/available cash, positions value, total P&L |
reset_account | Wipe all data and start fresh |
search_markets | Find markets by keyword |
list_markets | Browse markets sorted by volume/liquidity |
get_tags | All market categories/tags for filtering |
get_markets_by_tag | Markets in a specific category/tag |
get_event | Event details — a group of related markets |
| get_market | Market detail
ตัดมาแค่ช่วงต้น อ่านต่อใน repo