mcp-yfinance-server
by AndreChuabio
Overview
A comprehensive financial analysis suite providing real-time sentiment analysis, stock data, and paper trading functionality, designed for integration with Model Context Protocol (MCP) clients like Claude Desktop.
Installation
npm startEnvironment Variables
- PORT
- CACHE_TTL
- GEMINI_API_KEY
- REDDIT_CLIENT_ID
- REDDIT_CLIENT_SECRET
- ALPHA_VANTAGE_API_KEY
- NEWS_API_KEY
- paper_API_KEY
- paper_account_ID
- paper_portfolio_ID
- MONGODB_URI
- MONGODB_DATABASE
Security Notes
The provided `claude_desktop_config.json` file, listed as part of the source code for analysis, contains hardcoded Paper Invest API credentials (`paper_API_KEY`, `paper_account_ID`, `paper_portfolio_ID`). While the server code itself loads these from environment variables (a better practice), the inclusion of actual credentials in a configuration file within a repository is a severe security risk. Sharing or committing such a file would expose sensitive API keys, making it unsafe. Reliance on multiple external APIs (Google Gemini, Alpha Vantage, NewsAPI, Reddit, Paper Invest, yfinance, MongoDB) increases the overall attack surface, though API key management via `.env` helps mitigate this if secrets are not hardcoded elsewhere.
Similar Servers
maverick-mcp
Personalized stock analysis, technical indicators, and portfolio optimization via Claude Desktop.
mcp-aktools
This MCP server provides real-time and historical financial data for stocks and cryptocurrencies, offering search, detailed information retrieval, market overviews, news, and analysis capabilities.
finance-trading-ai-agents-mcp
A specialized MCP server for financial analysis and quantitative trading, designed to deploy local financial MCP services with a departmental architecture for LLM integration and algorithmic trading.
alpha_vantage_mcp
Enables LLMs and agentic workflows to seamlessly interact with real-time and historical stock market data through the Model Context Protocol (MCP).