Financial Data MCP Server

A Model Context Protocol (MCP) server that provides AI assistants with real-time financial market data through Yahoo Finance.

Local serverstdioPython

What is the Financial Data MCP server?

Financial Data becomes available to MCP clients through the financial data mcp server. A Model Context Protocol (MCP) server that provides AI assistants with real-time financial market data through Yahoo Finance.

What Financial Data does

A Model Context Protocol (MCP) server that provides AI assistants with real-time financial market data through Yahoo Finance.

Key capabilities

  • Stock Data — Current prices, historical data, market metrics
  • Options — Options chains with strikes, prices, and volume
  • Technical Analysis — Moving averages, RSI, Sharpe ratio
  • Comparisons — Compare multiple stocks across metrics
  • News — Get recent company news headlines
  • Dividends — Get dividend history for a stock

Tools it exposes

Once connected, the assistant can call these 2 tools directly:

  • Comparison — The Comparison tool exposed by this server
  • Utility — The Utility tool exposed by this server

Installing the financial data mcp server

The server is distributed via PyPI as yfinance, so most clients can run it without a manual build step. Add it to your MCP client's configuration and restart the client to pick it up — the copy-paste configs for Claude Desktop, Claude Code and Cursor are on this page.

Configuration

The server reads one environment variable: PYTHONUNBUFFERED. Keep credentials in your client's env block or a secrets manager rather than committing them.

Where it fits

Developer-tool servers are usually the first ones people connect, because they turn "help me with this code" into an assistant that can actually read the repo and act on it. Financial Data sits in that group, and the shape of its toolset — Comparison, Utility — tells you what it is really for. Worth comparing against the other developer tools servers in this directory before you commit to one, since several overlap in scope but differ sharply in setup cost and permissions.

Practical notes

  • This server runs locally, so it operates with whatever access your machine and its credentials already have. Scope that deliberately rather than by default.
  • Maintained by Samarth2001, written in Python.
  • MCP clients ask for confirmation before each tool call by default. Keep that on while you learn what the financial data mcp server actually does with your data.
  • Every entry in this directory is reviewed by hand before it goes live, and details are checked against the project's own documentation.

Available tools

ToolWhat it does
ComparisonThe Comparison tool exposed by this server.
UtilityThe Utility tool exposed by this server.

How to install the Financial Data MCP server

{
  "mcpServers": {
    "financial-data": {
      "command": "uvx",
      "args": ["yfinance"],
      "env": {
        "PYTHONUNBUFFERED": "your-value"
      }
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

VariableDescriptionRequired
PYTHONUNBUFFEREDConfiguration value read at startup.Optional

Example prompts to try

  • Use Financial Data to Comparison.
  • Use Financial Data to Utility.

Frequently asked questions

It connects Financial Data to MCP-compatible AI assistants such as Claude and Cursor, exposing 2 tools (Comparison, Utility) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Financial Data directly.