Skip to main content
Glama

Stock MCP Server

by huweihua123
.env.example2.03 kB
# ============================================ # Stock MCP Server - 环境变量配置 # ============================================ # 使用方法: cp .env.example .env 然后填写你的配置 # ============================================ # ==================== 必需配置 ==================== # Tushare Token (获取 A股数据) # 申请: https://tushare.pro/register TUSHARE_TOKEN=your_tushare_token_here # ==================== 代理配置 (访问美股数据时需要) ==================== # Docker 环境 - 使用 host.docker.internal 访问宿主机代理 HTTP_PROXY=http://host.docker.internal:7890 HTTPS_PROXY=http://host.docker.internal:7890 YFINANCE_PROXY=http://host.docker.internal:7890 # 本地运行 - 使用 127.0.0.1 # HTTP_PROXY=http://127.0.0.1:7890 # HTTPS_PROXY=http://127.0.0.1:7890 # 不需要代理 - 留空即可 # HTTP_PROXY= # HTTPS_PROXY= # ==================== 可选 API Keys ==================== # AI 搜索和研究 (https://tavily.com) TAVILY_API_KEY= # 英文新闻 (https://newsapi.org) NEWS_API_KEY= # 美股财经数据 (https://finnhub.io) FINNHUB_API_KEY= # ==================== Redis 配置 ==================== # Docker 环境 (默认配置) REDIS_HOST=redis REDIS_PORT=6379 # 本地运行时配置 # REDIS_HOST=localhost # REDIS_PORT=6380 # ==================== 服务配置 ==================== HOST=0.0.0.0 HTTP_PORT=9998 MCP_PORT=9999 LOG_LEVEL=INFO # ==================== 缓存配置 ==================== CACHE_TTL=3600 # 1小时 MARKET_CACHE_TTL=86400 # 24小时 # ============================================ # 快速配置示例 # ============================================ # # 🐳 Docker + 代理: # HTTP_PROXY=http://host.docker.internal:7890 # TUSHARE_TOKEN=your_token # REDIS_HOST=redis # # 🐳 Docker 无代理: # HTTP_PROXY= # TUSHARE_TOKEN=your_token # REDIS_HOST=redis # # 💻 本地运行: # HTTP_PROXY=http://127.0.0.1:7890 # TUSHARE_TOKEN=your_token # REDIS_HOST=localhost # ============================================

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/huweihua123/stock-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server