# demwick/polymarket-agent-mcp [Health: Active]

**Category:** 💰 Finance & Fintech  
**Repository:** https://github.com/demwick/polymarket-agent-mcp  
**GitHub Stars:** 20  
**npm Downloads (last month):** 532  
**Views:** 3  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/demwick-polymarket-agent-mcp

## Description
49-tool Polymarket prediction market suite for AI agents. Direct trading, smart money flow detection, copy trading with auto-monitor, backtesting, arbitrage scanning, portfolio optimization, and real-time WebSocket price streaming. Preview mode for simulation, live mode for real orders.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "polymarket-agent-mcp": {
    "command": "npx",
    "args": ["-y","polymarket-agent-mcp"]
  }
}
```

## Documentation

## What demwick/polymarket-agent-mcp does

demwick/polymarket-agent-mcp MCP server exposes Polymarket market data, analysis, trading, and portfolio operations to MCP-compatible AI clients. Its 48 tools cover discovery, market and trader analysis, order management, copy-trading workflows, backtesting, portfolio optimization, risk checks, watchlists, and alerts.

The server can search markets by topic, find trending or featured markets, inspect related events, and identify smart-money activity. Analysis tools report prices, spreads, historical movement, market quality, holders, trader performance, and comparisons across markets. Trading tools support purchases, sales, batches, discounted limit bids, order status, cancellation, and safety settings.

## How it works

The client communicates with the server through MCP over stdio by default. The server validates tool inputs with Zod and connects its services to Polymarket data sources, including the Gamma API and CLOB API. Internal services handle activities such as scoring, backtesting, smart-money flow detection, trade execution, and copy-trader monitoring.

Each local instance maintains its own SQLite database, including the watchlist, budget, trade history, and monitor state. The project is designed for one tenant per instance rather than shared multi-user operation. Price-watch functionality can use live WebSocket subscriptions, while other tools retrieve market and account information through the server's Polymarket services.

## Setup and configuration

Install the package globally with npm:

```bash
npm install -g polymarket-agent-mcp
```

The default launch command is:

```bash
npx polymarket-agent-mcp
```

A Claude Code configuration can register the server with `npx` and the `polymarket-agent-mcp` package name. Docker deployment is also supported through `docker compose up`.

The server supports HTTP mode with the `--http` flag or a `PORT` environment variable. The documented default port is 3000 when `PORT` is used without a value. HTTP deployments should use the server's bearer-token setting and remain behind a firewall, VPN, or authentication proxy. The README warns against exposing an HTTP instance publicly, especially when live trading is enabled, because connected callers share state and could access the configured wallet.

## Tools and capabilities

The demwick/polymarket-agent-mcp MCP server groups its tools into these areas:

- **Discovery:** market and trader search, trending and featured markets, events, related markets, WTA markets, and smart-money flow.
- **Analysis:** market recommendations, trader profiles and conviction scores, price history, market quality, holders, live prices, and comparisons.
- **Trading:** buy, sell, batch orders, limit bids, order listing, cancellation, status checks, and preview-to-live configuration.
- **Copy trading:** trader watchlists, automatic monitoring, rebalancing, and historical backtests.
- **Portfolio and risk:** balances, positions, P&L, risk scoring, portfolio optimization, stop-loss and take-profit rules, alerts, and arbitrage scans.
- **Utilities:** configuration, dashboards, trade history, watched wallets, and agent-cycle logging.

Preview mode is available for simulated activity. Live mode is intended for real orders and can be enabled through the configuration tools.

## Limitations and notes

The project is intended for single-tenant use. An HTTP instance does not isolate users, positions, budgets, watchlists, or background monitoring loops. A shared public deployment therefore does not provide separate workspaces for each client.

Live trading carries wallet-access risk. Keep remote deployments private, configure bearer-token protection, and apply the available order-size, exposure, and spread safety limits. The README identifies Node.js 18 or newer as the runtime requirement and lists the project license as MIT.

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

