Purpose
Octagon MCP Server is an MCP (Model Context Protocol) server focused on intelligence research for public markets and prediction markets. It connects the capabilities of the Octagon Market Intelligence API to mainstream MCP clients such as Claude Desktop and Cursor, allowing users to ask questions in natural language and receive structured answers backed by sources. Its official positioning is to serve investors, analysts, and researchers who need fast, citable intelligence.
Main Capabilities
The server provides multiple specialized tools and agents:
- octagon-agent: Orchestrates broad market intelligence analysis, covering public market insights (SEC filings such as 10-K, 10-Q, 20-F, 8-K, S-1, 13-F, DEF 14A, as well as earnings call transcripts), stock and cryptocurrency market data (stock trading, crypto trading data, news, press releases, holdings and positions).
- octagon-deep-research-agent: Performs multi-source synthesized deep research, suitable for investment research questions that require the latest cross-source thematic analysis.
- octagon-prediction-markets-agent: Generates research reports for Kalshi prediction market events, and the agent variant routing can be controlled via the cache parameter.
- prediction_markets_history: Retrieves prediction market historical data by event code, supports pagination and time filtering, and can request analysis columns.
- Documentation tools: octagon-docs-search, octagon-docs-read, octagon-docs-list, octagon-docs-refresh, as well as MCP resources octagon-docs://catalog, octagon-docs://status, octagon-docs://page/{target}. Documentation access is obtained from the public Octagon documentation LLM entry point, and does not use or transmit OCTAGON_API_KEY, so it can also be used for installation, troubleshooting, and discovering suitable agents or API workflows before configuring an API Key.
How to Use
- Get an API Key: At Octagon Register a free account, log in, and from the left menu go to API Keys, generate a new API Key, and use it as the value of OCTAGON_API_KEY.
- Installation prerequisites: The system must have npx installed (provided with Node.js and npm). On macOS, Node.js can be installed with Homebrew (brew install node); on Windows, you can download the LTS version from nodejs.org and install it. After installation, you can verify with node -v, npm -v, and npx -v.
- Configure in Claude Desktop: Open Claude Desktop, go to Settings > Developer > Edit Config, add the configuration in claude_desktop_config.json (replace your-octagon-api-key with the actual API Key), and restart Claude for it to take effect.
- Configure in Cursor (requires Cursor 0.45.6+): Open Cursor Settings, go to Features > MCP Servers, click "+ Add New MCP Server", the name can be octagon-mcp, the type should be command, and the command is env OCTAGON_API_KEY=your-octagon-api-key npx -y octagon-mcp. On Windows, if you encounter issues, you can try cmd /c "set OCTAGON_API_KEY=your-octagon-api-key && npx -y octagon-mcp". After adding, refresh the MCP server list to see the new tool.
- Run via npx: You can also install and run it manually.
Session and State Notes
octagon-agent is the only MCP tool that forwards Octagon conversation threads. It is a stateful tool and depends on session continuity. The session/thread state resolution order is: the stored session corresponding to the MCP transport session identity (when the transport actually provides it), the server-managed default stdio session, and an explicit conversation parameter can override the current session. Thispackage currently runs as a stdio MCP server. In stdio mode, the server automatically establishes a process-local session to maintain continuity across calls. When the upper-layer host knows that a call is the first turn of a new visible conversation, it should pass newConversation: true to clear the stored Octagon thread under the current MCP session anchor, avoiding stale continuity when the stdio host reuses the same long-lived MCP process. Other MCP tools are stateless and can run without relying on session continuity.
Applicable Scenarios
The official example questions include: querying Amazon's Q4 2023 revenue and net profit, analyzing Tesla's R&D spending trend over the past three years, understanding Nvidia CEO's guidance on AI chip demand in the latest earnings call, comparing the P/E, P/S, and EV/EBITDA of the top five semiconductor companies, querying the size, valuation, and main investors of Anthropic's latest funding round, counting the number of Andreessen Horowitz investments in AI startups over the past 12 months, and getting news articles about Nvidia stock from the past week, etc. The deep research agent can be used to extract web page data fields, study the impact of changes in Apple's privacy policy on the revenue and profit margins of digital advertising companies, retrieve historical Bitcoin prices for 2023 and analyze volatility trends, and analyze the competitive landscape of the electric vehicle charging infrastructure market, etc.
Limitations and Notes
- Usage requires an Octagon API Key; except for documentation tools, which can be used without a configured Key.
- The system needs npx installed (Node.js and npm).
- You may encounter API Key configuration errors, connection issues, or rate limits; if you encounter rate limit errors, you should reduce the request frequency.
- The official offering also provides separate dedicated MCP servers (such as Octagon Deep Research MCP) for specific use cases.
- More details about billing, pricing, platform support scope, etc. are not yet provided in the materials.