Alpha MCP
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.
README
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-reconnect - Gasless — full relayer support (split/merge/redeem/approvals) +
gasless_prepare_for_trading - Simulation — 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.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.