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 分