# PMWallets MCP server

> Lets an AI client track smart-money traders on Polymarket by accessing leaderboards and real-time trade fills.

- Repository: https://github.com/polymarketwallets/pmwallets-node
- Page: https://hostedmcp.org/servers/polymarketwallets/pmwallets-node
- Transport: stdio, remote
- Stars: 0
- License: MIT
- Latest version: 0.6.6

## Install

### Claude Code

```sh
claude mcp add --env 'PMW_API_KEY=<YOUR_PMW_API_KEY>' pmwallets-node -- npx -y pmwallets
```

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

```json
{
  "mcpServers": {
    "pmwallets-node": {
      "command": "npx",
      "args": [
        "-y",
        "pmwallets"
      ],
      "env": {
        "PMW_API_KEY": "<YOUR_PMW_API_KEY>"
      }
    }
  }
}
```

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

```json
{
  "servers": {
    "pmwallets-node": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "pmwallets"
      ],
      "env": {
        "PMW_API_KEY": "<YOUR_PMW_API_KEY>"
      }
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"pmwallets-node","type":"stdio","command":"npx","args":["-y","pmwallets"],"env":{"PMW_API_KEY":"<YOUR_PMW_API_KEY>"}}'
```

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "pmwallets-node": {
      "command": "npx",
      "args": [
        "-y",
        "pmwallets"
      ],
      "env": {
        "PMW_API_KEY": "<YOUR_PMW_API_KEY>"
      }
    }
  }
}
```

### Codex

```sh
codex mcp add pmwallets-node --env 'PMW_API_KEY=<YOUR_PMW_API_KEY>' --env 'PMW_API_KEY=<YOUR_PMW_API_KEY>' -- npx -y pmwallets
```

### Codex config.toml (`~/.codex/config.toml`)

```toml
[mcp_servers.pmwallets-node]
command = "npx"
args = ["-y", "pmwallets"]

[mcp_servers.pmwallets-node.env]
PMW_API_KEY = "<YOUR_PMW_API_KEY>"
```

### Gemini CLI

```sh
gemini mcp add -s user -e 'PMW_API_KEY=<YOUR_PMW_API_KEY>' -e 'PMW_API_KEY=<YOUR_PMW_API_KEY>' pmwallets-node npx -- -y pmwallets
```

### Gemini settings.json (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "pmwallets-node": {
      "command": "npx",
      "args": [
        "-y",
        "pmwallets"
      ],
      "env": {
        "PMW_API_KEY": "<YOUR_PMW_API_KEY>"
      }
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `PMW_API_KEY` | yes | yes | PMWallets API key (pmw_...), from https://pmwallets.com/keys |
| `PMW_API_KEY` | yes | yes | PMWallets API key (pmw_...), from https://pmwallets.com/keys |

## FAQ

### Can I get real-time trade updates?

Yes, the FillStream provides a WebSocket connection that delivers real-time fills and includes a replay mechanism to ensure no data is missed during disconnects.

### How do I access the Polymarket smart-money leaderboard?

You can access the leaderboard through the PmwClient to rank traders by on-chain PnL and filter by categories like sports or politics.
