# polymarket-toolkit [Health: Active]

**Category:** 💰 Finance & Fintech  
**Repository:** https://github.com/runesleo/polymarket-toolkit  
**GitHub Stars:** 203  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/polymarket-toolkit

## Description
Read-only Polymarket data tools for AI agents: profiles, PnL, market scans. No keys, no orders.

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/runesleo/polymarket-toolkit), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Install:

```sh
git clone https://github.com/runesleo/polymarket-toolkit.git && cd polymarket-toolkit
```

## Documentation

## What polymarket-toolkit MCP server does

polymarket-toolkit provides read-only research capabilities for Polymarket data. Address-focused tools can inspect leaderboard PnL snapshots, open-position samples, activity, cash-outs, fees, Brier scores, execution markouts, and maker/taker behavior. Market-oriented commands list active markets, rank markets by recent volume and spread, and expose crypto up/down event fields and resolution sources.

The toolkit is intended for analysis rather than trading. It does not include private keys, signing, custody, or order placement. It also includes diagnostics for V2 CTF activity, leaderboard changes, redeemable positions, and official API pacing.

## How it works

The CLI is invoked as `pm` from the repository root. Examples include `pm profile <address>`, `pm markets --limit 5 --active`, and `pm activity <address> --type TRADE`. JSON output is available for commands such as `profile`, making results easier to pass into other workflows.

The repository includes TypeScript examples and zero-dependency helpers in `src/index.ts`. AI-oriented skills can be copied into the skills directory used by an agent client. The `polymarket-pnl` skill reconstructs PnL from cash flows and includes a separate Python computation script; it requires `httpx`.

## Setup and configuration

Node.js 22 or newer is required for the CLI, which uses Node’s experimental type-stripping support. A typical local setup is to clone the repository, enter its directory, and run `./bin/pm`. There is no repository install step for this approach. The CLI can also be run through `npm run pm`, or exposed globally with the optional `npm link` command.

The tools use Polymarket’s public APIs and do not require API keys or signing credentials. Skills are installed by copying the selected skill directory into the agent client’s configured skills location. Claude Code supports the listed plugin installation command, while Codex supports adding the marketplace and plugin shown by the project.

## Tools and capabilities

- Inspect an address with profile data, positions, PnL context, and Brier hints.
- Reconstruct more precise PnL through cash-flow analysis.
- Separate on-chain pUSD withdrawals from trade settlement with `cashflow`.
- Review activity pages, leaderboard snapshots, redemptions, and API pacing.
- Scan markets by recent volume and spread, including active-market filtering.
- Measure markout against a windowed VWAP and a market baseline.
- Estimate execution style from maker/taker splits and fee evidence.
- Calculate lifetime taker fees and convert pre-fee PnL toward net PnL.

## Limitations and notes

Profile and leaderboard PnL are snapshots and are not equivalent to audit-grade PnL. The activity command warns about an approximately 4,000-row cap, and Brier calculations operate on sampled settled positions. Fee interpretation also needs care: a positive fee identifies taker activity, while a zero fee can represent either maker activity or a fee-exempt category.

Markout results should be read with coverage. Short-dated markets may leave few fills with a usable future reference, so the average can describe only a surviving subset. The toolkit is read-only and does not provide runnable merge, split, or redeem modules, even though it includes redeem-watchdog and V2 diagnostic commands.

_Full upstream README: https://allmcps.com/mcp/polymarket-toolkit/readme_

