Financial Data API

MCP Server

The ROIC.ai MCP server lets you connect AI assistants like Claude, ChatGPT, VS Code Copilot, and OpenAI Codex directly to financial data for 60,000+ public companies. Ask questions in natural language and get real-time data from income statements, balance sheets, stock prices, valuation multiples, and more.

What is MCP?

The Model Context Protocol (MCP) is an open standard that allows AI assistants to connect to external data sources and tools. Instead of copying and pasting data, your AI assistant can query ROIC.ai directly — fetching company profiles, financial statements, stock prices, and ratios on demand.

Server URL

https://mcp.roic.ai/mcp

Authentication

ROIC.ai uses OAuth 2.1 to authenticate MCP connections. When you connect for the first time, your AI client will open a browser window where you log in to your ROIC.ai account and authorize access. No API key is needed.

How it works:

  1. Your AI client connects to https://mcp.roic.ai/mcp
  2. ROIC.ai opens a browser window for you to log in
  3. After login, you authorize the connection
  4. Your AI client receives an access token (valid for 30 days)
  5. All subsequent requests are authenticated automatically

Professional Plan

Apple (AAPL) data is available on all tools without a paid subscription. To access data for all other companies, you need an active Professional plan.

Professional Plan Required

The MCP server requires a Professional plan to access financial data for all 60,000+ public companies. Apple (AAPL) data is available without a paid subscription.

All 60,000+ companies
Multiple financial data tools
Income statements & ratios
Earnings call transcripts
Real-time stock prices
No request limits

$49/mo

3-day free trial

Start Free Trial

Configuration

Claude Code (CLI)

Run this command in your terminal:

claude mcp add --transport http roicai https://mcp.roic.ai/mcp

Verify the server is connected:

claude mcp list

Claude Desktop

  1. Open Claude Desktop and go to Settings

  2. Navigate to Connectors and click Add custom connector

Claude Desktop — Connectors Settings

  1. Select Remote MCP server URL and enter:
https://mcp.roic.ai/mcp
  1. Click Add — Claude will open your browser to log in and authorize

Claude Desktop — MCP Server Connected

VS Code

  1. Open the Command Palette (Cmd+Shift+P on Mac, Ctrl+Shift+P on Windows)

  2. Search for MCP: Add Server and select it

  3. Choose HTTP as the transport type

  4. Enter the server URL:

https://mcp.roic.ai/mcp
  1. Give the server a name (e.g., roicai) and press Enter

  2. VS Code will open your browser to log in and authorize

OpenAI Codex

Add to your Codex configuration file (~/.codex/config.toml):

[mcp_servers.roicai]
url = "https://mcp.roic.ai/mcp"

Or use the CLI:

codex mcp add roicai https://mcp.roic.ai/mcp

Then authenticate:

codex mcp login roicai

Manual Configuration (JSON)

For any MCP client that supports JSON configuration:

{
  "mcpServers": {
    "roicai": {
      "url": "https://mcp.roic.ai/mcp",
      "transport": "http"
    }
  }
}

Available Tools

The MCP server provides multiple tools organized by category. Your AI assistant can use any of these tools based on your natural language requests.

Tickers & Discovery

ToolDescription
search_tickersSearch by ticker
list_tickersGet a list of all available stock tickers
search_ticker_by_identifierLook up a ticker by CIK, CUSIP, or ISIN

Company Information

ToolDescription
get_company_profileDetailed company profile: CEO, employees, sector, industry, description, and more
get_company_newsRecent news articles for a company with pagination and date filtering

Earnings Calls

ToolDescription
get_latest_earnings_callMost recent earnings call transcript
list_earnings_callsList all available earnings calls (year, quarter, date)
get_earnings_call_transcriptGet a specific transcript by year and quarter

Stock Prices

ToolDescription
get_stock_pricesHistorical OHLCV price data with date range filtering
get_latest_stock_priceMost recent stock price

Financial Statements

ToolDescription
get_income_statementRevenue, gross profit, operating income, net income, EPS, EBITDA, margins
get_balance_sheetAssets, liabilities, equity, shares outstanding, debt levels
get_cash_flowOperating, investing, financing cash flows, CapEx, free cash flow

Financial Ratios

ToolDescription
get_profitability_ratiosROE, ROA, ROIC, margins, effective tax rate, payout ratio
get_credit_ratiosDebt/EBITDA, debt/equity, interest coverage
get_liquidity_ratiosCurrent ratio, quick ratio, cash ratio, Altman Z-Score
get_working_capital_ratiosReceivable/inventory/payable turnover, cash conversion cycle
get_yield_analysisFCF yield, shareholder yield, capital yield

Valuation & Metrics

ToolDescription
get_enterprise_valueMarket cap, enterprise value, EV/Sales, EV/EBITDA
get_valuation_multiplesP/E, P/B, P/S, P/CF, EV multiples (last/avg/high/low)
get_per_share_dataEPS, revenue, EBITDA, book value, cash flow per share

Reference Data

ToolDescription
list_exchangesAll stock exchanges with ticker counts
list_sectorsAll market sectors with ticker counts
list_industriesAll industries with ticker counts
list_countriesAll countries with ticker counts

Example Usage

Once connected, you can ask your AI assistant questions in natural language. Here are some examples:

Company Research

Tell me about Apple's business — what do they do, who's the CEO,
and how many employees do they have?

The assistant will use get_company_profile to fetch Apple's full profile and summarize it for you.

Financial Analysis

Compare Microsoft and Google's profitability over the last 3 years.
Show me their margins and ROE.

The assistant will call get_profitability_ratios for both companies and present a comparison.

Earnings Analysis

What did Apple's management say about AI in their latest earnings call?

The assistant will use get_latest_earnings_call to fetch the transcript and extract the relevant sections.

Valuation Check

Is Tesla overvalued? Show me its P/E ratio, EV/EBITDA, and
price-to-sales compared to the last 5 years.

The assistant will call get_valuation_multiples with historical data and analyze the trends.

Show me Amazon's stock price performance for January 2025.

The assistant will use get_stock_prices with date filters and present the daily price data.

Screening & Discovery

Which sectors have the most publicly traded companies?

The assistant will use list_sectors to fetch the breakdown and present it.

Troubleshooting

"Invalid or expired token"

Your access token may have expired. Remove the MCP server and re-add it to trigger a fresh authentication:

# Claude Code
claude mcp remove roicai
claude mcp add --transport http roicai https://mcp.roic.ai/mcp

For VS Code: remove the server entry in MCP settings and add it again.

"Premium subscription required"

You see this message when querying companies other than Apple (AAPL) without an active Professional plan. Visit roic.ai/pricing to subscribe.

Connection Issues

  1. Verify the server is reachable: visit https://mcp.roic.ai/health in your browser
  2. Make sure you're using the full URL: https://mcp.roic.ai/mcp
  3. Check that your AI client supports HTTP transport for MCP

Next Steps