Alpha MCP
Provides native Polymarket gamma discovery, CLOB trading, gasless relayer, and managed real-time WebSockets within Hermes via MCP.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Alpha MCP
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.
Installation (recommended for agents)
# 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]"Hermes Setup (primary target)
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):
FUNDERmust be the deposit wallet address shown at polymarket.com → Profile → Wallet (NOT your EOA).You must first log into the official UI with the owner EOA, fund the deposit wallet with pUSD, and place at least one manual order via the website. This activates the wallet for API use.
Without the UI step you will hit "maker address not allowed" or signer mismatch errors.
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.
First Actions (every session)
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 block
Key Capabilities
Gamma discovery — rich search, events, tags, full
get_clob_token_idsbridge (handles the stringified JSON foot-gun)Managed realtime —
start_full_realtime_session,watch_*,listen_for_ws_events, sports channel, auto-reconnectGasless — full relayer support (split/merge/redeem/approvals) +
gasless_prepare_for_tradingSimulation — safe paper trading + live book impact + WS replay for strategy development
Self-documenting —
get_polymarket_llms_txt,list_polymarket_docs,get_polymarket_doc,get_gamma_docs,get_clob_docs, cookbooks
All documentation for agents lives inside the tools (never stale root .md files).
Official Docs via Native Tools
# 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)License
MIT
Never commit real credentials. Use the .env.example template + ~/.hermes/.env + ${VAR} references.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
Polymarket + Hyperliquid + macro for AI agents. 38 tools, signal backtest, SSE streaming. Free tier.
Polymarket in your AI: market rules, real fill costs, who is trading, top traders. Read-only.
Calibrated world model for AI agents. 40 tools: world state, markets, trading. Kalshi + Polymarket.
Live Polymarket data for agents: markets, insider-scored whale trades, leaderboards, wallet P&L