An agentic evaluation harness for MCP servers — can an AI agent actually accomplish real tasks with this server's tools?
Project description
mcp-gauntlet
An agentic evaluation harness for MCP servers. Point it at any Model Context Protocol server and it answers the question the static analyzers don't: can an AI agent actually accomplish real tasks using this server's tools?
Why
The existing MCP quality tools (mcp-lighthouse, mcp-scorecard, mcp-checkup)
are all static — they inspect schemas, count tokens, and lint descriptions.
None of them run an LLM agent against the server to see whether it can actually
complete tasks. That dynamic, agent-in-the-loop evaluation — with a real
task-success rate, not just a conformance check — is what mcp-gauntlet does.
The same live run also scans the tools' actual outputs for prompt-injection,
catching tool-poisoning that a static description scan can't (a server that looks
clean at list-time but poisons at call-time).
Google Lighthouse tells you your web page is well-formed. mcp-gauntlet tells you your MCP server is usable by an agent — with a task-success rate to prove it.
What it scores
Each run produces a graded report card (JSON + Markdown) across:
- Schema Health — valid JSON schemas, typed and described parameters.
- Description Quality — can an agent tell when and how to use each tool?
- Security Signals — a static scan of tool and parameter descriptions for tool-poisoning / prompt-injection markers and hidden characters; a critical finding caps the overall grade.
- Agent Task Success — a live LLM agent attempts generated tasks using only the server's tools; LLM-judged and repeated for a success rate.
- Tool-Selection Accuracy — did the agent call the tools it was expected to?
- Tool Reliability — did the server's tools execute without error?
- Response Safety — a dynamic scan of the tools' live outputs for the same injection / poisoning markers, catching a server that looks clean at list-time but poisons at call-time. Reported (and it lowers the score) but doesn't cap on its own, since a fetch/filesystem server may faithfully pass through untrusted content.
- Robustness — does the server reject malformed input gracefully?
Leaderboard
A live leaderboard ranks popular public MCP servers by their gauntlet score: ghalebdweikat.github.io/mcp-gauntlet
Generate one yourself across any set of servers listed in a JSON file:
uv run mcp-gauntlet leaderboard --servers leaderboard.servers.json --out docs
Quickstart
uv sync --extra dev
# Static + robustness checks only — no API key required
uv run mcp-gauntlet run "python -m mcp_gauntlet.fixtures.good_server" --no-agentic
# Full gauntlet, including the live agent (Groq's free tier works)
echo "GROQ_API_KEY=gsk_..." > .env
uv run mcp-gauntlet run "npx -y @modelcontextprotocol/server-everything"
The LLM backend is provider-agnostic — any OpenAI-compatible endpoint (Groq by
default; also OpenRouter, Together, or a local Ollama / vLLM). Runs are read-only by
default: tools that look mutating (by name/description or a self-declared MCP
destructiveHint) are excluded unless you pass --allow-writes. That exclusion is a
best-effort heuristic, not a guarantee — pair it with read-only credentials or a
throwaway environment for untrusted servers. Generated task sets are cached so scores
are reproducible across runs.
Bundled good / bad fixture servers make it easy to see the difference:
uv run mcp-gauntlet run "python -m mcp_gauntlet.fixtures.bad_server" # capped C — tool poisoning
uv run mcp-gauntlet run "python -m mcp_gauntlet.fixtures.good_server" # A
Configuration
Configure via a .env file (copy .env.example and fill it in)
or real environment variables:
| Variable | Purpose |
|---|---|
GROQ_API_KEY / GEMINI_API_KEY / OPENAI_API_KEY / OPENROUTER_API_KEY |
API key for the provider the agent should use (only one needed). A free Groq key: console.groq.com/keys. |
MCP_GAUNTLET_PROVIDER |
Which provider: groq (default), gemini, openai, openrouter, or ollama (local). |
MCP_GAUNTLET_MODEL |
Model override for that provider (e.g. gemini-flash-latest). Defaults to a sensible per-provider model. |
The --provider / --model CLI flags override these. The backend is any
OpenAI-compatible endpoint, so the same setup covers cloud providers and a local
Ollama / vLLM.
No API key? Static mode
Everything except the live agent runs without an LLM. mcp-gauntlet run <server>
with no key configured reports a static grade from the LLM-free checks —
schema health, description quality, security signals, and robustness probes:
uv run mcp-gauntlet run "npx -y @modelcontextprotocol/server-everything" --no-agentic
Add --no-probe for a pure inspection that never executes any of the server's
tools. The leaderboard behaves the same way — with no key it ranks servers on the
static + robustness checks alone.
Use it in CI
Gate your MCP server's pull requests on its gauntlet score. Copy
examples/gauntlet-ci.yml into your server's repo as
.github/workflows/gauntlet.yml, point it at your server, and the build fails
when the score drops below your threshold:
- name: Run the gauntlet
run: uvx mcp-gauntlet run "python -m your_server" --no-agentic --fail-under 70
The static + robustness checks need no API key. To include the live agent
evaluation, add an LLM key (e.g. GROQ_API_KEY) as a repository secret and drop
--no-agentic. The report is uploaded as a build artifact.
License
MIT © Ghaleb Dweikat
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mcp_gauntlet-0.2.0.tar.gz.
File metadata
- Download URL: mcp_gauntlet-0.2.0.tar.gz
- Upload date:
- Size: 136.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c937beae1739dca84104cd9c2d045ccc50701284bbc873b072adf6088ca8087c
|
|
| MD5 |
0e574e4ec5eaf2bdb0da1d23a7b33fd2
|
|
| BLAKE2b-256 |
fc0ffe1071e1c67299dc174e44bda1cab8e86cec99c382fc3c09d3efad1bafe9
|
Provenance
The following attestation bundles were made for mcp_gauntlet-0.2.0.tar.gz:
Publisher:
publish.yml on GhalebDweikat/mcp-gauntlet
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mcp_gauntlet-0.2.0.tar.gz -
Subject digest:
c937beae1739dca84104cd9c2d045ccc50701284bbc873b072adf6088ca8087c - Sigstore transparency entry: 2231399942
- Sigstore integration time:
-
Permalink:
GhalebDweikat/mcp-gauntlet@eb120c58e7f3a44784813e7a48376b8686baf3e2 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/GhalebDweikat
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@eb120c58e7f3a44784813e7a48376b8686baf3e2 -
Trigger Event:
release
-
Statement type:
File details
Details for the file mcp_gauntlet-0.2.0-py3-none-any.whl.
File metadata
- Download URL: mcp_gauntlet-0.2.0-py3-none-any.whl
- Upload date:
- Size: 51.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
543204ac4a797cd820a74ba92d6c03471a240bcace7800f2a71e35dc4a32e26d
|
|
| MD5 |
96f2c7b6391a67acbfa1d39d9445a46f
|
|
| BLAKE2b-256 |
d4164259951876cab4b9f236d38d5d56f9f90d45eb6504639fe433fa66183b21
|
Provenance
The following attestation bundles were made for mcp_gauntlet-0.2.0-py3-none-any.whl:
Publisher:
publish.yml on GhalebDweikat/mcp-gauntlet
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mcp_gauntlet-0.2.0-py3-none-any.whl -
Subject digest:
543204ac4a797cd820a74ba92d6c03471a240bcace7800f2a71e35dc4a32e26d - Sigstore transparency entry: 2231400719
- Sigstore integration time:
-
Permalink:
GhalebDweikat/mcp-gauntlet@eb120c58e7f3a44784813e7a48376b8686baf3e2 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/GhalebDweikat
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@eb120c58e7f3a44784813e7a48376b8686baf3e2 -
Trigger Event:
release
-
Statement type: