Sifting

io.sifting由 sifting.io 发布v1.0.2更新于 Oct 24, 2026

Live crypto/forex/metals prices, OHLCV bars, SEC fundamentals, 13F holdings and econ calendar.

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

概览

AI 生成的概览

Sifting 让助手接入 SiftingIO 市场数据:加密货币、外汇与金属的实时价格、OHLCV K 线、SEC 基本面、13F 持仓和经济日历。

可以做什么
获取实时快照:加密货币、外汇与金属市场的最后成交价、最新报价与 TVL,以及市场列表、开闭市状态、交易时段和宏观经济日历。研究股票:搜索公司,读取简介、比率、盈利、财务数据与 XBRL 科目,浏览 SEC 申报文件及章节,对比风险因素,并按基本面筛选。查看持股与人员:内部人交易、机构持股、申报方的 13F 持仓、高管薪酬与公司事件。获取加密货币与外汇的历史 OHLCV K 线,查询 DEX 钱包活动。通过持久 WebSocket 订阅 cex、dex、fx、us、tvl 频道并轮询缓冲的实时数据流。
适用场景
当助手需要当前或历史市场数据——报价、K 线、SEC 申报与基本面、13F 持仓或宏观事件——来回答研究或简报类问题时使用。适合希望用一个服务器覆盖加密货币、外汇、金属与美股的金融工作流。
运行要求
以 Node.js 本地进程运行,从 npm 包 siftingio-mcp 安装(先构建再启动,或直接从源码运行)。需要 SIFTING_API_KEY 环境变量提供 SiftingIO API 密钥;SIFTING_BASE_URL 与 SIFTING_WS_URL 可覆盖后端地址。需要访问 SiftingIO API 与 WebSocket 的网络。另有 HTTP 传输模式,可用 MCP_AUTH_TOKEN 保护。
安装前请注意
API 密钥是敏感信息,通过 SIFTING_API_KEY 传入,应放在客户端的 env 配置中而非提交到仓库的文件。所有数据工具都会访问外部 API,查询与股票代码会发送给 SiftingIO。HTTP 传输是有状态的,未设置 MCP_AUTH_TOKEN 时无鉴权;README 建议仅绑定回环地址并配合 TLS 反向代理后再对外暴露。结果约在 6 万字符处截断,流缓冲会丢弃旧帧。

安装

在 SourceWeft 中

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

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

其他 MCP 客户端

参照 仓库 中的启动说明。

README

siftingio-mcp

[siftingio-mcp MCP server]

This is a Model Context Protocol (MCP) server that puts the SiftingIO market-data SDK (@siftingio/sdk) in reach of your AI assistant. Once it's running, the model can pull live prices, dig through SEC/EDGAR fundamentals, fetch OHLCV bars, look up 13F holdings, check market status, and scan the macro economic calendar — all as tools.

Setup

bash
npm installnpm run build

You'll need an API key, which you can grab at https://sifting.io:

bash
export SIFTING_API_KEY=sft_...

If you need to point at a different backend, SIFTING_BASE_URL and SIFTING_WS_URL are there to override the defaults.

Working locally? Copy .env.example to .env instead — npm run dev and npm start pick it up automatically (Node does the loading via --env-file-if-exists). When you wire this into an actual MCP client, though, pass the key through the server's env block rather than a file (there's an example further down).

Run

Here's the toolbox:

  • npm run build — compile TypeScript into dist/.
  • npm start — run the compiled server (node dist/index.js) over stdio.
  • npm run start:http — run it over Streamable HTTP (node dist/http.js).
  • npm run dev / npm run dev:http — run straight from source with tsx, no build step.
  • npm test — run the vitest suite (add npm run test:watch to keep it running).
  • npm run lint / npm run format — ESLint (typescript-eslint) and Prettier.
  • npm run typecheck — tsc --noEmit.

On every push and PR, CI (.github/workflows/ci.yml) walks through the same gauntlet: format check → lint → typecheck → build → test.

One thing worth knowing: the server talks JSON-RPC over stdio, so stdout belongs entirely to the protocol. Anything diagnostic goes to stderr to stay out of the way.

Inspect interactively

Want to poke at it by hand? The MCP inspector is the easiest way:

bash
SIFTING_API_KEY=sft_... npx @modelcontextprotocol/inspector node dist/index.js

HTTP (Streamable HTTP) transport

If you're running this somewhere remote or hosted, use MCP's Streamable HTTP transport instead of stdio:

bash
SIFTING_API_KEY=sft_... PORT=3000 npm run start:http# → MCP endpoint at http://127.0.0.1:3000/mcp  (POST messages, GET SSE, DELETE session)

It's stateful: every client gets its own session (tracked by the mcp-session-id header) and its own McpServer, while the upstream SiftingIO connection is shared across the whole process. As a safety measure it only binds to loopback and turns away non-local browser Origins — that's the DNS-rebinding protection. Set the port with PORT (or MCP_HTTP_PORT); it defaults to 3000.

