finance-mcp
by esurovtsev
README.md
# 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
```bash
# 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
```bash
uv pip install finance-mcp
```
## Usage
### Running the Server Directly
```bash
finance-mcp
```
### Configuration with Claude Desktop or other MCP clients
Add this to your MCP configuration file (e.g., `claude_desktop_config.json`):
```json
{
"mcpServers": {
"finance-mcp": {
"command": "uv",
"args": [
"--directory",
"/absolute/path/to/mcp-finance-server-py", // Update this path
"run",
"finance-mcp"
]
}
}
}
```
## Video Walkthrough
[](https://www.youtube.com/watch?v=YNe5aYutEPU)
**[Watch: Build Your Own MCP Server: Practical Guide with Python SDK and Cursor IDE](https://www.youtube.com/watch?v=YNe5aYutEPU)**
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.
TDQS
B3.2/5.0
Scored across 2 tools
Disambiguation5/5
Each tool serves a distinct purpose: one converts company names to stock symbols, the other fetches stock data given a symbol. No overlap in functionality.
Naming Consistency5/5
Both tools follow a consistent verb_noun pattern with snake_case: 'fetch_stock_data' and 'lookup_stock_symbol', making them predictable and easy to understand.
Tool Count3/5
With only 2 tools, the set feels thin for a finance server. While the two tools are essential, the count is borderline low, lacking additional common operations.
Completeness2/5
The server covers only basic stock data retrieval and symbol lookup. Many common finance operations (e.g., financial statements, market indices, historical comparisons) are missing, posing significant gaps for agents.
Maintenance
ActivityInactive
ResponsivenessNo issues