Fxabsolute

io.github.varsansri由 GitHub 账号 varsansri 发布v0.1.0更新于 Oct 24, 2026

Five years of 1-minute forex, index and crypto candles, plus a live bridge to a trader's chart.

已验证STDIO仅桌面金融数据与分析

概览

AI 生成的概览

本地 MCP 服务器,让助手获取 FXAbsolute 的外汇、指数和加密货币分钟级K线数值历史,并可连接交易者的实时图表。

可以做什么
列出可用品种、K线数量与字段,并按日期范围和 M1 至 W1 的时间周期获取原始 OHLC K线。跨月扫描某一交易时段的特定K线并汇总,同时提示缺失工作日的覆盖情况。按小时、星期、月份或年份统计波动,并检查某价格位是否守住及价格反应。通过六位配对码连接打开的 FXAbsolute 图表,等待交易者消息、在图表面板中回复、显示思考状态并断开连接。
适用场景
适合助手需要精确价格数字做回测或时段分析、而不是读取图表截图的场景,也适合交易者希望在实时 FXAbsolute 图表会话中由智能体回答问题。
运行要求
通过 stdio 在本机运行,通常用 npx 启动 fxabsolute-mcp 包,需要 Node.js。无需 API 密钥或账户。默认从 FXAbsolute 网站获取数据并缓存到用户缓存目录,每个品种约 38 MB,首次使用需要网络访问。可选环境变量 FXA_DATA_DIR 和 FXA_ORIGIN 可更改数据来源。
安装前请注意
实时桥接通过网站配置中的可发布密钥连接 Supabase Realtime 频道,图表快照、画线、未平仓交易和绩效会经该频道传输。助手可向交易者的图表面板发送回复。回放位置会随消息发送并附有不要透露未来K线的提示,但这取决于智能体是否遵守。数据覆盖可能不完整,例如部分品种缺少若干工作日。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Fxabsolute,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

fxabsolute-mcp

Connects a coding agent directly to FXAbsolute's candle history over MCP.

The point is to stop the model looking at pictures of charts. A screenshot forces it to recover prices from pixels; these tools hand it the numbers, so "what does the New York open actually do" becomes a query instead of a guess.

Setup

Nothing to install and no API key. The server fetches what it needs and caches it.

Claude Code

bash
claude mcp add fxabsolute -- npx -y fxabsolute-mcp

Cursor, Windsurf, Claude Desktop, or anything reading a config file

json
{  "mcpServers": {    "fxabsolute": { "command": "npx", "args": ["-y", "fxabsolute-mcp"] }  }}

Verify with claude mcp list, or just ask your agent "what instruments does fxabsolute have?" — it should answer with fifteen, and tell you volume is not available.

Working on the server itself

bash
git clone https://github.com/varsansri/fxabsolute-mcp && cd fxabsolute-mcpnpm installnpm run smoke                # every tool against real data, ~30 checksnode test/proto.mjs          # stdio protocol round-tripclaude mcp add fxabsolute -- node "$PWD/src/index.js"

Where the data comes from

In order:

  1. FXA_DATA_DIR — an explicit directory of .bin files
  2. ../public/data — automatic when running inside the checkout
  3. FXA_ORIGIN (default https://www.fxabsolute.com) — fetched once per instrument and cached under ~/.cache/fxabsolute-mcp, so it works from any machine

~38 MB per instrument, downloaded lazily and only once.

Tools

ToolWhat it answers
fxa_instrumentsWhat's available, how many bars, what fields exist
fxa_candlesRaw OHLC over a date range at any timeframe M1–W1
fxa_session_scanSpecific bars of a trading session across months, summarised
fxa_bucket_statsMovement grouped by hour / weekday / month / year
fxa_level_touchesWhether a price level actually held, and the reaction it produced

Live chart bridge

ToolPurpose
fxa_connect_chartPair with an open chart using the code in its AI tab
fxa_wait_for_messageBlock until the trader types or speaks; returns their words + chart state
fxa_replyAnswer into their chart panel
fxa_set_thinkingShow the thinking indicator during a long lookup
fxa_disconnect_chartLeave the session

A trader opens the backtester, switches to the AI tab, and reads out the six-character code. Their agent calls fxa_connect_chart, then loops on fxa_wait_for_message → answer → fxa_reply. The site holds no API key and pays for no inference — every trader brings their own agent.

Each message carries a snapshot of the chart: instrument, timeframe, replay position, the current candle, every drawing as real geometry (height in pips, bars spanned, slope per bar, fib levels, whether price sits inside a box), open trades and running performance. The agent reads numbers, so it can check a claim with fxa_session_scan instead of guessing from an image.

Transport is a Supabase Realtime broadcast channel, so the browser and the agent need not be on the same machine — a chart on a phone pairs with a terminal on a laptop. Credentials come from /bridge-config.json on the site, which carries only the publishable key already present in every visitor's browser bundle, so pairing needs no setup.

The replay position is included with a note telling the agent not to reveal bars the trader has not reached. Backtesting is worthless if the assistant spoils the future.

The motivating query — the first 5-minute candle of the New York session, every day, for six months — is one call:

json
{ "instrument": "SPX500", "session": "nyse", "timeframe": "M5",  "bars": [1], "from": "2024-01-01", "to": "2024-07-01" }

Two things worth knowing

There is no volume. The binary format is 20 bytes per candle: uint32 timestamp plus four float32 OHLC values. Volume was never stored, so no tool reports it and none invents a proxy silently — rangePips is offered instead, and every relevant response says so. Adding real volume means re-fetching all ~543 MB from Dukascopy into a wider record format.

Timeframes are bucketed on wall-clock time, not by array index. The browser chart aggregates every N bars, which is right for bar-by-bar replay but drifts for analysis: forex data has weekend and holiday gaps, so the Nth group of 60 M1 bars stops lining up with a real clock hour and an "H1 candle" can straddle a weekend. Here, bars are bucketed on floor(ts / period), so every bar sits on a true boundary and gaps produce no bar rather than a synthetic one.

Session windows are evaluated in exchange-local time with daylight saving resolved to the second, so "the 09:30 bar" is the 09:30 bar in both January and July rather than drifting an hour each spring.

fxa_session_scan also reports coverage: how many weekdays in the window produced no data at all. This matters more than it sounds — SPX500 is missing about 19% of weekdays in the first half of 2024, and without the warning a scan over that period returns clean-looking statistics built on a fifth less data than you asked for.

来源:README.md,提交 01c2c61

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.1.0最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分