golden-dataset-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@golden-dataset-mcpInitialize a new golden dataset for RAG evaluation."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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.
Related MCP server: IndexFoundry MCP
Tools
Tool | What it does |
| Initialise a new dataset at a given path |
| Add a question/answer pair to the working tree |
| Edit fields of an existing working-tree entry |
| Remove an entry from the working tree |
| List working-tree or committed-version entries |
| Snapshot the working tree as a new immutable version |
| Show entries added/removed/changed between two versions |
| Score actual answers against a version via TF-IDF cosine similarity |
| Show current version, working tree size, and version history |
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
pip install golden-dataset-mcpThis pulls in golden-dataset-studio automatically as a dependency.
Usage with Claude Desktop / Claude Code
{
"mcpServers": {
"golden-dataset": {
"command": "golden-dataset-mcp"
}
}
}No environment variables needed — no API key, no config.
Example flow
1. init_dataset(dataset_path="./my-rag-eval", name="support-bot-eval")
2. add_entry(dataset_path="./my-rag-eval", question="...", answer="...")
[repeat for each golden Q&A pair]
3. commit_version(dataset_path="./my-rag-eval", description="initial 50 questions")
4. [run your RAG pipeline, collect actual answers]
5. evaluate_answers(dataset_path="./my-rag-eval", actual_answers=[...])
-> avg_semantic_similarity, per-entry scores, pass/failAs 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
|
| |
Interface | CLI ( | MCP tools |
Driven by | A human typing commands | An LLM agent / MCP client |
Path handling | Current working directory | Explicit |
Dependency direction | — | Depends on |
If you want the human-driven CLI, use golden-dataset-studio directly. If you want an agent to drive it, use this package.
Development
git clone https://github.com/nipun-sharma/golden-dataset-mcp
cd golden-dataset-mcp
pip install -e ".[dev]" --break-system-packages
pytest -vValidate the MCP-facing contract:
npx @modelcontextprotocol/inspector golden-dataset-mcpLimitations
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 ragas datasets— 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.golden-dataset-studio(as of 0.1.1) usesscikit-learnat runtime but does not declare it in its own dependencies — this package pinsscikit-learnexplicitly soevaluate_answersworks correctly out of the box regardless of upstream's declared requirements.
License
MIT
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/nipunkhanderia/golden-dataset-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server