Skip to main content
Glama

Stock Analysis MCP Server

config.py1.43 kB
""" 配置文件 """ # MCP服务器配置 MCP_SERVER_CONFIG = { "name": "股票分析工具", "version": "1.0.0", "description": "基于AKShare API的股票分析MCP工具", "author": "CodeBuddy", "license": "MIT" } # 缓存配置 CACHE_CONFIG = { "timeout": 300, # 缓存超时时间(秒) "max_size": 1000, # 最大缓存条目数 "enable": True # 是否启用缓存 } # 数据限制配置 DATA_LIMITS = { "history_max_records": 100, # 历史数据最大返回条数 "news_max_records": 20, # 新闻最大返回条数 "search_max_results": 10, # 搜索结果最大返回数 "news_content_max_length": 200 # 新闻内容最大长度 } # AKShare API配置 AKSHARE_CONFIG = { "timeout": 30, # API请求超时时间 "retry_times": 3, # 重试次数 "retry_delay": 1 # 重试延迟(秒) } # 日志配置 LOGGING_CONFIG = { "level": "INFO", "format": "%(asctime)s - %(name)s - %(levelname)s - %(message)s", "file": "stock_mcp.log" } # 支持的技术指标 SUPPORTED_INDICATORS = { "ma": "移动平均线", "macd": "MACD指标", "rsi": "相对强弱指标", "boll": "布林带", "kdj": "KDJ指标" } # 股票代码格式配置 STOCK_CODE_CONFIG = { "sh_prefix": ["60", "68", "90"], # 上海交易所前缀 "sz_prefix": ["00", "30", "20"], # 深圳交易所前缀 "code_length": 6 # 股票代码长度 }

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/jwangkun/stock_mcp'

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