Purpose
ROIC.ai Financial Data MCP Server is a financial data MCP server and also a stock market MCP server. It connects AI assistants (Claude, ChatGPT, Cursor, VS Code, OpenAI Codex) to stock prices, financial statements, earnings call transcripts, fundamentals, financial ratios, and valuation data for over 60,000 public companies via the Model Context Protocol (MCP). Users ask questions in natural language, and the model fetches real-time stock market data from the ROIC.ai REST API on demand, with no copy-pasting required.
Data is provided by ROIC.ai, covering financial statements, ratios, valuation multiples, and earnings call transcripts for public companies across more than 70 global exchanges. The project is open source and can be run for free from the GitHub repository: bring your own free API key to get a financial MCP server and a stock price MCP server. Unlike single-source data providers such as Yahoo Finance, ROIC.ai provides standardized financial statements, precomputed ratios, and valuation multiples across more than 70 exchanges, giving models clean, comparable numbers rather than scraped tables.
Key Capabilities
This stock market MCP server provides 25 read-only tools, divided into seven categories:
- Financial statements: income statement, balance sheet, cash flow statement (annual or quarterly).
- Financial ratios: profitability (ROE, ROA, ROIC, margins), credit/debt, liquidity, working capital, yields.
- Valuation: P/E, P/B, P/S, EV/EBITDA and other multiples, enterprise value, per-share data.
- Earnings calls: full earnings call transcripts by year and quarter.
- Stock prices: end-of-day and historical OHLCV data with date ranges (itself a stock price MCP server).
- Company data: company profile (CEO, industry, sector, employee count) and news.
- Discovery: search and list tickers, exchanges, sectors, industries, countries.
Each tool accepts a company identifier that can be a ticker (e.g., AAPL), CIK, CUSIP, or ISIN. Financial tools accept period (annual or quarterly), limit, order, and date / fiscal year filters.
Usage
Hosted Version (Recommended)
The fastest way is to use the hosted MCP server https://mcp.roic.ai/mcp — Streamable HTTP plus OAuth login, no API key management required, and automatically updated. Works with ChatGPT, Claude, Cursor, VS Code, and Codex. Any client that accepts a URL-based MCP server can use it. Full setup guides for each client are available at roic.ai/api/mcp.
Self-Hosted (Open Source)
To run it yourself and bring your own API key: at https://www.roic.ai/dashboard Get a free API key, then run it directly with npx (no installation required). Add the configuration to the MCP configuration file of the corresponding client (claude_desktop_config.json for Claude Desktop, .cursor/mcp.json for Cursor, .vscode/mcp.json for VS Code, ~/.codex/config.toml for Codex), restart the client, and then you can ask questions, for example: "Show me Apple's income statement for the last 3 years using roicai."
The server authenticates to the ROIC.ai REST API using the API key passed in via the ROIC_API_KEY environment variable. The free tier covers all tools for all publicly listed companies; paid plans increase rate limits and historical depth.
Local Development
Requires Node.js 18+ (uses the built-in fetch).
Related links: Documentation https://www.roic.ai/api/mcp;REST API https://www.roic.ai/api;获取 API key https://www.roic.ai/dashboard;Model Context Protocol https://modelcontextprotocol.io。
Use Cases
Suitable for users and developers who need to query financial data of publicly listed companies directly within AI assistants, conduct stock research and valuation analysis, obtain earnings call content, and retrieve historical stock prices.
Limitations
All tools are read-only. Self-hosting requires Node.js 18+ and a ROIC.ai API key; the free tier has rate limits and historical depth limits, and the specific quotas are not currently provided. The hosted version requires signing in via OAuth.