RAGAS MCP server: run RAG evaluations from your agent
RAGAS scores RAG pipelines and agents from Python. Community MCP wrappers expose those scores as tools, but two pin an older RAGAS release and two fail on the current MCP SDK.
Checked 3 October 2026 · from The RAGAS docs and repository, PyPI, the MCP Python SDK wheels, four community repositories and a Weights & Biases issue
One of 91 guides to monitoring and developer tools. Each covers what an AI coding agent can get out of the tool through MCP, the protocol that lets the agent query the tool directly.
Summary
RAGAS is an open-source Python framework for evaluating LLM applications, including RAG pipelines and agents. It has not published an MCP server as of 3 October 2026.
Four community wrappers exist, none on PyPI. CaringNihilistic/ragas-mcp, created 19 June 2026, is the most complete, with six tools and run history stored in SQLite.
That wrapper and ThomasZiegenhein/ragas_mcp import mcp.server.fastmcp, which mcp 2.0.0 removed. mertdurukan/agent-eval-mcp-server avoids the break by pinning mcp==1.27.2.
How RAGAS works with MCP
RAG, retrieval-augmented generation, answers a question from documents fetched at query time. RAGAS scores such a system with metrics like faithfulness, context recall and factual correctness.
Many metrics use a judge model, an LLM that grades each answer. RAGAS runs in your own Python process, so there is no hosted RAGAS service or account to connect to.
The repository moved from explodinggradients/ragas to vibrantlabsai/ragas and has 15,912 stars. The latest PyPI release is 0.4.3, from 13 January 2026.
Every vendor here gets the same four checks: official, maintained, distributed and usable. RAGAS passes 0 of them.
| Check | Result | Evidence |
|---|---|---|
| Official | Fail | The RAGAS project has not published an MCP server as of 3 October 2026. Its docs index at docs.ragas.io/llms.txt never mentions MCP, and the vibrantlabsai GitHub organization has no MCP repository. |
| Maintained | Fail | None of the four community wrappers has a commit after 19 June 2026. Two, CaringNihilistic/ragas-mcp and mertdurukan/agent-eval-mcp-server, consist of a single commit each. |
| Distributed | Fail | No wrapper is on PyPI. ragas-mcp and agent-eval-mcp-server both returned 404 there on 3 October 2026, so each installs from its git repository. |
| Usable | Unknown | CaringNihilistic/ragas-mcp imports mcp.server.fastmcp with an unbounded mcp>=1.2.0. The mcp 2.0.0 wheel, released 28 July 2026, contains no mcp/server/fastmcp module, so a fresh install fails at import. |
| Part of the work | What RAGAS has here | Can an agent reach it |
|---|---|---|
| Agent observability & evals | Faithfulness, context precision and recall, response relevancy, agent trace scoring | Partial. Community wrappers expose scoring tools; the library itself is called from Python |
| Code, tests & review | Evaluation datasets used as regression tests for a RAG pipeline | Partial. compare_runs_tool and detect_eval_drift compare runs; a CI job calling the library is more direct |
RAGAS produces scores, not telemetry. An agent can ask it to grade answers, but traces of what the pipeline did come from a tracing tool.
What can an AI agent do with RAGAS?
The RAGAS server exits with No module named 'mcp.server.fastmcp'
CaringNihilistic/ragas-mcp declares mcp>=1.2.0 with no upper bound. A fresh install resolves the latest mcp, now 2.3.0.
The mcp 2.0.0 wheel and every later one drop the mcp/server/fastmcp package. The same failure is filed against the Weights & Biases server as issue #135.
Guard: Install with "mcp<2" added to the command, or use a wrapper that pins mcp below 2.0.0.
Scores from the MCP tool differ from your own RAGAS runs
The wrappers pin an older RAGAS line. CaringNihilistic/ragas-mcp pins ragas==0.2.15, and mertdurukan/agent-eval-mcp-server requires ragas<0.3, while the current release is 0.4.3.
Scores from different RAGAS release lines are not guaranteed to match, and the wrapper's judge model may differ from yours.
Guard: Compare scores only between runs made with the same RAGAS version and the same judge model.
An evaluation run spends more on model calls than expected
Each scored sample triggers one or more judge-model calls per metric. CaringNihilistic/ragas-mcp uses Claude as its judge and reads ANTHROPIC_API_KEY.
Guard: Start with a handful of samples and one metric, and check the judge model's usage before scoring a full dataset.
How to configure RAGAS MCP for agents
- 1
Pin the SDK
Any Python MCP wrapper that imports
mcp.server.fastmcpneedsmcp<2until it is ported. - 2
Judge model
Name the evaluator model explicitly and record it with each score. Changing it changes the numbers.
- 3
Data exposure
Evaluation inputs are often real user questions and retrieved documents, and the judge model's provider receives them.
Paste this into your agent’s instructions
When you report RAGAS scores, state: - The metrics, the RAGAS version and the judge model. - The number of samples scored and where they came from. Compare runs only when those settings match. Say when a wrapper pinned an older RAGAS release.
Do you need the MCP server at all?
Call the library. An agent that can run Python imports ragas, builds an EvaluationDataset and calls evaluate(). That uses the current release, not a pinned 0.2 line.
`mertdurukan/agent-eval-mcp-server`. Five tools, including evaluate_rag, evaluate_agent_trace and detect_eval_drift. It pins mcp==1.27.2, so the 2.0 import break does not apply.
`ThomasZiegenhein/ragas_mcp`. Apache-2.0, last pushed on 2 October 2025, with Docker examples. It imports mcp.server.fastmcp and needs mcp<2 like CaringNihilistic's wrapper.
`dmikey/ragas-mcp`. A single-file FastAPI service built on ragas-experimental, from June 2025. It does not use the MCP Python SDK.
Evaluation platforms with first-party servers. Braintrust, Arize Phoenix and DeepEval (through Confident AI) run or read evaluations without a local wrapper.
Score with the RAGAS library in Python. Use a pinned wrapper only when the agent must call evaluation as an MCP tool.
RAGAS integration setup
The library route needs pip install ragas and a judge model key. The MCP route below runs CaringNihilistic's wrapper with the SDK pinned below 2.0.
Score a dataset in Python
This follows the RAG evaluation quick start in the RAGAS docs. rows holds user_input, retrieved_contexts, response and reference for each sample.
from ragas import EvaluationDataset, evaluate from ragas.llms import LangchainLLMWrapper from ragas.metrics import Faithfulness, LLMContextRecall from langchain_openai import ChatOpenAI data = EvaluationDataset.from_list(rows) judge = LangchainLLMWrapper(ChatOpenAI(model="gpt-4o")) print(evaluate(dataset=data, metrics=[Faithfulness(), LLMContextRecall()], llm=judge))
CaringNihilistic/ragas-mcp in Claude Code
Clone the repository, create a virtual environment, and install it with the SDK pinned. Then register the module with your client.
pip install -e . "mcp<2"
claude mcp add-json "ragas" '{"command":"/path/to/.venv/bin/python",
"args":["-m","ragas_mcp.server"],
"env":{"ANTHROPIC_API_KEY":"<your-key>"}}'Every other client
Each block below is the configuration for one client, with the file path and the key that client expects.
What CaringNihilistic's six tools do
list_metrics names the available metrics. score_rag_output grades answers you already have, and run_end_to_end_eval runs your retriever and generator first.
get_run_history, get_run_detail and compare_runs_tool read the SQLite store, so an agent can compare pipeline versions over time.
What engineers report
None of the four wrappers has a GitHub star. The Weights & Biases issue on the mcp 2.0.0 change, opened 31 July 2026, documents the same import failure in a widely used server.
Should you connect an agent to RAGAS?
No for most teams; call the RAGAS library from Python. Use a wrapper only when the agent must score answers as an MCP tool. Best for teams evaluating RAG pipelines in Python who want an agent to run or compare evaluations.
- Strongest fit
- No for most teams; call the RAGAS library from Python. Use a wrapper only when the agent must score answers as an MCP tool.
- Main advantage
- RAGAS gives reproducible RAG and agent metrics that a CI job or an agent can compute locally.
- Main weakness
- Every MCP wrapper is a small community project, and the two most complete pin RAGAS below 0.3.
- Operational risk
- Unpinned wrappers break at import on mcp 2.x, and the client reports only that the server closed.
From Oodle
One platform for agent traces and infrastructure
Agent traces usually sit in a different product from the rest of your telemetry, so when a slow database makes an agent slow the symptom is in one tool and the cause is in another. Oodle keeps both in one query surface.
See agent observabilityFrequently asked questions
Does RAGAS have an MCP server?
Not from the RAGAS project, as of 3 October 2026. Community wrappers include CaringNihilistic/ragas-mcp, mertdurukan/agent-eval-mcp-server, ThomasZiegenhein/ragas_mcp and dmikey/ragas-mcp.
Why does ragas-mcp fail with No module named 'mcp.server.fastmcp'?
Because mcp 2.0.0, released 28 July 2026, removed that module. Installing with mcp<2 restores it.
Can I pip install a RAGAS MCP server?
No. PyPI returned 404 for ragas-mcp on 3 October 2026, and the other wrappers are not published there either.
Is the RAGAS library itself affected by the MCP SDK change?
No. RAGAS does not depend on the MCP SDK; only the community wrappers do.