
Octagon MCP Server
MCPOctagon AI 官方投研 MCP,用自然语言分析 SEC 文件、业绩会纪要、财务指标、股票与加密资产行情和新闻,并提供预测市场研究报告和深度研究代理。需注册免费账号获取 API Key,本机需装 Node.js;研究结论需自行核实,不构成投资建议。
Octagon: MCP for Public & Prediction Markets Intelligence
The Octagon MCP server provides specialized AI-powered financial research and analysis by integrating with the Octagon Market Intelligence API, enabling users to analyze and extract insights from public filings, earnings calls, financial metrics, stocks & crypto data, stock news, and prediction markets news & research within Claude Desktop and other popular MCP clients.
Tools
✅ octagon-agent orchestrates broad market intelligence analysis
- Public market insights: SEC filings (10-K, 10-Q, 20-F, 8-K, S-1, 13-F, DEF 14A), earnings call transcripts
- Stocks & crypto market data: stock trading, crypto trading data, news, press release, ownerships and holdings
✅ octagon-deep-research-agent for comprehensive deep research
- Multi-source synthesis for investment research questions
- Best for up-to-date, cross-source thematic analysis
✅ octagon-podcasts-agent for what investors said on podcasts
- Cited answers from 70+ finance and business shows (Bloomberg, All-In, Odd Lots, Invest Like the Best, …)
- Filters by time window, show, host, guest, company or ticker read from the question
✅ Prediction market research tooling
octagon-prediction-markets-agentfor updated research reports on each prediction marketsprediction_markets_historyfor structured historical market data retrieval
✅ Live Octagon documentation access
octagon-docs-search,octagon-docs-read,octagon-docs-list, andoctagon-docs-refresh- MCP resources for
octagon-docs://catalog,octagon-docs://status, andoctagon-docs://page/{target}
Get Your Octagon API Key
To use Octagon MCP, you need to:
- Sign up for a free account at Octagon
- After logging in, from left menu, navigate to API Keys
- Generate a new API key
- Use this API key in your configuration as the
OCTAGON_API_KEYvalue
Prerequisites
Before installing or running Octagon MCP, you need to have npx (which comes with Node.js and npm) installed on your system.
Mac (macOS)
-
Install Homebrew (if you don't have it):
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" -
Install Node.js (includes npm and npx):
brew install nodeThis will install the latest version of Node.js, npm, and npx.
-
Verify installation:
node -v npm -v npx -v
Windows
- Download the Node.js installer:
- Go to https://nodejs.org/ and download the LTS version for Windows.
- Run the installer and follow the prompts. This will install Node.js, npm, and npx.
- Verify installation:
Open Command Prompt and run:
node -v npm -v npx -v
If you see version numbers for all three, you are ready to proceed with the installation steps below.
Installation
Running on Claude Desktop
To configure Octagon MCP for Claude Desktop:
- Open Claude Desktop
- Go to Settings > Developer > Edit Config
- Add the following to your
claude_desktop_config.json(Replaceyour-octagon-api-keywith your Octagon API key):
{
"mcpServers": {
"octagon-mcp-server": {
"command": "npx",
"args": ["-y", "octagon-mcp@latest"],
"env": {
"OCTAGON_API_KEY": "YOUR_API_KEY_HERE"
}
}
}
}
- Restart Claude for the changes to take effect
Running on Cursor
Configuring Cursor Desktop 🖥️ Note: Requires Cursor version 0.45.6+
To configure Octagon MCP in Cursor:
- Open Cursor Settings
- Go to Features > MCP Servers
- Click "+ Add New MCP Server"
- Enter the following:
- Name: "octagon-mcp" (or your preferred name)
- Type: "command"
- Command:
env OCTAGON_API_KEY=your-octagon-api-key npx -y octagon-mcp
If you are using Windows and are running into issues, try
cmd /c "set OCTAGON_API_KEY=your-octagon-api-key && npx -y octagon-mcp"
Replace your-octagon-api-key with your Octagon API key.
After adding, refresh the MCP server list to see the new tools. The Composer Agent will automatically use Octagon MCP when appropriate, but you can explicitly request it by describing your investment research needs. Access the Composer via Command+L (Mac), select "Agent" next to the submit button, and enter your query.
Running with npx
env OCTAGON_API_KEY=your_octagon_api_key npx -y octagon-mcp
Manual Installation
npm install -g octagon-mcp
Documentation
For comprehensive documentation on using Octagon agents, please visit our official documentation at: https://octagonai.co/docs/
The documentation includes:
- Detailed API references
- Agent-specific query guidelines
- Examples and use cases
- Best practices for investment research
For the latest hosted MCP client setup guide, see:
This MCP server also exposes the live docs corpus directly to MCP clients. Documentation access is fetched from the public Octagon docs LLM entry point at https://octagonai.co/docs/llms.txt; it does not use or transmit OCTAGON_API_KEY.
Available Tools
The MCP server currently exposes the following tools:
Documentation Tools
These tools expose live Octagon docs inside the MCP session. They work even before OCTAGON_API_KEY is configured, which makes them useful for setup, troubleshooting, and discovering the right Octagon agent or API workflow.
octagon-docs-list
Lists live docs sections and pages from the Octagon docs corpus.
Parameters
section(string, optional): filter by docs section.source(docs,site, orall, optional): defaults to the docs corpus.limit(number, optional): maximum entries to return.
octagon-docs-search
Searches the Octagon API, agent, MCP, and plugin docs with source URLs and optional snippets.
Parameters
query(string, required): search query.section(string, optional): filter by docs section.source(docs,site, orall, optional): defaults to the docs corpus.limit(number, optional): maximum results to return.includeSnippets(boolean, optional): include matched snippets in results.
Example:
Search Octagon docs for Claude plugin connector setup.
octagon-docs-read
Reads one docs page or section as Markdown by title, URL, path, or catalog id.
Parameters
target(string, required): docs title, URL, path, or catalog id.source(docs,site, orall, optional): defaults to the docs corpus.maxChars(number, optional): maximum Markdown characters to return.preferCachedContent(boolean, optional): use the indexed docs corpus when available.
Example:
Read the Octagon MCP server guide.
octagon-docs-refresh
Refreshes the in-memory docs catalog from the live LLM-friendly docs endpoints.
Parameters
includeSite(boolean, optional): also refresh the broaderhttps://octagonai.co/llms.txtsite index.
Documentation Resources
Clients that support MCP resources can also browse:
octagon-docs://catalog: normalized live docs catalog.octagon-docs://status: cache state, source endpoints, and refresh metadata.octagon-docs://page/{target}: one docs page or section as Markdown.
octagon-agent
Orchestrates public and private market intelligence analysis.
Parameters
prompt(string, required): natural language research request.conversation(string, optional): existing Octagon conversation ID to continue a prioroctagon-agentthread. Omit this on the first turn.newConversation(boolean, optional): iftrue, starts a fresh Octagon thread for the active session/thread anchor. Recommended for the first turn of a brand new visible chat in top-layer hosts such as Claude Desktop.
Threaded usage
octagon-agent is the only MCP tool that forwards Octagon conversation threading. It is a stateful tool and expects session continuity. The MCP resolves session/thread state in this order:
- stored conversation for MCP transport session identity, when the transport actually provides it
- stored conversation for the server-managed default
stdiosession - explicit
conversationcan still override the active session conversation for that call
This package currently runs as a stdio MCP server. In stdio mode, the server automatically establishes a process-local session for continuity across calls. Most local hosts such as Claude Desktop or Cursor can therefore use octagon-agent without supplying any extra threading fields for basic follow-up behavior.
When a top-layer host knows a call is the first turn of a new visible chat, it should pass newConversation: true. That explicitly clears any stored Octagon thread for the active MCP session anchor before the call, which prevents stale continuity when a stdio host reuses the same long-lived MCP process across multiple visible chats.
This means you can use any of these patterns:
- First call: send only
prompt - Let the MCP host preserve transport session continuity or rely on the default stdio session
- Second call: either
- send the new
promptin the same MCP session, or - keep using the same stdio MCP process, or
- explicitly pass the previous
conversation
- send the new
Transport session identity is the canonical continuity primitive for standards-compliant stateful MCP transports. For local stdio usage, the server-managed process session provides default continuity.
Session identity and Octagon conversation identity are different concepts:
- MCP session identity controls server-side continuity across tool calls
- Octagon
conversationcontrols the active Octagon thread inside that session
The MCP result keeps the answer in content, and also returns structured metadata for orchestrators in structuredContent:
{
"model": "octagon-agent",
"text": "Which stock would you like the latest price for?",
"conversation": "conv_123",
"responseId": "resp_123",
"followUp": {
"required": true,
"inputTemplate": "<ticker or company name>",
"instructions": "Reply with just the missing detail and reuse the conversation value from this response."
}
}
Explicit carry-forward example:
{
"prompt": "AAPL",
"conversation": "conv_123"
}
New visible chat example:
{
"prompt": "Analyze Apple",
"newConversation": true
}
Explicit refresh example:
{
"prompt": "Start a fresh Octagon thread for this chat",
"newConversation": true
}
Stateful tool policy
octagon-agent: stateful, uses a usable continuity anchor. Instdiohosts, that defaults to the server-managed process session unless you provide explicitconversation- other MCP tools: stateless and may run without session continuity
Example:
Compare NVIDIA and AMD on latest quarterly revenue growth, margins, and management commentary.
More examples:
- "What were Amazon's revenue and net income figures in Q4 2023?"
- "Analyze Tesla's R&D spending trends over the last 3 years."
- "What guidance did NVIDIA's CEO provide regarding AI chip demand in their latest earnings call?"
- "Compare the price-to-earnings, price-to-sales, and EV/EBITDA ratios for the top 5 semiconductor companies."
- "What was Anthropic's latest funding round size, valuation, and key investors?"
- "How many investments did Andreessen Horowitz make in AI startups in the last 12 months?"
- "What are the latest news articles for NVIDIA stock from the past week?"
octagon-deep-research-agent
Performs comprehensive multi-source deep research and synthesis.
Parameters
prompt(string, required): natural language research request.
Example:
Research the impact of lower interest rates on late-stage private software valuations over the next 12 months.
More examples:
- "Extract all data fields from zillow.com/san-francisco-ca/"
- "Research the financial impact of Apple's privacy changes on digital advertising companies' revenue and margins"
- "Retrieve historical Bitcoin price data from 2023 and analyze the price volatility trends"
- "Analyze the competitive dynamics in the EV charging infrastructure market"
octagon-podcasts-agent
Answers questions from what investors, strategists, operators and guests said on finance and business podcasts. Every claim cites the episode (show, title, date, link), and the answer ends with a Sources: list. Earnings calls are not podcasts: use octagon-agent for those.
Parameters
prompt(string, required): natural language question. Put the time window, show, host, guest, company or ticker in the question; there are no separate filter parameters.
Example:
What are podcast guests saying about NVDA since August?
More examples:
- "What did Chamath say about AI capex on All-In recently?"
- "Summarize the last 3 episodes of Odd Lots."
- "Which companies were podcasts discussing most last week?"
- "How has podcast sentiment on Fed rate cuts changed since September?"
octagon-prediction-markets-agent
Research reports on Kalshi and Polymarket prediction markets, plus market search and edge screening across both venues.
Parameters
prompt(string, required): a Kalshi market URL or event ticker, a Polymarket event URL or slug, or a natural-language question (which markets exist or are open for a topic, where the model disagrees with the price).cache(boolean, optional): report mode for a single market.- omitted:
octagon-prediction-markets-agent, the cached report if one exists, otherwise generate one. false:octagon-prediction-markets-agent:refresh, force a fresh report (3 credits; Plus, Pro and Enterprise plans).true:octagon-prediction-markets-agent:cache, read the cached report only; never generates; free. A question that names no market returns a structured JSON list of matching markets (kind: "discovery").
- omitted:
API errors (a missing or unresolved market reference, an ambiguous ticker, a closed market, a plan or credit limit) are returned as Error [<code>]: <message>.
Examples:
Generate a report for the Kalshi market https://kalshi.com/markets/kxbtcy/btc-price-range-eoy/kxbtcy-27jan0100
Which Kalshi NBA game-winner markets are open tonight? (cache: true)
prediction_markets_history
Fetches historical data for a prediction market event ticker with optional pagination and time filters.
Parameters
event_ticker(string, required)limit(number, optional)cursor(string, optional)captured_from(string, optional)captured_to(string, optional)include_analysis(boolean, optional; when true, requests analysis columns)
Example:
Fetch historical data for the Kalshi event https://kalshi.com/markets/kxbtcy/btc-price-range-eoy/kxbtcy-27jan0100
Troubleshooting
- API Key Issues: Ensure your Octagon API key is correctly set in the environment or config file.
- Connection Issues: Make sure the connectivity to the Octagon API is working properly.
- Rate Limiting: If you encounter rate limiting errors, reduce the frequency of your requests.
License
MIT
Individual Specialized MCP Servers
While this server provides comprehensive market intelligence combining all our specialized agents, you can also use our individual MCP servers for specific use cases:
Research Tools
- Octagon Deep Research MCP - Comprehensive research and web scraping capabilities
⭐ Star this repo if you find it helpful!
相关资源

Dexter
CLI金融研究终端 Agent(金融研究版 Claude Code):把公司研究问题拆成步骤,自动拉取财报与行情数据并自我校验后作答。需安装 Bun,准备模型 API Key 与 Financial Datasets API Key;仅供学习研究,结论需专业人员复核。
virattt/dexter28k
Digital Oracle
Skill用市场交易数据回答宏观问题:综合 Polymarket/Kalshi 预测市场、美债收益率、CFTC 持仓、SEC 内部人交易、A 股资金流等 13 个免费数据源,给出概率估计、推理链和情景分析。无需 API Key,需安装 uv;结果不构成投资建议,须由专业人员复核。
komako-workshop/digital-oracle916
daymade-financial
Plugindaymade 插件市场里的投研套件:9 个技能覆盖 A 股新闻与政策、板块涨幅与公告、美股基本面(yfinance)、接入 Bigdata.com 与岗底斯数据,以及对投资论点做反方压力测试。部分数据源需要 API Key。
daymade/claude-code-skills1.6k
Bigdata.com Plugin
PluginRavenPack 旗下 Bigdata.com 官方投研插件:检索新闻、公告、电话会纪要等资料,做估值速览、同业对比、财报前瞻与复盘、风险与催化剂跟踪、行业与宏观研究,起草投资备忘录。需注册 Bigdata.com 账号(免费版含一次性额度),结论需专业人员复核。
Bigdata-com/bigdata-plugins-marketplace2
OpenBB MCP Server
MCPOpenBB 官方 MCP 服务器,把 OpenBB Platform 的股票、ETF、宏观经济、加密资产、新闻等数据接口开放给 agent,可按类别只启用需要的工具以节省上下文。需本机安装 uv,部分数据源需自备 API Key;分析结果不构成投资建议。
OpenBB-finance/OpenBB75.9k
AI Berkshire
Skill价值投资研究技能合集,把巴菲特、芒格、段永平、李录的方法做成个股深度研究、财报精读、行业筛选、持仓复盘和投资逻辑追踪等 20 多个流程,要求给出明确结论并交叉核对数据。支持 Claude Code 与 Codex;精确计算依赖仓库自带的 Python 工具,完整使用需克隆仓库,token 消耗较高;结果不构成投资建议。
xbtlin/ai-berkshire17.3k
