# Polymarket Agent

> Polymarket Agent is an open-source MCP server. Search Polymarket, read order books and prices, and place or cancel CLOB v2 orders from your agent. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Repository:** https://github.com/mattbusel/polymarket-agent
- **MCP Registry name:** com.tensorust/polymarket-agent
- **Listing updated:** 2026-11-16

## About

Search Polymarket, read order books and prices, and place or cancel CLOB v2 orders from your agent

## Install

### Claude Code (Terminal)

```sh
claude mcp add polymarket-agent --env POLYMARKET_PRIVATE_KEY='<POLYMARKET_PRIVATE_KEY>' -- npx -y https://github.com/Mattbusel/polymarket-agent/releases/download/v0.1.1/polymarket-agent-mcp-0.1.1.mcpb
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "polymarket-agent": {
      "command": "npx",
      "args": [
        "-y",
        "https://github.com/Mattbusel/polymarket-agent/releases/download/v0.1.1/polymarket-agent-mcp-0.1.1.mcpb"
      ],
      "env": {
        "POLYMARKET_PRIVATE_KEY": "<POLYMARKET_PRIVATE_KEY>"
      }
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "polymarket-agent": {
      "command": "npx",
      "args": [
        "-y",
        "https://github.com/Mattbusel/polymarket-agent/releases/download/v0.1.1/polymarket-agent-mcp-0.1.1.mcpb"
      ],
      "env": {
        "POLYMARKET_PRIVATE_KEY": "<POLYMARKET_PRIVATE_KEY>"
      }
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "polymarket-agent": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "https://github.com/Mattbusel/polymarket-agent/releases/download/v0.1.1/polymarket-agent-mcp-0.1.1.mcpb"
      ],
      "env": {
        "POLYMARKET_PRIVATE_KEY": "<POLYMARKET_PRIVATE_KEY>"
      }
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "polymarket-agent": {
      "command": "npx",
      "args": [
        "-y",
        "https://github.com/Mattbusel/polymarket-agent/releases/download/v0.1.1/polymarket-agent-mcp-0.1.1.mcpb"
      ],
      "env": {
        "POLYMARKET_PRIVATE_KEY": "<POLYMARKET_PRIVATE_KEY>"
      }
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "polymarket-agent": {
      "command": "npx",
      "args": [
        "-y",
        "https://github.com/Mattbusel/polymarket-agent/releases/download/v0.1.1/polymarket-agent-mcp-0.1.1.mcpb"
      ],
      "env": {
        "POLYMARKET_PRIVATE_KEY": "<POLYMARKET_PRIVATE_KEY>"
      }
    }
  }
}
```

## FAQ

### Is Polymarket Agent free?

Yes. Polymarket Agent is open source, so you can use and self-host it for free.

### How do I add Polymarket Agent to Claude Code?

Run this command in your terminal: claude mcp add polymarket-agent --env POLYMARKET_PRIVATE_KEY='<POLYMARKET_PRIVATE_KEY>' -- npx -y https://github.com/Mattbusel/polymarket-agent/releases/download/v0.1.1/polymarket-agent-mcp-0.1.1.mcpb

---
Source: https://ai-powered.com/mcp/polymarket-agent
