polymarket-toolkit-mcp 0.7.0
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 +51 -0
- package/dist/cli.js +994 -0
- package/dist/server.js +21303 -0
- package/docs/data/polymarket-api-rate-limits.json +40 -0
- package/package.json +51 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema_version": 1,
|
|
3
|
+
"updated_at": "2026-05-25T08:30:00+00:00",
|
|
4
|
+
"source": {
|
|
5
|
+
"title": "Polymarket API rate limits",
|
|
6
|
+
"url": "https://docs.polymarket.com/api-reference/rate-limits",
|
|
7
|
+
"notes": "Synced from public Polymarket API docs · Cloudflare throttling on sliding windows."
|
|
8
|
+
},
|
|
9
|
+
"families": {
|
|
10
|
+
"gamma": {
|
|
11
|
+
"base_url": "https://gamma-api.polymarket.com",
|
|
12
|
+
"auth": "none",
|
|
13
|
+
"limits": [
|
|
14
|
+
{"scope": "general", "requests": 4000, "window_seconds": 10},
|
|
15
|
+
{"scope": "/events", "requests": 500, "window_seconds": 10},
|
|
16
|
+
{"scope": "/markets", "requests": 300, "window_seconds": 10},
|
|
17
|
+
{"scope": "/comments", "requests": 200, "window_seconds": 10}
|
|
18
|
+
]
|
|
19
|
+
},
|
|
20
|
+
"data": {
|
|
21
|
+
"base_url": "https://data-api.polymarket.com",
|
|
22
|
+
"auth": "none",
|
|
23
|
+
"limits": [
|
|
24
|
+
{"scope": "general", "requests": 1000, "window_seconds": 10},
|
|
25
|
+
{"scope": "/trades", "requests": 200, "window_seconds": 10},
|
|
26
|
+
{"scope": "/positions", "requests": 150, "window_seconds": 10},
|
|
27
|
+
{"scope": "/closed-positions", "requests": 150, "window_seconds": 10}
|
|
28
|
+
]
|
|
29
|
+
},
|
|
30
|
+
"clob": {
|
|
31
|
+
"base_url": "https://clob.polymarket.com",
|
|
32
|
+
"auth": "mixed",
|
|
33
|
+
"limits": [
|
|
34
|
+
{"scope": "general", "requests": 9000, "window_seconds": 10},
|
|
35
|
+
{"scope": "/book", "requests": 1500, "window_seconds": 10},
|
|
36
|
+
{"scope": "/midpoint", "requests": 1500, "window_seconds": 10}
|
|
37
|
+
]
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "polymarket-toolkit-mcp",
|
|
3
|
+
"version": "0.7.0",
|
|
4
|
+
"description": "MCP server exposing polymarket-toolkit's read-only Polymarket data CLI as tools for AI agents. No keys, no orders — data only.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"bin": {
|
|
7
|
+
"polymarket-toolkit-mcp": "dist/server.js"
|
|
8
|
+
},
|
|
9
|
+
"files": [
|
|
10
|
+
"dist",
|
|
11
|
+
"docs/data",
|
|
12
|
+
"README.md"
|
|
13
|
+
],
|
|
14
|
+
"scripts": {
|
|
15
|
+
"start": "node --experimental-strip-types src/server.ts",
|
|
16
|
+
"test": "node --experimental-strip-types --test tests/*.test.ts",
|
|
17
|
+
"typecheck": "tsc --noEmit",
|
|
18
|
+
"build": "esbuild src/server.ts --bundle --platform=node --format=esm --outfile=dist/server.js --banner:js='#!/usr/bin/env node' && esbuild ../src/cli/main.ts --bundle --platform=node --format=esm --outfile=dist/cli.js && mkdir -p docs/data && cp ../docs/data/polymarket-api-rate-limits.json docs/data/",
|
|
19
|
+
"prepublishOnly": "npm run typecheck && npm test && npm run build"
|
|
20
|
+
},
|
|
21
|
+
"repository": {
|
|
22
|
+
"type": "git",
|
|
23
|
+
"url": "git+https://github.com/runesleo/polymarket-toolkit.git",
|
|
24
|
+
"directory": "mcp"
|
|
25
|
+
},
|
|
26
|
+
"homepage": "https://github.com/runesleo/polymarket-toolkit/blob/main/docs/mcp.md",
|
|
27
|
+
"license": "MIT",
|
|
28
|
+
"keywords": [
|
|
29
|
+
"mcp",
|
|
30
|
+
"model-context-protocol",
|
|
31
|
+
"polymarket",
|
|
32
|
+
"prediction-markets",
|
|
33
|
+
"ai-agents",
|
|
34
|
+
"claude"
|
|
35
|
+
],
|
|
36
|
+
"dependencies": {
|
|
37
|
+
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
38
|
+
"zod": "^3.24.0"
|
|
39
|
+
},
|
|
40
|
+
"devDependencies": {
|
|
41
|
+
"@types/node": "^24.0.0",
|
|
42
|
+
"esbuild": "^0.25.0",
|
|
43
|
+
"typescript": "^5.8.0"
|
|
44
|
+
},
|
|
45
|
+
"engines": {
|
|
46
|
+
"node": ">=20"
|
|
47
|
+
},
|
|
48
|
+
"publishConfig": {
|
|
49
|
+
"access": "public"
|
|
50
|
+
}
|
|
51
|
+
}
|