loading…
Search for a command to run...
loading…
Provides a comprehensive set of tools for Polymarket prediction market trading, including Gamma discovery, CLOB trading, gasless relayer, managed WebSockets, an
Provides a comprehensive set of tools for Polymarket prediction market trading, including Gamma discovery, CLOB trading, gasless relayer, managed WebSockets, and paper simulation, enabling agents to interact with Polymarket natively.
Make Polymarket fully native inside Hermes, OpenClaw, Claude Desktop, Cursor, and other agent harnesses.
Full Gamma discovery + CLOB trading + gasless relayer + managed real-time WebSockets (Market/User/Sports) + paper trading simulation + strategy cookbooks. 100+ high-level tools. Zero static long-form docs in the repo — everything is delivered live through callable tools.
# Core (recommended for most users — CLOB trading + most gasless features)
pip install git+https://github.com/Ghost-Network666/alpha-mcp.git
# With advanced gasless/relayer features (Safe deployment, low-level batches)
pip install "git+https://github.com/Ghost-Network666/alpha-mcp.git[gasless]"
# Development
git clone https://github.com/Ghost-Network666/alpha-mcp.git
cd alpha-mcp
pip install -e ".[gasless]"
Add this to ~/.hermes/config.yaml (use absolute paths and the official variable names):
mcp_servers:
polymarket:
command: python
args: ["-m", "polymarket_alpha"]
cwd: "/absolute/path/to/Alpha MCP"
env:
PK: "${PK}"
CLOB_API_KEY: "${CLOB_API_KEY}"
CLOB_SECRET: "${CLOB_SECRET}"
CLOB_PASS_PHRASE: "${CLOB_PASS_PHRASE}"
# FUNDER: "0xYourDepositWallet" # Required for most serious users (signature_type=3)
Best practice: Put real secrets in ~/.hermes/.env and reference them with ${VAR} (Hermes supports this substitution).
Critical for most users (signature_type=3 / Deposit wallets):
FUNDER must be the deposit wallet address shown at polymarket.com → Profile → Wallet (NOT your EOA).After adding/restarting Hermes, the very first calls inside your agent must be:
get_mcp_health_report()check_clob_auth(include_raw=true) ← mandatory before any trading (it will surface the exact sig=3 warnings)Then use only the high-level exposed tools.
Call these native tools immediately:
get_mcp_health_report(include_detailed=true)get_capabilities()get_polymarket_llms_txt() ← primary source for all official Polymarket documentationlist_polymarket_docs() + get_polymarket_doc(path="trading/gasless.md") etc. for full .md contentpolymarket_alpha_setup_guide(platform="hermes") for the exact current config blockget_clob_token_ids bridge (handles the stringified JSON foot-gun)start_full_realtime_session, watch_*, listen_for_ws_events, sports channel, auto-reconnectgasless_prepare_for_tradingget_polymarket_llms_txt, list_polymarket_docs, get_polymarket_doc, get_gamma_docs, get_clob_docs, cookbooksAll documentation for agents lives inside the tools (never stale root .md files).
# Inside your agent
docs_index = list_polymarket_docs()
content = get_polymarket_doc(path="trading/gasless.md") # full
neg_risk = get_polymarket_doc(path="advanced/neg-risk.md", summarize=True)
MIT
Never commit real credentials. Use the .env.example template + ~/.hermes/.env + ${VAR} references.
Run in your terminal:
claude mcp add alpha-mcp -- npx Security
Low riskAutomated heuristic from public metadata — not a security guarantee.