Connect your AI
Connect to Codex
Ask about any US public company and get the real numbers back — revenue, margins, segments, a decade of history. Your assistant stops hallucinating figures and answers from live, verified data, grounded in what each company actually reported. So you can dig into a business, size it up against peers, and move fast on what you find — with every number traceable to where it came from.
Codex, OpenAI's coding agent, speaks the Model Context Protocol (MCP), so the IDE extension and app can pull live fundamentals from OpenCapital as you work. Prefer the terminal? Use the Codex CLI guide instead.
How to connect
Add the server in Codex
opencapital (the lowercase id the config key and codex mcp login command both use), and paste the connector URL below.https://api.opencapital.sh/mcpExact menu labels vary by extension version.
Authenticate with OpenCapital
codex mcp login opencapitalNow just ask.
You're all set. Ask Codex about fundamentals, segments, or peer comparisons in any session — it'll call OpenCapital as needed, right alongside your code.
Codex calls OpenCapital automatically — no special prefix needed.

Try asking
Works across every Codex surface
One MCP config across the IDE extension, app, and CLI — add it once. Data is read live everywhere.
Read-only by design
Exposes read-only research data from public SEC filings. Codex cannot place trades or change any account.
Troubleshooting
My AI doesn't see OpenCapital 's tools
@OpenCapital
.The sign-in window didn't open
/mcp → Authenticate; in the Codex CLI, run codex mcp login opencapital.It says “needs login” or stopped working
Connection failed or the server is unreachable
https://api.opencapital.sh/mcp, the transport is Streamable HTTP (not stdio), and your client is up to date.Still stuck?
Disclosures
Informational only — not investment advice
OpenCapital provides financial data and research, not recommendations. Nothing here is an offer or personalized investment, legal, or tax advice — do your own research.
Data sources and accuracy
Derived automatically from public SEC filings and other sources; it may contain errors or delays and is provided “as is.” Verify against primary sources — see our methodology.
Read-only access
The OpenCapital MCP server is read-only — it cannot place trades, move money, or modify any account.
Third-party AI clients
Your prompts and the data returned are processed by your AI client (Claude, ChatGPT, Codex, Cursor) under its own terms. AI can be wrong — verify before acting.
Authorization
Connecting grants read access via OAuth; revoke it anytime from your client's settings. Use is governed by our Terms and Privacy Policy.