
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.
概览
本地 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 可更改数据来源。
安装
在 SourceWeft 中
- 打开 控制台中的 Fxabsolute,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
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
Cursor, Windsurf, Claude Desktop, or anything reading a config file
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
Where the data comes from
In order:
FXA_DATA_DIR— an explicit directory of.binfiles../public/data— automatic when running inside the checkoutFXA_ORIGIN(defaulthttps://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
Live chart bridge
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:
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版本历史
1- v0.1.0最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分