Octagon

Finance and commerce

An MCP server for public & prediction markets research. Ask natural-language questions and get structured, source-backed answers across SEC filings, earnings transcripts, company financials, stock & crypto market data, and prediction markets news & research. Built for investors, analysts, and researchers who need fast, cited intelligence.

Your AI app calls the Octagon MCP server, which does the work through tools like prediction_markets_history and octagon-docs-search and sends the result back to the chat.

About Octagon

Octagon is a community MCP server from OctagonAI, filed in our directory under finance and commerce. An MCP server for public & prediction markets research. Ask natural-language questions and get structured, source-backed answers across SEC filings, earnings transcripts, company financials, stock & crypto market data, and prediction markets news & research. Built for investors, analysts, and researchers who need fast, cited intelligence.

The README for Octagon lists tools such as octagon-prediction-markets-agent, prediction_markets_history, octagon-docs-search and section, which your AI app can call once the server is connected.

At a glance

Publisher
OctagonAI (community)
Runs
See the README for setup
Written in
TypeScript
License
MIT
GitHub stars
149

Tools Octagon gives your AI app

  • octagon-prediction-markets-agentFor updated research reports on each prediction markets.
  • prediction_markets_historyFor structured historical market data retrieval.
  • octagon-docs-search, octagon-docs-read, octagon-docs-list, and octagon-docs-refresh.
  • section(string, optional): filter by docs section.
  • source(docs, site, or all, optional): defaults to the docs corpus.
  • limit(number, optional): maximum entries to return.
  • query(string, required): search query.
  • includeSnippets(boolean, optional): include matched snippets in results.
  • target(string, required): docs title, URL, path, or catalog id.
  • maxChars(number, optional): maximum Markdown characters to return.
  • preferCachedContent(boolean, optional): use the indexed docs corpus when available.
  • includeSite(boolean, optional): also refresh the broader https://octagonai.co/llms.txt site index.

Tool names as the Octagon README lists them. Your AI app shows the live list once Octagon is connected.

How to set up Octagon

  1. Follow the install steps in the Octagon README; it is written in TypeScript, so have that toolchain ready.
  2. Check the Octagon README for keys or settings; the registry lists none that Octagon requires.
  3. Add Octagon to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Octagon tools to confirm the connection.
  5. Run one read-only task with Octagon first, such as a call to octagon-prediction-markets-agent, before you allow anything that writes or sends.

Octagon compared with similar servers

  • Tradingview Indicator Search by daviddme has fewer GitHub stars than Octagon (146 against 149); both are community servers, and both run locally.
  • Financial Modeling Prep by imbenrabi has fewer GitHub stars than Octagon (149 against 149); both are community servers, and Financial Modeling Prep runs as a remote server and Octagon runs on your own machine.
  • Ccxt by doggybee has fewer GitHub stars than Octagon (145 against 149); both are community servers, and both run locally. The Ccxt README lists 23 tools to Octagon's 12.

Before you connect Octagon

  • Give Octagon its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Octagon tool call until you trust what it does with them.
  • Treat text that Octagon fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Octagon on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Octagon

How marketing and sales teams put Octagon to work, by company size. Pick the size closest to yours and start Octagon on one use case.

Small business

  • A small business can ask Octagon which products and customers drive margin, then plan promotions around them.
  • Owners can use Octagon to check refunds, failed payments and churn reasons without opening three dashboards.
  • Octagon runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Ecommerce teams can connect Octagon to tie campaigns to orders and revenue, not just clicks.
  • Marketing and finance can use Octagon to check spend against budget each week and move money to what's working.
  • Start with octagon-prediction-markets-agent and prediction_markets_history, the tools Octagon lists first, and add more once the team trusts the results.

Enterprise

  • Enterprises should keep Octagon read-only for agents, with any money movement handled by people and existing approvals.
  • Large commerce teams can use Octagon to answer revenue questions by channel and region with figures finance signs off on.
  • Octagon is a community server, so have security review the code and pin a version before Octagon touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Octagon README

From OctagonAI/octagon-mcp-server on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

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-agent for updated research reports on each prediction markets
  • prediction_markets_history for structured historical market data retrieval

✅ Live Octagon documentation access

  • octagon-docs-search, octagon-docs-read, octagon-docs-list, and octagon-docs-refresh
  • MCP resources for octagon-docs://catalog, octagon-docs://status, and octagon-docs://page/{target}

Get Your Octagon API Key

To use Octagon MCP, you need to:

  1. Sign up for a free account at Octagon
  2. After logging in, from left menu, navigate to API Keys
  3. Generate a new API key
  4. Use this API key in your configuration as the OCTAGON_API_KEY value

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)
  1. Install Homebrew (if you don't have it):

    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
    
  2. Install Node.js (includes npm and npx):

    brew install node
    

    This will install the latest version of Node.js, npm, and npx.

  3. Verify installation:

    node -v
    npm -v
    npx -v
    
Windows
  1. Download the Node.js installer:
  2. Run the installer and follow the prompts. This will install Node.js, npm, and npx.
  3. 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:

  1. Open Claude Desktop
  2. Go to Settings > Developer > Edit Config
  3. Add the following to your claude_desktop_config.json (Replace your-octagon-api-key with your Octagon API key):
{
  "mcpServers": {
    "octagon-mcp-server": {
      "command": "npx",
      "args": ["-y", "octagon-mcp@latest"],
      "env": {
        "OCTAGON_API_KEY": "YOUR_API_KEY_HERE"
      }
    }
  }
}
  1. 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:

  1. Open Cursor Settings
  2. Go to Features > MCP Servers
  3. Click "+ Add New MCP Server"
  4. 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, or all, 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, or all, 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, or all, 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 broader https://octagonai.co/llms.txt site 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 prior octagon-agent thread. Omit this on the first turn.
  • newConversation (boolean, optional): if true, 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:

  1. stored conversation for MCP transport session identity, when the transport actually provides it
  2. stored conversation for the server-managed default stdio session
  3. explicit conversation can 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:

  1. First call: send only prompt
  2. Let the MCP host preserve transport session continuity or rely on the default stdio session
  3. Second call: either
    • send the new prompt in the same MCP session, or
    • keep using the same stdio MCP process, or
    • explicitly pass the previous conversation

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 conversation controls 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. In stdio hosts, that defaults to the server-managed process session unless you provide explicit conversation
  • 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").

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

  1. API Key Issues: Ensure your Octagon API key is correctly set in the environment or config file.
  2. Connection Issues: Make sure the connectivity to the Octagon API is working properly.
  3. 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

⭐ Star this repo if you find it helpful!

Questions about Octagon

What is the Octagon MCP server?

An MCP server for public & prediction markets research. Ask natural-language questions and get structured, source-backed answers across SEC filings, earnings transcripts, company financials, stock & crypto market data, and prediction markets news & research. Built for investors, analysts, and researchers who need fast, cited intelligence. Octagon is maintained by OctagonAI on GitHub at OctagonAI/octagon-mcp-server, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Octagon MCP server?

Octagon doesn't publish a one-line install in the MCP registry, so follow the setup steps in its README on GitHub (OctagonAI/octagon-mcp-server). Like most servers, Octagon ends with a command or URL you paste into your AI app's MCP config.

Does Octagon need an API key?

The registry lists no required keys for Octagon. Check the Octagon README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is Octagon an official MCP server?

No. Octagon is a community server maintained by OctagonAI. Community servers can be excellent; read the code and the open issues before you give Octagon access to company data.

What license is Octagon under?

Octagon is released under the MIT license, according to its GitHub repository. The license covers the code of Octagon; the service it connects to has its own terms.