Back to Home
huweihua123 icon

stock-mcp

Verified Safe

by huweihua123

Overview

A financial data and analysis server providing specialized tools for AI agents via Model Context Protocol (MCP) and RESTful API.

Installation

Run Command
python -m uvicorn src.server.app:app --host 0.0.0.0 --port 9898

Environment 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

Stats

Interest Score54
Security Score7
Cost ClassMedium
Avg Tokens400
Stars36
Forks8
Last Update2025-12-01

Tags

Financial DataAI Agent ToolsMarket AnalysisMulti-Source DataTechnical Analysis