Skip to main content
Glama
pishnuke

Market Data MCP Server

by pishnuke

mcp-market-data

市场与期权数据 MCP ("market-data") — FastAPI 服务器

这是一个可部署、极简且支持供应商插件的服务,它向 LLM 或任何客户端公开端点,用于获取 OHLCV、期权链、希腊字母、基本公司事件,并组装带有对齐/缓存功能的训练数据集。默认使用 yfinance 作为提供商,因此可开箱即用;通过实现下方的 DataProvider 接口,可切换至 Polygon/IEX 等其他提供商。

本地运行:

  pip install -r requirements.txt
  uvicorn app.main:app --host 0.0.0.0 --port 8000

Docker:

  docker build -t mcp-market-data:edge .
  docker run -p 8000:8000 --name mcp-market-data mcp-market-data:edge

curl 示例:

  curl "https://market-data.verumnomen.com/get_ohlcv?symbol=AAPL&timeframe=1d&start=2024-01-01&end=2024-06-30"
  curl -X POST https://market-data.verumnomen.com/make_dataset -H 'Content-Type: application/json' -d '{
    "symbols":["AAPL","NVDA"],
    "features":["ohlcv(1d,120d)","rv_park(5d)","ret_1d","iv30"],
    "horizon":"1d","window":"180d","align":"market_close"
  }'

注意事项

  • 镜像将在 master 分支推送时发布到 ghcr.io/pishnuke/mcp-market-data:edge,并附带 sha-<short> 标签;当推送如 v0.1.0 的 Git 标签时,会发布到 ghcr.io/pishnuke/mcp-market-data:<tag>。

  • 请确保您的仓库是公开的,或者消费者拥有从 GHCR 拉取的权限。对于私有仓库,消费者需要令牌。

  • GHCR 仓库名称为小写;如果您的 GitHub 组织/仓库名称包含大写字母,GHCR 会将其标准化。

将您的 MCP 客户端指向 mcp.json(或正在运行的 URL)并调用诸如 /get_ohlcv 之类的工具。

Related MCP Connectors

Related MCP Servers

  • A
    license
    B
    quality
    B
    maintenance
    A Model Context Protocol server providing real-time stock data and options analysis through Yahoo Finance, enabling LLMs to access market data, analyze stocks, and evaluate options strategies.
    3
    27
    MIT
  • A
    license
    A
    quality
    D
    maintenance
    Provides comprehensive financial analysis and real-time market data including stock information, options chains, technical indicators, financial statements, earnings calendars, and market sentiment indicators through integration with yfinance and other financial APIs.
    14
    MIT
  • A
    license
    Not graded
    quality
    B
    maintenance
    Enables access to real-time and historical market data including stocks, ETFs, forex, and cryptocurrencies, with support for time series, quotes, dividends, splits, and earnings.
    60 npm
    MIT