varunshah3129/yahoo-finance-mcp-server
3.1
If you are the rightful owner of yahoo-finance-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.
The Yahoo Finance MCP Server provides a comprehensive solution for accessing Yahoo Finance data through a Model Context Protocol (MCP) server, complemented by a React client application.
Tools
5
Resources
0
Prompts
0
Yahoo Finance MCP Server & Client
A complete Yahoo Finance data solution with Model Context Protocol (MCP) server and React client application.
📁 Project Structure
yahoo-finance-mcp-server/
├── yahoo-finance-mcp/ # MCP Server (separate folder)
│ ├── src/ # TypeScript source code
│ ├── dist/ # Compiled JavaScript
│ ├── package.json # MCP server dependencies
│ └── tsconfig.json # TypeScript configuration
├── client-app/ # React Client Application
│ ├── src/ # React source code
│ ├── public/ # Static assets
│ └── package.json # Client dependencies
├── mcp-http-bridge.js # HTTP bridge between client and MCP
└── README.md # This file
🚀 Quick Start
1. Start the MCP Server
cd yahoo-finance-mcp
npm install
npm run build
2. Start the HTTP Bridge
node mcp-http-bridge.js
3. Start the React Client
cd client-app
npm install
npm start
🛠️ Features
MCP Server (yahoo-finance-mcp/)
- 18 Yahoo Finance Tools: Complete API coverage
- 8 Intelligent Prompts: Natural language access
- Real-time Data: Live market data
- TypeScript: Type-safe implementation
React Client (client-app/)
- Dynamic Widgets: 17 different widget types
- Real-time Chat: Interactive financial queries
- Responsive Design: Mobile-friendly interface
- Ant Design: Modern UI components
HTTP Bridge (mcp-http-bridge.js)
- Protocol Translation: HTTP ↔ MCP stdio
- Smart Routing: Intelligent query analysis
- Symbol Extraction: Company name → ticker mapping
- Error Handling: Graceful fallbacks
📊 Supported Queries
- Stock Quotes: "Get quote for AAPL", "Ford stock price"
- Technical Analysis: "Get insights for TSLA"
- Historical Data: "Show chart for MSFT"
- Market Data: "Top 5 trending stocks"
- Company Analysis: "Comprehensive summary for NVDA"
- ETF Data: "Top 5 trending ETFs"
🔧 Configuration
Cursor Integration
Add to your ~/.cursor/mcp.json:
{
"mcpServers": {
"yahoo-finance": {
"command": "node",
"args": ["dist/index.js"],
"cwd": "/path/to/yahoo-finance-mcp"
}
}
}
Standalone Usage
The MCP server can be used independently with any MCP-compatible client.
🤝 Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Test thoroughly
- Submit a pull request
📞 Support
For issues and questions, please open a GitHub issue.