If you want auth, set MCP_AUTH_TOKEN and the server will demand Authorization: Bearer <token> on every request (anything missing or wrong gets a 401). Pair that with a reverse proxy handling TLS and the token, and you can safely expose the server past localhost:

bash
MCP_AUTH_TOKEN=s3cret SIFTING_API_KEY=sft_... npm run start:http

Then just point any HTTP-capable MCP client at http://127.0.0.1:3000/mcp:

bash
claude mcp add --transport http siftingio http://127.0.0.1:3000/mcp

Use with an MCP client

Drop this into your client config — Claude Desktop's claude_desktop_config.json, say, or use claude mcp add if you're on Claude Code:

json
{  "mcpServers": {    "siftingio": {      "command": "node",      "args": ["/absolute/path/to/siftingio-mcp/dist/index.js"],      "env": { "SIFTING_API_KEY": "sft_..." }    }  }}

Tools (36)

NamespaceTools
Live (snapshot)last_trade, last_quote, last_tvl
Stocksstocks_search, stocks_profile, stocks_filings, stocks_filing, stocks_sections, stocks_section, stocks_risk_factors_diff, stocks_ratios, stocks_earnings, stocks_financials, stocks_financial_concept, stocks_insiders, stocks_ownership, stocks_events, stocks_compensation, stocks_screener, stocks_bars
Crypto / Forexcrypto_bars, forex_bars
DEXdex_wallet
Marketsmarkets_list, markets_status_all, markets_status, markets_hours, markets_calendar
Filersfilers_holdings
Macroeconomic_calendar_list
Live (stream)ws_subscribe, ws_unsubscribe, ws_poll, ws_collect, ws_status, ws_disconnect

A few patterns are worth calling out:

Paginated tools take cursor/limit and hand back a meta.next_cursor to fetch the next page. The stocks_* list tools — stocks_filings, stocks_earnings, stocks_insiders, stocks_ownership, stocks_events, stocks_compensation — also understand max_items: set it and they'll auto-paginate, gathering up to that many items across pages in a single call.

The high-traffic tools (last_trade, last_quote, last_tvl, stocks_profile, stocks_search) come with an output schema and return structuredContent alongside the human-readable text, so clients can read them machine-side too.

Every tool also carries MCP annotations. The data tools are readOnlyHint: true (and openWorldHint: true, since they reach out to the external API), while the WebSocket tools that change connection state are readOnlyHint: false, destructiveHint: false.

Results are size-capped at roughly 60k characters (see MAX_RESULT_CHARS in src/util.ts). When a heavy endpoint — full XBRL financials, screeners, OHLCV bars — returns more than that, the server trims its largest array and tacks on a _truncated note explaining how to narrow the query.

Live WebSocket streaming

Streaming is the awkward case: it doesn't fit neatly into a single request/response. So the server holds one persistent WebSocket open, buffers the frames as they arrive, and the tools just read from that buffer. Channels (the product field) are cex (crypto), dex (DEX trades), fx (forex), us (US stocks), and tvl (DEX pool TVL).

There are two ways to work with it:

  • Subscribe + poll, for ongoing streams: call ws_subscribe once, then keep calling ws_poll. The first poll gives you a recent tail; feed the returned next_seq back in as after_seq and you'll only get newer frames from then on. ws_status shows you the connection and what's subscribed, and ws_disconnect tears the whole thing down.
  • Collect, for a quick one-shot: ws_collect subscribes, waits up to duration_ms (or until it's seen max frames), returns what it caught, and cleans up any subscription it had to create. Perfect for "grab me a few seconds of BTCUSD."

The connection reconnects on its own and replays your subscriptions when it does. The buffer is a rolling window, so the oldest frames eventually fall off — and when they do, you'll hear about it through dropped/gap.

Prompts

These are guided, multi-tool workflows your client can surface as slash-commands:

  • company_snapshot (ticker) — pulls stocks_profile, stocks_ratios, the latest stocks_filings, and last_trade together into one briefing.
  • compare_companies (tickers) — lines up several tickers side by side across the key ratios.
  • market_now — what's open and closed right now, plus the high-impact macro events coming up.

Logging & shutdown

The server advertises the MCP logging capability and pushes structured notifications/message to the client whenever something happens with the connection (WebSocket open/close/reconnect/error) or on shutdown — and it mirrors all of that to stderr too.

When it catches a SIGINT or SIGTERM, it closes the live WebSocket and shuts the server down cleanly before exiting.

来源:README.md,提交 40a31aa

工具

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

版本历史

1
  1. v1.0.2最新Sep 16, 2026

评分

已满足适用检查项的 50%

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

  • 近 30 天内可连通25 分

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

  • 已声明认证方式10 分

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

  • 已列出工具15 分

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

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