xby-oecd-search
其他 活跃维护

xby-oecd-search

xby-skill/xby-oecd-search

作为依托SDMX API搭建的MCP服务器,可提供OECD全量统计数据接入能力,支持AI助手、聊天机器人直接查询经济、健康、教育、环境等多领域数据集,部署配置轻量快捷。

0
Stars 标星
0
Forks 分支
0
Watchers 关注
0
Open Issues
TypeScript
主要语言
MIT
开源协议
13 KB
仓库大小
27 天前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:xby-skill/xby-oecd-search
git clone https://github.com/xby-skill/xby-oecd-search.git
git clone git@github.com:xby-skill/xby-oecd-search.git
README.md master

xby-oecd-search

DeepSeek Harness (DSH) 的插件:OECD数据查询服务

一个通过SDMX API提供OECD全面统计数据的模型上下文协议(MCP)服务器,支持AI助手和聊天机器人查询经济、健康、教育、环境等OECD数据集。

功能

  • set_xby_apikey — 在聊天中设置 API 密钥(自动持久化,重启有效)
  • search_dataflows — Search for OECD datasets (dataflows) by keyword. Returns matching datasets with their IDs, names, and descriptions.
  • list_dataflows — List available OECD dataflows (datasets), optionally filtered by category. Use this to browse datasets by topic area.
  • get_data_structure — Get the metadata and structure of a specific OECD dataset. Returns dimensions, attributes, and valid values for querying data.
  • query_data — Query actual statistical data from an OECD dataset. ⚠️ IMPORTANT: Defaults to last 100 observations (max 1000) to protect context window. Use filters, time periods, or last_n_observations to control data size. Large datasets (e.g. SOCX_AGG) can have 70,000+ observations - always specify limits!
  • get_categories — Get all available OECD data categories (17 categories covering all topics: Economy, Health, Education, Environment, etc.)
  • get_popular_datasets — Get a curated list of commonly used OECD datasets across all categories.
  • search_indicators — Search for specific economic or social indicators by keyword (e.g., "inflation", "unemployment", "GDP").
  • get_dataflow_url — Generate an OECD Data Explorer URL for a dataset. Use this to provide users with a direct link to explore data visually in their browser.
  • list_categories_detailed — Get all OECD data categories with example datasets for each category. Returns comprehensive information about all 17 categories.

安装

方式一:从 GitHub 直接安装(推荐)

# 格式: dsh plugin --profile <profile> add github:<owner>/<repo>
dsh plugin --profile web add github:xby_skill/xby-oecd-search

方式二:从本地目录安装(开发模式)

# 仅用于本地开发调试
dsh plugin --profile web add /absolute/path/to/xby-oecd-search

方式三:通过 cordis.patch.yml 开发调试

dsh web --profile web --patch /absolute/path/to/dsh-ocr-plugin/cordis.patch.yml

配置

获取 API 密钥

前往 小笨羊官网 注册并获取 API 密钥。