Finance MCP Server

Finance MCP Server

Provides real-time financial data from Yahoo Finance to Large Language Models through the Model Context Protocol, enabling AI models to access stock prices, historical data, and company information.

Category
Visit Server

README

Finance_mcp-server

A Model Context Protocol (MCP) server that provides real-time financial data to Large Language Models through Yahoo Finance.

This project creates an MCP server that allows AI models like Claude to access real-time stock and financial data through the Yahoo Finance API. The server implements the Model Context Protocol standard, enabling seamless integration with various MCP clients including Claude Desktop, Cursor, Winds AI, and others.

🚀 Features

  • Real-time Stock Price Lookup: Get current prices for any publicly traded company
  • Historical Data Analysis: Retrieve stock performance over custom time periods
  • Company Information: Access detailed company profiles and financial metrics
  • Stock Comparison: Compare multiple stocks based on various metrics
  • Stock Search: Find relevant stocks by company name or keywords
  • Resource Access: Use structured URI schemes for financial data access

📋 Requirements

💻 Installation

  1. Clone this repository:

    git clone https://github.com/dino65-dev/Finance_mcp-server.git
    
  2. Create a virtual environment:

    python -m venv venv
    On Windows: venv\Scripts\activate
    

Create a virtual environment (recommended) for faster creation:

pip install uv
uv venv
On Windows: venv\Scripts\activate
  1. Install dependencies:
    pip install -r requirements.txt
    

🔧 Usage

Running the Server

Start the server by running:

python yfinance_mcp_server.py

The server will run as a stdin/stdout process that communicates via the MCP protocol.

Integrating with MCP Clients

Claude Desktop

  1. Open Claude Desktop
  2. Go to Settings
  3. Add an MCP configuration with:
    {
      "mcpServers": {
        "yfinance": {
          "command": "python",
          "args": [
            "/absolute/path/to/yfinance_mcp_server.py"
          ]
        }
      }
    }
    
  4. Save and restart Claude Desktop

Cursor

  1. Open Cursor and access settings
  2. Navigate to MCP section
  3. Add a new global MCP server with the configuration:
    {
      "yfinance": {
        "command": "python",
        "args": [
          "/absolute/path/to/yfinance_mcp_server.py"
        ]
      }
    }
    
  4. Start a new chat to use the financial tools

📊 Available Tools

The server provides the following tools:

  1. get_stock_price: Get current stock prices

    Example: Get the current price of Apple stock
    
  2. get_historical_data: Retrieve historical price data

    Example: Get the stock history for TSLA over the past 3 months
    
  3. get_stock_metric: Access specific financial metrics

    Example: What is Amazon's market capitalization?
    
  4. compare_stocks: Compare multiple stocks by metrics

    Example: Compare the P/E ratios of Google, Microsoft, and Apple
    
  5. search_stocks: Find stocks by name or keyword

    Example: Find stocks related to artificial intelligence
    

🔍 Resource URIs

Access stock information directly through resource URIs:

  • finance://SYMBOL/info - Get basic information about a stock

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

🙏 Acknowledgements

📞 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

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