Financial Data MCP Server

ROIC.ai is a financial data MCP server and stock market MCP server for AI assistants. It connects Claude, ChatGPT, Cursor, VS Code Copilot, and OpenAI Codex to real-time stock prices, financial statements, earnings call transcripts, fundamentals, ratios, and valuation multiples for 60,000+ public companies, all over the Model Context Protocol (MCP). One server gives your assistant MCP for financial statements, MCP for earnings, and MCP for fundamentals: ask questions in natural language and it queries the live stock-market data on demand. As a finance MCP server it spans a single income-statement line to a full ratio history, and as a stock price MCP server it returns real-time and historical OHLCV prices.

What is MCP?

The Model Context Protocol (MCP) is an open standard that lets AI assistants connect to external data sources and tools. Instead of copying and pasting numbers, your AI assistant queries this financial data MCP server directly, fetching company profiles, financial statements, earnings transcripts, stock prices, fundamentals, and ratios on demand.

Server URL

https://mcp.roic.ai/mcp

Plans & Limits

Every plan can use all MCP tools across all public companies. Plans differ only by rate limit and how far back history goes.

PlanRequests / minuteHistory
Free52 years
Individual3005 years
ProfessionalUnlimitedAll available
EnterpriseUnlimitedAll available

See all plans and pricing for the full feature comparison.

Installation

ChatGPT

Step-by-step instructions to install and use the ROIC.ai MCP in ChatGPT.

Phase 1: Setup and Configuration

  1. Open Settings: In the bottom-left corner of the ChatGPT interface, click your profile name/icon and select Settings.
ChatGPT — open settings menu
  1. Enable Developer Mode:
    • Navigate to the Apps tab in the left sidebar.
    • Click Advanced settings.
    • Toggle Developer mode to the ON position.
ChatGPT — Advanced settings ChatGPT — enable developer mode
  1. Create a New App: Click Create to open the New App configuration window.
ChatGPT — create a new app
  1. Fill in the App Details: In the New App window, enter:
    • Name: Roic AI
    • Description: (Optional) leave blank or type "Roic AI".
    • Connection: make sure the Server URL option is selected.
    • URL: enter exactly https://mcp.roic.ai/mcp
ChatGPT — fill in the new app details
  1. Acknowledge and Create: Scroll down, check the box "I understand and want to continue" to accept the custom MCP server warning, and click Create.

Phase 2: Authentication

  1. Sign In: A modal appears asking to "Add Roic AI to ChatGPT." Click Sign in with Roic AI.
ChatGPT — sign in with Roic AI
  1. Authorize: A new browser tab opens to handle authentication with Roic AI. Once complete, it redirects you back to ChatGPT automatically.

  2. Confirmation: A green notification at the top confirms "Roic AI is now connected." You can safely close the settings menu.


Phase 3: Using Roic AI in Chat

  1. Attach the Tool: Open a new chat. Next to the message input box, click the + (Add) icon.

  2. Select Roic AI: Hover over More, then select Roic AI from the list of available tools.

ChatGPT — select Roic AI tool
  1. Prompt: Type your financial query (e.g., "give me the summary of microsoft income statement 2024 using roic") and press send. ChatGPT will use the Roic AI tool to fetch and format the data.

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

Phase 1: Accessing Connectors

  1. Open Claude and log into your account.
  2. In the bottom-left corner, click your profile name/icon to open the menu.
  3. Select Customize.
  4. In the Customize menu, select Connectors from the left-hand sidebar.
  5. Click Add custom connector (or the + icon if you already have connectors).
Claude — open settings menu

Phase 2: Configuring the Connector

  1. A modal titled "Add custom connector BETA" appears. Fill in the details:
    • Name: enter "Roic AI" (or a name of your choice).
    • Remote MCP server URL: enter exactly https://mcp.roic.ai/mcp
  2. Click the Add button.
  3. Claude performs a "Checking connection..." step.
Claude — add custom connector

Phase 3: Authentication and Permissions

  1. Once the connection is checked, click the Connect button below the Roic AI icon.
Claude — connect to Roic AI
  1. A browser window opens asking to "Authorize Application" for Roic AI. Click Allow.
Claude — authorize Roic AI
  1. You are redirected back to the Connectors page in Claude, which should now show a green checkmark and "Connected to Roic AI".
  2. Review the Tool permissions listed. By default it may be set to "Needs approval." You can change this (e.g., to "Always allow") depending on how you want Claude to access the tools.
Claude — tool permissions for Roic AI

Phase 4: Using the Integration

  1. Start a New chat in Claude.
  2. Ensure the connector is active (you may need to click the + icon in the chat bar and verify the connector is selected).
  3. Type your query, such as "microsoft company profile".
  4. Claude processes your request using the integrated Roic AI tools to fetch the relevant financial data.

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"
    }
  }
}

Self-Hosted (Open Source)

Prefer to self-host? The server is open source on GitHub at roicai/mcp-server and runs with one command:

ROIC_API_KEY=your_key npx @roicai/mcp-server

This option runs locally over stdio and authenticates with a REST API key instead of OAuth, so it works with any MCP client and is easy to run in scripts and CI.

Add it to Claude Desktop, Cursor, or any client that takes a command-based MCP server:

{
  "mcpServers": {
    "roicai": {
      "command": "npx",
      "args": ["-y", "@roicai/mcp-server"],
      "env": { "ROIC_API_KEY": "your_key" }
    }
  }
}

Get a free API key from your ROIC.ai dashboard, then star the repo to follow updates: github.com/roicai/mcp-server.

Available Tools

The MCP server provides 25 read-only 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_tickersList stock tickers with listing status, filterable by listed
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.

"Rate limit exceeded"

You see a 429 Too Many Requests error when you exceed your plan's per-minute request limit (5/min on the free tier). Wait for the window to reset, or upgrade your plan for a higher limit.

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