GC

grahammccain/chart-library-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

22 stars 2 forks 质量 75 趋势 18MIT

图表库的MCP服务器——可视化图表模式搜索引擎。查找类似的历史股票图表,看看接下来发生了什么。

概览

人工智能的市场记忆,以及针对代理和人员的已发表研究。 6.3.3版本将失败的公开工具调用标记为MCP错误,同时保留其结构化恢复细节。无效请求解释如何纠正输入;陈旧的发布版本保留从当前概述重启的指令。成功的响应模式和直接Python调用保持兼容。 市场国家请求无需初步搜索或队列处理。对于已发表的研究,先搜索身份证,然后阅读其证据。 示例问题:“阅读AAPL最新的完成会话状态。报告历史模拟范围、样本量、会话日期及限制。” 省略日期使用最新构建/发布的会话,而非实时引用。日期使用YYYY-MM-DD。缺失或薄弱的证据保持缺失或薄弱。 主要的远程端点是 ,使用可流式 HTTP,且无认证。

概述(AI 翻译)

人工智能的市场记忆,以及针对代理和人员的已发表研究。

6.3.3版本将失败的公共工具调用标记为MCP错误,同时保留其 结构化恢复细节。无效请求解释如何纠正输入; 陈旧的出版版本仍保留从当前概览重启的指示。 成功的响应模式和直接调用Python仍然兼容。

五种只读工具

工具 输入 结果
market_state 符号;可选日期 完成会话状态、历史类比、结果范围、过渡存储器和磁带
daily_note 可选日期 每日发布的研究、选择规则及结算票据
research_quality 无 已公布的校准收据、样本日期及资格
search_research 查询;可选类型,限值与偏移 相关出版物、编号、发现、样本收据、限制和版本
read_research 研究编号;可选部分、偏移量和版本 概述或确切来源文档,含页码和哈希值

市场状态请求无需初步搜索或队列处理。发布

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Chart Library MCP

Market memory for AI, with published research for agents and people.

Version 6.3.3 marks failed public tool calls as MCP errors while preserving their structured recovery details. Invalid requests explain how to correct the inputs; stale publication versions retain instructions to restart from the current overview. Successful response schemas and direct Python calls remain compatible.

Five read-only tools

Tool Input Result
market_state Symbol; optional date Completed-session state, historical analogs, outcome ranges, transition memory and tape
daily_note Optional date Published daily research, selection rule and settled-note tally
research_quality None Published calibration receipt, dated sample and qualifications
search_research Query; optional kind, limit and offset Relevant publications, IDs, findings, sample receipts, limitations and versions
read_research Research ID; optional section, offset and version Overview or an exact source document, with pagination and hashes

Market-state requests need no preliminary search or cohort handle. For published research, search for an ID, then read its evidence.

Example question: “Read AAPL’s latest completed-session state. Report the historical analog ranges, sample sizes, session date and limitations.”

Omitting date uses the latest built/published session, not a real-time quote. Dates use YYYY-MM-DD. Missing or thin evidence stays missing or thin.

Connect

The primary remote endpoint is https://chartlibrary.io/mcp, using Streamable HTTP and no authentication.

For a command-based client, install or upgrade the package:

python -m pip install --upgrade chartlibrary-mcp

Then use the equivalent of this configuration in your MCP client:

{
  "mcpServers": {
    "chartlibrary": {
      "command": "chartlibrary-mcp"
    }
  }
}

No API key or server-side Python packages are required. An optional CHART_LIBRARY_API_KEY is forwarded as a Bearer token when set. An empty key does not send an Authorization header. CHART_LIBRARY_API_URL can select your own compatible endpoint; only point it at a server you trust with that key.

Python 3.10+ is required. This release uses the MCP 1.x FastMCP interface and pins mcp>=1.28.1,<2.0.0; MCP 2.x is a separate migration.

The equivalent HTTP calls

curl "https://chartlibrary.io/api/v1/state-packet?symbol=AAPL"
curl "https://chartlibrary.io/api/v1/daily"
curl "https://chartlibrary.io/api/v1/calibration"

Use only the call relevant to the question. For a historical state add &date=YYYY-MM-DD. Daily REST requests call the date parameter session.

Research workflow

search_research(query="IONQ noon", kind="casebook")
read_research(research_id="casebook:ionq-noon", section="article",
              version="FULL_VERSION_FROM_SEARCH")
在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "chartlibrary": { "command": "chartlibrary-mcp" } } }