专业的金融市场数据 MCP 服务器 - 支持A股/美股/加密货币,原生 MCP 协议,AI Agent 友好
Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"stock-mcp": {
"command": "<see-readme>",
"args": []
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
No automated test available for this server. Check the GitHub README for setup instructions.
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
No package registry to scan.
Click any tool to inspect its schema.
Be the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in finance
Real-time financial market data: stocks, forex, crypto, commodities, and economic indicators
A Model Context Protocol server for building an investor agent
AI agents get on-chain identity, credentials, reputation, escrow, and persistent memory on XRPL.
Remote MCP server to integrate and validate self-hosted PayRam deployments.
MCP Security Weekly
Get CVE alerts and security updates for Stock Mcp and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
English | 中文
开源金融数据 MCP / HTTP 服务,面向 AI Agent、量化脚本和普通后端集成。
stock-mcp 是一个开源金融数据服务,提供两套对外接口:
MCP:给 Claude Desktop、Cursor、DeerFlow、各类 Agent 使用HTTP API:给普通后端、脚本和服务直接调用它的定位不是“给投资建议”,而是提供:
如果你只是想先把服务跑起来,最短路径就是:
git clone https://github.com/yourusername/stock-mcp.git
cd stock-mcp
cp .env.example .env
docker compose up -d --build
启动后默认可访问:
http://127.0.0.1:9898/healthhttp://127.0.0.1:9898/docshttp://127.0.0.1:9898/mcp默认 Docker 栈会一起启动:
stock-mcpredispostgres默认端口:
stock-mcp: 127.0.0.1:9898postgres: 127.0.0.1:15432说明:
15432 是为了避免占用你本机已有的 5432postgres:5432DOCKER_POSTGRES_PORT 即可code-export HTTP 接口,可直接导出 CSV / JSON 给代码执行型 agent国内源:
TushareAkshareBaostock国外源:
Yahoo / yfinanceFinnhubAlpha VantageTwelve DataFREDCCXTCryptoEDGAR当前 HTTP 路由主要分为这些组:
/api/v1/market/*
/api/v1/fundamental/*
/api/v1/money-flow/*
/api/v1/news/*
/api/v1/filings/*
/api/v1/code-export/*
/health
/docs / /redoc
也就是说,这个项目不是只有 MCP。
如果你不打算接 MCP 客户端,完全可以只把它当普通 HTTP 服务来用。
MCP 侧会把这些能力暴露成 tools,主要对应:
MCP 入口:
POST /mcp适用场景:
+-----------------------------+
| MCP Clients / HTTP Apps |
| Claude / Cursor / Backends |
+--------------+--------------+
|
v
+-----------------------+
| Thin Transports |
| HTTP / MCP / Docs |
+-----------+-----------+
|
v
+-----------------------+
| Runtime |
| auth / proxy / health |
| lifecycle / registry |
+-----------+-----------+
|
+---------------+----------------+
| |
v v
Capability Plugins Provider Plugins
market / filings / news tushare / yahoo / edgar
money_flow / code_export finnhub / fred / akshare
| |
+---------------+----------------+
|
v
Redis / Postgres
职责分层大致是:
src/server/runtime/
src/server/capabilities/
plugin / service / http / mcp / schemasrc/server/providers/
src/server/transports/
src/server/domain/
当前重构方向是:
BaseDataAdapter 扩展