Back to Home
AndreChuabio icon

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

Run Command
npm start

Environment 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

Stats

Interest Score0
Security Score3
Cost ClassHigh
Avg Tokens1500
Stars0
Forks0
Last Update2026-01-08

Tags

Financial AnalysisSentiment AnalysisStock DataPaper TradingAI