Serieslib

io.github.CloudCorpRecords由 GitHub 帳號 CloudCorpRecords 發布v0.1.0更新於 Nov 7, 2026

Search and read economic data series and dataset libraries from the ElKassabgi data family.

已驗證STDIO僅桌面資料庫金融資料與分析

概覽

AI 產生的概覽

本機橋接服務,讓助理搜尋並下載 ElKassabgi 資料家族的經濟時間序列、美股高頻行情與專利創新資料集。

可以做什麼
  • 搜尋經濟資料目錄並列出資料來源,支援分頁與譯名
  • 讀取序列中繼資料、授權與署名資訊,並下載日期/數值列格式的序列
  • 查看各來源資料更新狀態與整個資料家族的概況
  • 為若干序列產生可引用的資料包清單
  • 取得 1 分鐘股票行情與預先計算學術變數的授權下載說明及其定義
  • 列出專利創新資料包並取得下載說明;查詢是否已設定 API 金鑰
適用情境
適合需要附引用與授權資訊的官方經濟指標、總體或貿易資料,或研究級金融與專利資料集的情境,讓助理找到合適的序列並取回資料。不適用於一般網頁搜尋或即時行情報價。
執行需求
以本機程序執行,可透過 npx(需 Node.js)或 Docker 啟動,僅限桌面端。需要連線至上游託管的 MCP 端點,可用選用變數 ELKASSABGI_MCP_URL 覆寫位址。部分下載需要該家族免費的 ElkassabgiData API 金鑰,且於上游設定,而非本用戶端。
安裝前請注意
此橋接會將工具呼叫轉送至第三方託管端點,查詢與參數會離開你的電腦。下載類工具回傳的是授權連結,檔案須由你自己的程式取得。各來源的授權與商用標記不同,重複使用前應先確認。API 金鑰保存在上游,get_auth_status 僅回報遮蔽後狀態。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Serieslib,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

serieslib

serieslib is a thin local bridge to the ElKassabgi data family's hosted MCP server, which publishes three libraries under one endpoint: an economics catalog with billions of time series drawn from hundreds of official sources, a high-frequency library of 1-minute US equity bars and pre-computed academic variables, and an intellectual-property library of patent-level innovation measures.

The bridge holds no data and computes nothing. It serves the upstream server's tool list locally — exactly as captured from the live endpoint — and forwards each tool call upstream, returning the result untouched. Search, metadata, source lists, freshness and status tools are free at the upstream; a few downloads there ask for the family's own free API key, which stays an upstream concern: this client sends no credential of its own, and get_auth_status reports the upstream connection's key state.

Tools

  • search_econ_series — search the economics catalog by free text (query, required). Optional: source to restrict to one source id, limit (1-50, default 15) and offset for paging, and lang (en, ar, es, fr, ru, zh) for source-official translated titles where they exist. Returns series ids for the other tools.
  • get_econ_series — download one series as date/value rows with its citation and licence. Required: series_id. Optional: date_from / date_to (YYYY-MM-DD) to window long series, and max_rows (10-2000, default 400).
  • get_econ_series_metadata — full metadata for one series (series_id, required): title, frequency, geography, unit, licence including the commercial-use flag, attribution, and coverage dates.
  • list_econ_sources — enumerate the catalog's sources (statistical offices, monetary authorities, IGOs, research datasets) with their licences. Optional: contains, a case-insensitive filter on source id or name.
  • get_data_freshness — the per-source update board from the upstream updater's ledger: last successful update, data frontier, and stale or failure flags. Optional: source for a single source.
  • get_econ_bundle_manifest — build a citable Frictionless-style bundle manifest: up to 50 explicit series ids (ids), or every series of one small source (source, up to 1,000). Unresolvable ids are reported, never dropped.
  • get_hf_download_link — authenticated download instructions for the high-frequency library. Required: ticker (e.g. AAPL). Optional: dataset (bars, variables or quality, default bars), version (clean or raw, default clean), and format (parquet or csv, default parquet; csv applies to bars only). Files hold all of a ticker's bars and are fetched by your own code, not returned inline.
  • get_hf_variables_dictionary — the exact published definitions and formulas of the 25 pre-computed academic variables. No arguments.
  • list_ip_bundles — list the IP library's snapshot-pinned patent and innovation bundles, with sizes, vintages and download paths. No arguments.
  • get_ip_download_link — authenticated download instructions for one IP bundle. Required: file (patent_measures.parquet or assignee_year.parquet). Optional: vintage to pin a snapshot instead of the newest.
  • get_family_status — live headline stats and data currency for all three libraries. No arguments.
  • get_auth_status — whether the upstream connection has a family API key configured (masked; the key is never echoed) and how to add one. No arguments.

