loading…
Search for a command to run...
loading…
A minimal MCP server that converts company names to stock symbols and fetches financial data from Yahoo Finance using two example tools.
A minimal MCP server that converts company names to stock symbols and fetches financial data from Yahoo Finance using two example tools.
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.
# 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 .
uv pip install finance-mcp
finance-mcp
Add this to your MCP configuration file (e.g., claude_desktop_config.json):
{
"mcpServers": {
"finance-mcp": {
"command": "uv",
"args": [
"--directory",
"/absolute/path/to/mcp-finance-server-py", // Update this path
"run",
"finance-mcp"
]
}
}
}
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:
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.
Выполни в терминале:
claude mcp add finance-mcp -- npx Безопасность
Низкий рискАвтоматическая эвристика по публичным данным — не гарантия безопасности.