MCP-Server-Financial-Analyzer

MCP-Server-Financial-Analyzer

Provides AI assistants with real-time stock prices, financial statements, SEC filings, and analytical tools like DCF valuation and ratio analysis.

Category
Visit Server

README

MCP Server – Financial Analyzer

An MCP (Model Context Protocol) server that gives AI assistants access to real-time stock prices, financial statements, SEC filings, and analytical tools.

Built with FastMCP, powered by yfinance and edgartools.


Tools

Stock Prices

Tool Description
get_stock_price Current price, volume, 52-week range, market cap
get_price_history OHLCV history with configurable period and interval
get_stock_info Company profile, sector, employees, ownership

Fundamentals

Tool Description
get_income_statement Revenue, gross profit, EBITDA, net income, EPS
get_balance_sheet Assets, liabilities, equity, debt
get_cash_flow Operating, investing, financing, free cash flow
get_earnings_history EPS estimates vs actuals and surprise %

SEC Filings

Tool Description
search_sec_filings List 10-K, 10-Q, 8-K, and other filings
get_filing_sections Retrieve full text of specific sections (business, risk_factors, mda)
get_company_facts EDGAR CIK, registered tickers, TTM financials from XBRL

Analysis

Tool Description
calculate_financial_ratios P/E, P/B, EV/EBITDA, ROE, ROA, margins, leverage ratios
analyze_trends YoY growth trends for any financial line item
compare_stocks Side-by-side comparison of multiple tickers on any metric
dcf_estimate Simplified DCF intrinsic value with margin of safety

Resources

URI Description
market://overview Major US indices (S&P 500, NASDAQ, Dow, VIX, 10Y Treasury)
market://sectors Daily performance of 11 GICS sectors via SPDR ETFs

Quickstart (local / stdio)

# 1. Clone and install
git clone https://github.com/YOUR_USERNAME/MCP-Server-Financial-Analyzer.git
cd MCP-Server-Financial-Analyzer
pip install uv
uv sync

# 2. Configure environment
cp .env.example .env
# Edit .env — set EDGAR_IDENTITY to "Your Name your@email.com"

# 3. Run (stdio mode for local use)
uv run financial-analyzer

Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "financial-analyzer": {
      "command": "uv",
      "args": ["run", "--directory", "/path/to/MCP-Server-Financial-Analyzer", "financial-analyzer"],
      "env": {
        "EDGAR_IDENTITY": "Your Name your@email.com"
      }
    }
  }
}

VS Code (Copilot)

Add to .vscode/mcp.json or user settings:

{
  "servers": {
    "financial-analyzer": {
      "type": "stdio",
      "command": "uv",
      "args": ["run", "--directory", "/path/to/MCP-Server-Financial-Analyzer", "financial-analyzer"],
      "env": {
        "EDGAR_IDENTITY": "Your Name your@email.com"
      }
    }
  }
}

Deploy to Render

This repo includes a render.yaml for one-click deployment.

  1. Push to GitHub
  2. Go to render.comNew → Blueprint → connect your repo
  3. Set EDGAR_IDENTITY to your real name and email in the Render dashboard
  4. Deploy — your MCP endpoint will be at https://<service-name>.onrender.com/mcp

Connect remote clients to the deployed server

{
  "mcpServers": {
    "financial-analyzer": {
      "type": "http",
      "url": "https://<service-name>.onrender.com/mcp",
      "headers": {
        "Authorization": "Bearer <MCP_AUTH_TOKEN>"
      }
    }
  }
}

The MCP_AUTH_TOKEN is auto-generated by Render and visible in your service's environment variables.


Environment Variables

Variable Required Default Description
EDGAR_IDENTITY Yes "Name email" per SEC fair-use policy
TRANSPORT No stdio stdio for local, streamable-http for cloud
HOST No 0.0.0.0 Bind address (HTTP mode only)
PORT No 8000 Port (HTTP mode only)
MCP_AUTH_TOKEN No Bearer token to protect the HTTP endpoint

Disclaimer

This server provides financial data for informational and educational purposes only. It is not financial advice. Always verify data from authoritative sources before making investment decisions.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured