cherry_studio_config.json2.73 kB
{
"mcpServers": {
"stock-analyzer": {
"command": "python",
"args": ["start_server.py"],
"cwd": ".",
"env": {},
"description": "股票分析MCP工具 - 提供实时行情、历史数据、技术指标、市场情绪等功能",
"disabled": false,
"alwaysAllow": [],
"settings": {
"timeout": 30000,
"retries": 3,
"cache": true
}
}
},
"tools": [
{
"name": "get_stock_realtime_data",
"description": "获取股票实时行情数据",
"parameters": {
"symbol": {
"type": "string",
"description": "股票代码,如 '000001'"
}
}
},
{
"name": "get_stock_history_data",
"description": "获取股票历史数据",
"parameters": {
"symbol": {
"type": "string",
"description": "股票代码"
},
"period": {
"type": "string",
"description": "数据周期 ('daily', 'weekly', 'monthly')",
"default": "daily"
},
"start_date": {
"type": "string",
"description": "开始日期 (YYYYMMDD格式)",
"default": ""
},
"end_date": {
"type": "string",
"description": "结束日期 (YYYYMMDD格式)",
"default": ""
}
}
},
{
"name": "calculate_technical_indicators",
"description": "计算技术指标",
"parameters": {
"symbol": {
"type": "string",
"description": "股票代码"
},
"indicators": {
"type": "array",
"description": "指标列表 ['ma', 'macd', 'rsi', 'boll', 'kdj']",
"default": ["ma", "macd", "rsi"]
}
}
},
{
"name": "get_market_sentiment",
"description": "获取市场情绪分析",
"parameters": {
"symbol": {
"type": "string",
"description": "股票代码,为空时获取整体市场情绪",
"default": ""
}
}
},
{
"name": "search_stock_info",
"description": "搜索股票信息",
"parameters": {
"keyword": {
"type": "string",
"description": "搜索关键词(股票名称或代码)"
}
}
},
{
"name": "get_stock_news",
"description": "获取股票相关新闻",
"parameters": {
"symbol": {
"type": "string",
"description": "股票代码,为空时获取市场新闻",
"default": ""
},
"limit": {
"type": "integer",
"description": "新闻数量限制",
"default": 10
}
}
}
]
}