mcp-finance

mcp-finance

Provides financial data tools like stock price, company info, historical data, news, and market indices using yfinance and MarketAux API.

Category
Visit Server

README

Introduction

This is a MCP server that helps your MCP client/LLM get access to financial data like stock price, company info, and company news. It is powered by the yfinance Python library and MarketAux API.

Tools available:

  1. Get Stock Price: Fetch the latest stock price for a symbol.
  2. Get Company Info: Fetch basic company info(Name, Sector, Industry, Website, Business Summary)
  3. Get Historical Data: Fetch historical data for a stock
  4. Get Stock News: Fetch latest news related to a stock symbol
  5. Get Market Indices: Fetch the latest data for major US market indices.

Setup your environment

1. Installing uv

For MacOS/Linux

curl -LsSf https://astral.sh/uv/install.sh | sh

For Windows

powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"

Make sure to restart your terminal afterwards to ensure that the uv command gets picked up.

2. Setting up the server

Now, let’s create and set up our project:

Cloning the repo

git clone git@github.com:nimitmk7/mcp-finance.git

Set up environment variables:

# Create .env file for your API keys
cp .env.example .env

# Set API key in .env
MARKETAUX_API_KEY=your-marketaux-api-key

Adding the server to Claude Client

If you are using Claude Desktop Client, you can go to Settings -> Developer, and press on the button 'Edit Config'. It will open claude_desktop_config.json. Put the following configuration with your relevant details in the file:

For Mac Users

{
 "mcpServers": { 
   "mcp-finance": {
     "command": "/Users/<username>/.local/bin/uv", 
     "args": [
               "--directory",
               "/Users/<username>/<path-to-dir>/mcp-finance",
               "run",
               "mcp_finance.py"
           ]
   }
 }
}

For Windows users

{
  "mcpServers": { 
    "mcp-finance": {
      "command": "C:\\Users\\<username>\\.local\\bin\\uv.exe", 
      "args": [
                "--directory",
                "C:\\Users\\<username>\\<path-to-dir>\\mcp-finance",
                "run",
                "mcp_finance.py"
            ]
    }
  }
}

If you already have some MCP servers, just add the mcp-finance config in the list of configs of MCP servers. Restart the Claude Desktop client after these steps.

3. Verify the setup

  1. In the UI, click on the hammer icon and check whether our server tools are present in the list of available tools.

4. Example Usage

Try asking Claude questions like:

  • "What is the price of Nvidia stock right now"
  • "How much has the share price of Google changed over 1 month "
  • "Get me latest news for Microsoft"

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