Skip to main content
Glama

Stock Analysis MCP Server

启动服务器.md1.73 kB
# 股票分析SSE服务器启动指南 ## 🚀 服务器配置 **新的服务器地址**: http://localhost:8001/sse ## 📋 启动步骤 1. **安装依赖**: ```bash pip install -r requirements_sse.txt ``` 2. **启动服务器**: ```bash python sse_server.py ``` 3. **验证服务**: ```bash python test_sse_api.py ``` ## 🔧 CherryStudio配置 使用配置文件:`cherry_studio_sse_config.json` **基础URL**: `http://localhost:8001/sse` ## 📊 可用端点 - **API文档**: http://localhost:8001/sse/api/tools - **实时行情**: http://localhost:8001/sse/api/stock/realtime - **历史数据**: http://localhost:8001/sse/api/stock/history - **技术指标**: http://localhost:8001/sse/api/stock/indicators - **市场情绪**: http://localhost:8001/sse/api/market/sentiment - **股票搜索**: http://localhost:8001/sse/api/stock/search - **股票新闻**: http://localhost:8001/sse/api/stock/news ## 🔄 SSE实时流 - **实时行情流**: http://localhost:8001/sse/sse/stock/realtime - **市场情绪流**: http://localhost:8001/sse/sse/market/sentiment ## ✅ 服务器状态 服务器已配置为在端口8001上运行,所有API都挂载在 `/sse` 路径下。 ## 🎯 在CherryStudio中使用 1. 打开CherryStudio 2. 添加自定义工具 3. 设置基础URL: `http://localhost:8001/sse` 4. 导入 `cherry_studio_sse_config.json` 配置 5. 开始使用股票分析功能 ## 🔍 测试命令 ```bash # 测试服务器连接 curl http://localhost:8001/sse/ # 测试实时行情 curl "http://localhost:8001/sse/api/stock/realtime?symbol=000001" # 测试工具列表 curl http://localhost:8001/sse/api/tools ``` --- 🎉 **股票分析SSE工具已准备就绪,可在CherryStudio中使用!**

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