Configuration

  • ELKASSABGI_MCP_URL (optional) — override the upstream endpoint. Defaults to https://elkassabgidata-mcp.elkassabgi.workers.dev/mcp. (The override hook is this rebuild's own labelled reconstruction.)

Forwarding mechanics

On the first tool call the client opens a streamable HTTP session with the upstream: a JSON-RPC initialize request (protocolVersion 2025-03-26, clientInfo name serieslib), then a notifications/initialized notification, then the tools/call request carrying the caller's arguments unchanged. When the upstream answers initialize with an Mcp-Session-Id header, that value rides on every later request of the session, which is reused for the life of the process. Replies may arrive as plain JSON or as server-sent events; both are read.

Successful upstream results pass through verbatim, including any isError flag the upstream sets. Failures — a JSON-RPC error, a non-2xx status, an unreadable response, or a request that cannot be completed — come back as an isError result whose text starts with serieslib error: (this rendering is this rebuild's own labelled reconstruction).

CLI

Each tool is also a subcommand taking one JSON argument string (omit it for tools that take none):

bash
npx @reneturcios/serieslib search_econ_series '{"query":"germany inflation"}'npx @reneturcios/serieslib get_econ_series_metadata '{"series_id":"worldbank:NY.GDP.MKTP.CD:DEU"}'npx @reneturcios/serieslib list_econ_sourcesnpx @reneturcios/serieslib --version

Exit codes: 0 on success, 1 on an isError result, 2 on a usage error.

MCP server

bash
npx -y @reneturcios/serieslib mcp

MCP client config:

json
{  "mcpServers": {    "serieslib": {      "command": "npx",      "args": ["-y", "@reneturcios/serieslib", "mcp"]    }  }}

Docker

bash
docker run -i ghcr.io/cloudcorprecords/serieslibdocker run --rm ghcr.io/cloudcorprecords/serieslib --version

The container's default command is mcp, so the first form is a stdio MCP server; any other arguments reach the CLI normally.

Development

bash
npm installnpm run buildnpm testnpm run dev

The test suite runs entirely against a stubbed JSON-RPC upstream — no live network calls.

License

MIT — see LICENSE.

來源:README.md,提交 6c960ae

工具

12

search_econ_series

Search Economic Series

Search the Econ Data Library catalog (billions of series from hundreds of sources: national accounts, prices, trade, labor, energy, markets…). Free, no key needed. Returns series ids usable with get_econ_series. Page with offset; lang returns source-official translated titles where the publisher provides them.

輸入參數langlimitquery必填offsetsource

get_econ_series

Download Economic Series

Download an economic time series as rows (long format: date, value) with its citation and license. REQUIRES the free ElkassabgiData API key. Use date_from/date_to to window long series.

輸入參數date_tomax_rowsdate_fromseries_id必填

get_econ_series_metadata

Economic Series Metadata

Full metadata for one econ series: title, frequency, geography, unit, license (incl. commercial-use flag), attribution/citation, coverage dates. Free, no key needed.

輸入參數series_id必填

list_econ_sources

List Economic Data Sources

List the Econ Data Library's sources (statistical offices, monetary authorities, IGOs, research datasets) with their licenses, counted live. Free.

輸入參數contains

get_data_freshness

Data Freshness

Live per-source update status straight from the automated updater's ledger: last successful update, data frontier, and honest stale/failure flags (dates are NEVER fabricated — a silent upstream outage shows here as stale, not papered over). Free.

輸入參數source

get_econ_bundle_manifest

Economic Data Bundle Manifest

A citable bundle manifest (Frictionless data package) for several econ series - up to 50 explicit ids, or every series of one small source (up to 1,000 series): the per-series download URLs grouped by source, each source's attribution and licence, and any id that could not be resolved (reported, never dropped). The URLs serve the CURRENT data - this is not a frozen vintage. Free, no key needed for the manifest; downloading the URLs needs the key.

輸入參數idssource

get_hf_variables_dictionary

HF Variables Dictionary

The exact definitions/formulas of HF Data Library's 25 pre-computed academic variables (realized volatility family, spreads, jumps, liquidity, data-quality). Verbatim from the published dictionary. Free.

無需輸入參數。

list_ip_bundles

IP Data Library Bundles

List the IP Data Library's snapshot-pinned patent/innovation bundles (patent-level measures on US patents; assignee-year panels) with sizes, vintages and download paths. Free, no key needed.

無需輸入參數。

get_family_status

ElkassabgiData Family Status

Live status of the whole ElkassabgiData family - HF, Econ and IP: each library's headline stats and data currency, read live. Free.

無需輸入參數。

get_auth_status

Authentication Status

Whether this MCP connection has an ElkassabgiData API key configured (masked — the key itself is never echoed), and how to add one.

無需輸入參數。

版本歷史

1
  1. v0.1.0最新Nov 4, 2026

評分

已滿足適用檢查項的 90%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分
  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分