
Golden Dataset Mcp
io.github.nipunkhanderia由 GitHub 帳號 nipunkhanderia 發布v0.1.2更新於 Oct 24, 2026
Version-controlled golden datasets and RAG evaluation, no API key needed.
概覽
在對話中管理具版本控制的黃金標準問答資料集,並以 TF-IDF 相似度為 RAG/LLM 回答評分。
- 可以做什麼
- 資料集管理:在指定路徑初始化資料集,新增、修改、刪除問答項目,列出工作區或已提交版本的項目
- 版本控制:將工作區快照為不可變版本,比較兩個版本的差異,查看目前版本、規模與歷史
- 評估評分:以 TF-IDF 餘弦相似度將實際回答與某個版本比對,回傳平均相似度與逐筆通過情況
- 所有工具都要求明確傳入資料集路徑,單一實例可同時處理多個資料集且不保留工作階段狀態
- 適用情境
- 適合為 RAG 或 LLM 流程維護黃金標準問答集,並希望由助理新增案例、提交版本、比較各次發布差異的情境。也適合不需呼叫 LLM 的自動化評估流程。
- 執行需求
- 以 Python 套件透過 pip 安裝,在本機以 stdio 執行,會一併安裝 golden-dataset-studio 與 scikit-learn。不需 API 金鑰、環境變數或額外設定。資料集以 JSON/JSONL 檔案形式存放在指定的資料集路徑下。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Golden Dataset Mcp,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
mcp-name: io.github.nipunkhanderia/golden-dataset-mcp
golden-dataset-mcp
An MCP server wrapping golden-dataset-studio — version-controlled golden dataset management and semantic evaluation for RAG/LLM pipelines.
This is a thin protocol layer over the existing golden_dataset library (DatasetStore, Evaluator). It does not reimplement any logic — it exposes the library's existing Python API as MCP tools so an agent (Claude Desktop, Claude Code, or any MCP client) can manage golden datasets conversationally.
No LLM API key required. Evaluation uses TF-IDF cosine similarity (scikit-learn), not an LLM call.
Why a separate package from golden-dataset-studio?
golden-dataset-studio is a CLI tool — designed for a human typing golden add, golden commit, etc. in a terminal. golden-dataset-mcp exposes the same underlying operations as MCP tools so an LLM agent can drive them programmatically, e.g. as part of an automated RAG evaluation pipeline. Keeping them as separate PyPI packages means CLI users aren't forced to pull in fastmcp as a dependency, and MCP users get a clean, protocol-focused package.
Tools
Design: every tool takes an explicit dataset_path
Unlike the CLI (which operates on the current working directory), every tool here requires an explicit dataset_path parameter. This keeps the server fully stateless between calls — no hidden "current dataset" session state to lose track of, and safe for one server instance to manage multiple datasets or serve multiple concurrent clients.
Installation
This pulls in golden-dataset-studio and scikit-learn automatically as dependencies.
Usage with Claude Desktop / Claude Code
No environment variables needed — no API key, no config.
Example flow
As your RAG pipeline changes over time, commit_version again after edits and use diff_versions to see exactly what changed in your golden set between releases.
Relationship to the underlying library
If you want the human-driven CLI, use golden-dataset-studio directly. If you want an agent to drive it, use this package.
Development
Validate the MCP-facing contract:
Limitations
evaluate_answersuses TF-IDF cosine similarity, which captures lexical overlap better than deep semantic meaning. For embedding-based or RAGAS-style metrics, call the underlying library'sEvaluator.ragas_evaluate()directly (requirespip install "golden-dataset-studio[ragas]"— not exposed as an MCP tool in this version).- Very short or stop-word-only answers will raise an error. scikit-learn's TF-IDF vectorizer raises
ValueError: empty vocabularyon inputs like a bare"4"or"the a an". Avoid single-token golden answers, or expectevaluate_answersto fail on them. - All state is filesystem-backed JSON/JSONL under
<dataset_path>/.golden_dataset/; this server does no remote storage or syncing.
License
MIT
來源:README.md,提交 8c58469
工具
0版本歷史
1- v0.1.2最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分