stock-mcp
Verified Safeby huweihua123
Overview
A financial data and analysis server providing specialized tools for AI agents via Model Context Protocol (MCP) and RESTful API.
Installation
python -m uvicorn src.server.app:app --host 0.0.0.0 --port 9898Environment Variables
- TUSHARE_TOKEN
- FINNHUB_API_KEY
- DASHSCOPE_API_KEY
- REDIS_HOST
- REDIS_PORT
- REDIS_DB
- REDIS_PASSWORD
- MCP_HOST
- MCP_PORT
- MINIO_ENDPOINT
- MINIO_ACCESS_KEY
- MINIO_SECRET_KEY
- MINIO_BUCKET
- MINIO_SECURE
- BAOSTOCK_ENABLED
- ALPHA_VANTAGE_API_KEY
- NEWS_API_KEY
- TAVILY_API_KEY
- GOOGLE_API_KEY
- OPENROUTER_API_KEY
- WEB_SEARCH_PROVIDER
- PROXY_HOST
- PROXY_PORT
- PROXY_ENABLED
- CORS_ORIGINS
- MCP_TRANSPORT
Security Notes
Default MinIO credentials (`minioadmin`) in `MinioClient` are weak and should be changed for production. The `CORSMiddleware` is configured with `allow_origins=["*"]`, which is insecure for production and should be restricted. `NewsService` makes external LLM calls (Google Gemini) if configured, incurring token costs and relying on external service security. No direct `eval` or `exec` vulnerabilities observed.
Similar Servers
maverick-mcp
Personal-use FastMCP server for professional-grade financial data analysis, technical indicators, and portfolio optimization tools integrated with Claude Desktop.
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.
Financial-Modeling-Prep-MCP-Server
Enables AI assistants to fetch and analyze comprehensive financial market data, company fundamentals, and economic indicators from Financial Modeling Prep.
akshare-one-mcp
This MCP server provides comprehensive access to China's stock market data, including historical, real-time, news, financial statements, and technical analysis indicators.