MCP ExplorerExplorer

Mcp Finance Server Py

@esurovtsevon 10 months ago
3 MIT
FreeCommunity
AI Systems
A minimal MCP server built with Python that exposes two example tools: one to convert a company name into a stock symbol, and another to fetch financial data from Yahoo Finance. The project focuses on learning how to build and run an MCP server—using a simple financial scenario purely as a demo use case.

Overview

What is Mcp Finance Server Py

mcp-finance-server-py is a minimal MCP server built with Python that provides two tools: one for converting company names into stock symbols and another for fetching financial data from Yahoo Finance. It serves as a learning platform for building and running an MCP server using a simple financial scenario as a demonstration.

Use cases

Use cases include converting a company’s name to its corresponding stock symbol for investment analysis, fetching real-time financial data for market research, and serving as a foundational project for developers learning to create MCP servers.

How to use

To use mcp-finance-server-py, clone the repository and install it in development mode using ‘pip install -e .’ for development or ‘pip install finance-mcp’ for production. Run the server directly with the command ‘finance-mcp’ or configure it with MCP clients like Claude Desktop by adding the appropriate settings in the configuration file.

Key features

Key features include the ability to convert company names to stock symbols and retrieve financial data from Yahoo Finance. The server is designed to be minimalistic, focusing on educational purposes and demonstrating the functionality of an MCP server.

Where to use

mcp-finance-server-py can be used in financial applications, educational environments for learning about MCP servers, and by developers who want to integrate financial data retrieval into their projects.

Content

Finance MCP Server

A minimal MCP server built with Python that exposes two example tools: one to convert a company name into a stock symbol, and another to fetch financial data from Yahoo Finance. The project focuses on learning how to build and run an MCP server—using a simple financial scenario purely as a demo use case.

Installation

Development Installation

# Clone the repository
git clone https://github.com/yourusername/mcp-finance-server-py.git
cd mcp-finance-server-py

# Install in development mode
uv pip install -e .

Production Installation

uv pip install finance-mcp

Usage

Running the Server Directly

finance-mcp

Configuration with Claude Desktop or other MCP clients

Add this to your MCP configuration file (e.g., claude_desktop_config.json):

Video Walkthrough

Build Your Own MCP Server: Practical Guide with Python SDK and Cursor IDE

Watch: Build Your Own MCP Server: Practical Guide with Python SDK and Cursor IDE

This video provides context and explanations that complement the code in this repository:

  • See the MCP server in action with a practical demonstration in Cursor IDE
  • Understand the design decisions behind the implementation
  • Learn how the different components work together
  • Get insights into how AI models discover and interact with custom tools

If you’re looking to understand not just the “what” but the “why” behind this MCP implementation, the video offers a guided tour through the development process and explains the reasoning behind key architectural choices.

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers