graph-polymarket-mcp 1.2.0 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -7
- package/build/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,13 +1,20 @@
|
|
|
1
|
+
<div align="center">
|
|
2
|
+
|
|
1
3
|
# graph-polymarket-mcp
|
|
2
4
|
|
|
3
5
|
[](https://www.npmjs.com/package/graph-polymarket-mcp)
|
|
4
6
|
[](https://registry.modelcontextprotocol.io/v0.1/servers?search=io.github.PaulieB14/graph-polymarket-mcp)
|
|
5
|
-
[](https://glama.ai/mcp/servers/@PaulieB14/graph-polymarket-mcp)
|
|
6
7
|
[](https://smithery.ai/servers/paulieb14/graph-polymarket-mcp)
|
|
7
8
|
|
|
9
|
+
<a href="https://glama.ai/mcp/servers/@PaulieB14/graph-polymarket-mcp">
|
|
10
|
+
<img width="380" height="200" src="https://glama.ai/mcp/servers/@PaulieB14/graph-polymarket-mcp/badge" />
|
|
11
|
+
</a>
|
|
12
|
+
|
|
13
|
+
</div>
|
|
14
|
+
|
|
8
15
|
MCP server for querying [Polymarket](https://polymarket.com/) prediction market data via [The Graph](https://thegraph.com/) subgraphs.
|
|
9
16
|
|
|
10
|
-
Exposes
|
|
17
|
+
Exposes 12 tools that AI agents (Claude, Cursor, etc.) can use to query market data, trader P&L, positions, activity, and orderbook trades.
|
|
11
18
|
|
|
12
19
|
> Published to the [MCP Registry](https://registry.modelcontextprotocol.io/v0.1/servers?search=io.github.PaulieB14/graph-polymarket-mcp) as `io.github.PaulieB14/graph-polymarket-mcp`
|
|
13
20
|
|
|
@@ -78,12 +85,15 @@ Use the stdio transport with `npx graph-polymarket-mcp` as the command, passing
|
|
|
78
85
|
|
|
79
86
|
| Tool | Description | Subgraph |
|
|
80
87
|
|------|-------------|----------|
|
|
81
|
-
| `get_market_data` | Get market/condition data with outcomes and
|
|
82
|
-
| `
|
|
83
|
-
| `
|
|
88
|
+
| `get_market_data` | Get market/condition data with outcomes and resolution status | Main |
|
|
89
|
+
| `get_global_stats` | Get platform stats: market counts + real volume/fees/trades | Main + Orderbook |
|
|
90
|
+
| `get_account_pnl` | Get a trader's P&L and performance metrics (winRate, profitFactor, maxDrawdown) | Beefy P&L |
|
|
91
|
+
| `get_top_traders` | Leaderboard of top traders ranked by PnL, winRate, volume, or profitFactor | Beefy P&L |
|
|
92
|
+
| `get_daily_stats` | Daily volume, fees, trader counts, and market activity (1–90 days) | Beefy P&L |
|
|
93
|
+
| `get_market_positions` | Top holders for a specific outcome token with their P&L | Beefy P&L |
|
|
94
|
+
| `get_user_positions` | Get a user's current token positions | Slimmed P&L |
|
|
84
95
|
| `get_recent_activity` | Get recent splits, merges, and redemptions | Activity |
|
|
85
|
-
| `get_orderbook_trades` | Get recent order fills | Orderbook |
|
|
86
|
-
| `get_global_stats` | Get aggregate platform statistics | Main |
|
|
96
|
+
| `get_orderbook_trades` | Get recent order fills with maker/taker filtering | Orderbook |
|
|
87
97
|
|
|
88
98
|
## Subgraphs
|
|
89
99
|
|
package/build/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import { querySubgraph } from "./graphClient.js";
|
|
|
6
6
|
import { SUBGRAPHS, SUBGRAPH_NAMES } from "./subgraphs.js";
|
|
7
7
|
const server = new McpServer({
|
|
8
8
|
name: "graph-polymarket-mcp",
|
|
9
|
-
version: "1.2.
|
|
9
|
+
version: "1.2.2",
|
|
10
10
|
});
|
|
11
11
|
// Helper to format tool responses
|
|
12
12
|
function textResult(data) {
|
package/package.json
CHANGED