loading…
Search for a command to run...
loading…
An MCP server that provides real-time stock data, technical indicators, and financial metrics using the date.590.net data source. It enables AI-powered intellig
An MCP server that provides real-time stock data, technical indicators, and financial metrics using the date.590.net data source. It enables AI-powered intelligent analysis and batch reporting through integration with the Deepseek API.
基于 date.590.net 数据源的股票分析 MCP 服务,支持 AI 智能分析。
| 工具 | 功能 |
|---|---|
analyze_stock |
获取股票完整分析报告(支持AI分析) |
get_raw_stock_data |
获取股票原始数据 |
quick_analysis |
快速股票点评 |
batch_analyze |
批量分析多只股票 |
# Windows
install.bat
# Linux/Mac
./install.sh
编辑 config.json,填入 Deepseek API Key:
{
"ai": {
"enabled": true,
"api_key": "your-deepseek-api-key"
}
}
# Windows
start.bat
# Linux/Mac
./start.sh
编辑 claude_desktop_config.json:
{
"mcpServers": {
"stock-analyzer": {
"command": "D:\\ai\\stock-analysis-mcp\\venv\\Scripts\\python.exe",
"args": ["D:\\ai\\stock-analysis-mcp\\server.py"]
}
}
}
用户:分析一下福建金森
AI:我来获取福建金森的完整分析报告...
[调用 analyze_stock("002679")]
用户:看看贵州茅台怎么样
AI:[调用 quick_analysis("600519")]
用户:对比一下这几只股票:002679, 600519, 000001
AI:[调用 batch_analyze("002679,600519,000001")]
用户:获取福建金森的原始数据,我自己分析
AI:[调用 get_raw_stock_data("002679")]
# 1. 上传代码到服务器
scp -r stock-analysis-mcp [email protected]:/www/wwwroot/
# 2. SSH登录服务器安装
ssh [email protected]
cd /www/wwwroot/stock-analysis-mcp
./install.sh
# 3. 配置API Key
vi config.json
# 4. 测试启动
./start.sh
配置 Nginx 反向代理:
server {
listen 80;
server_name mcp.590.net;
location / {
proxy_pass http://127.0.0.1:8080;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
}
创建服务文件 /etc/systemd/system/stock-mcp.service:
[Unit]
Description=Stock Analysis MCP Server
After=network.target
[Service]
Type=simple
User=root
WorkingDirectory=/www/wwwroot/stock-analysis-mcp
ExecStart=/www/wwwroot/stock-analysis-mcp/venv/bin/python server.py
Restart=always
RestartSec=10
[Install]
WantedBy=multi-user.target
启动服务:
systemctl daemon-reload
systemctl enable stock-mcp
systemctl start stock-mcp
systemctl status stock-mcp
stock-analysis-mcp/
├── server.py # MCP服务器主代码
├── config.json # 配置文件
├── requirements.txt # Python依赖
├── install.bat # Windows安装脚本
├── install.sh # Linux安装脚本
├── start.bat # Windows启动脚本
├── start.sh # Linux启动脚本
├── logs/ # 日志目录
└── README.md # 使用文档
Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"stock-analysis-mcp-server": {
"command": "npx",
"args": []
}
}
}