mcp-test-harness
a Testing framework for MCP servers
Install / Use
claude mcp add vaquarkhan -- npx -y github:vaquarkhan/mcp-test-harnessIf the server publishes to npm under a different name, use that package instead — check the repo README.
MCP Server
Model Context Protocol server
Quality Score
Category
SecuritySupported Platforms
Our assessment of mcp-test-harness
mcp-test-harness scores 69/100 on our quality scale, 1069th of 1,119 Security skills we index.
Its MCP Server is 71 KB long, well organised into 71 sections with 48 code examples: long enough that it reads more like full documentation than a focused instruction file, which agents can find harder to follow.
It has 10 GitHub stars, so there is little community track record yet; judge it on its content.
Maintenance, license and trust
- The repository was last updated today, so mcp-test-harness is actively maintained.
- It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 92/100, with 1 caution from licensing, adoption, age or documentation. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
Safety scan
No issues foundOur scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful.
AI review by kimi-k2.7-code on 2026-10-28. Automated pattern scan on 2026-10-28. It catches known dangerous patterns, not every risk — read a skill before letting an agent act on it.
mcp-test-harness compared with similar skills
All 4 of these similar skills score higher than mcp-test-harness; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| mcp-test-harness (this skill)by vaquarkhan | 69 | 10 | today | MCP Server |
| Agent-Reachby Panniantong | 100 | 105.0k | 2d ago | CLAUDE.md |
| headroomby headroomlabs-ai | 100 | 78.1k | today | CLAUDE.md |
| CowAgentby zhayujie | 100 | 47.6k | today | CLAUDE.md |
| Scraplingby D4Vinci | 100 | 90.0k | today | MCP Server |
Frequently asked questions
- How do I install mcp-test-harness?
- Run
claude mcp add vaquarkhan -- npx -y github:vaquarkhan/mcp-test-harness. The install tabs above show the steps for each supported agent. - Which AI agents does mcp-test-harness work with?
- It is written for Claude Code and Claude Desktop, as a MCP Server file. Other agents that read the same format can often use it too.
- Is mcp-test-harness safe to use?
- Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful. It is MIT-licensed and scores 92/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is mcp-test-harness still maintained?
- The repository was last updated today, so mcp-test-harness is actively maintained.
Skill content
View source on GitHubMCP Test Harness
<p align="center"> <a href="#mcp-test-harness"><strong>README</strong></a> · <a href="https://vaquarkhan.github.io/mcp-test-harness/guide/"><strong>Documentation</strong></a> · <a href="https://vaquarkhan.github.io/mcp-test-harness/examples.html"><strong>Examples</strong></a> · <a href="https://vaquarkhan.github.io/mcp-test-harness/features-deck.html"><strong>Features</strong></a> · <a href="https://vaquarkhan.github.io/mcp-test-harness/integrations.html"><strong>Integrations</strong></a> · <a href="https://vaquarkhan.github.io/mcp-test-harness/guide/multi-language.html"><strong>Multi-language</strong></a> · <a href="https://vaquarkhan.github.io/mcp-test-harness/reports/sample_mcp_test_report.html"><strong>Reports</strong></a> · <a href="LICENSE"><strong>License</strong></a> · <a href="SECURITY.md"><strong>Security</strong></a> </p> <p align="center"> <img src="docs/images/hero-banner.png" alt="MCP Test Harness - pytest-style testing for MCP servers" width="100%" /> </p>Current release: 5.3.1 · Docker 5.3.1 · CHANGELOG
| Go to | Link | |-------|------| | Documentation handbook | https://vaquarkhan.github.io/mcp-test-harness/guide/handbook.html | | Docs tabs (Load · Chaos · Resiliency · Security · Reports) | https://vaquarkhan.github.io/mcp-test-harness/guide/ | | llms.txt (agent-readable) | https://vaquarkhan.github.io/mcp-test-harness/llms.txt | | Docs hub | https://vaquarkhan.github.io/mcp-test-harness/guide/ | | Examples / demos | https://vaquarkhan.github.io/mcp-test-harness/examples.html | | Sample scan report | https://vaquarkhan.github.io/mcp-test-harness/reports/sample_mcp_test_report.html | | Features deck | https://vaquarkhan.github.io/mcp-test-harness/features-deck.html | | Integrations & download totals | https://vaquarkhan.github.io/mcp-test-harness/integrations.html · JSON | | Multi-language suite | https://vaquarkhan.github.io/mcp-test-harness/guide/multi-language.html · suite repo · downloads | | MCP-Bastion (sister product — runtime security) | https://github.com/vaquarkhan/MCP-Bastion · handbook |
Latest Release - install from PyPI (pip install mcp-test-harness) or use the OCI image on GitHub Container Registry: ghcr.io/vaquarkhan/mcp-test-harness. Tags: latest and 5.3.1 (runtime, mcp-test entrypoint), dev and 5.3.1-dev (pytest + dev extras). Browse tags on GHCR · docker run --rm ghcr.io/vaquarkhan/mcp-test-harness:latest --version · docs/DOCKER.md · docs/RELEASING.md
Author: Vaquar Khan · License: MIT (NOTICE) · Cite: CITATION.cff · Sponsors: SPONSORS.md
For C-suite & directors
What it is: a CI gate for MCP servers - the connectors that let AI agents call tools, data, and APIs. Teams write deterministic tests once; every pull request proves the server still works before it ships.
Why it matters
| Business need | What the harness delivers | |---------------|---------------------------| | Ship AI features without silent breakage | Automated pass/fail on every PR - no manual Inspector click-through | | Audit & governance evidence | JUnit / SARIF / HTML reports, conformance badges, security payload packs | | Lower cost of quality | One tool for functional, regression, performance, and resiliency - not three vendors | | Trust the gate | 1080+ self-tests, 100% library coverage, and e2e dogfood in CI |
Not an LLM eval product. It does not score model answers. It proves your MCP server is correct, fast enough, and hardened enough for production. Pair with runtime security (MCP-Bastion) and IDE config scanning (mcp-shark). Positioning: docs/POSITIONING.md · comparison: docs/COMPARISON.md.
For architects & tech leads
Role in the stack: deterministic, code-first test automation between local MCP Inspector exploration and production. Fits stdio / SSE / HTTP transports; plugs into GitHub Actions (Marketplace Action), JUnit consumers, and Code Scanning (SARIF).
Architecture (one run)
mcp-test CLI → config → discover test_*.py → schedule (optional parallel)
→ real MCP session (lifecycle + transport) → assertions → reports
| Concern | Approach |
|---------|----------|
| Correctness | Protocol-aware fixtures (mcp_server), schema checks, snapshots |
| Performance | assert_latency / assert_throughput / assert_load_phases / assert_stateless_throughput, baselines, SLO params |
| Security / resiliency | Payload packs, chaos faults, experiment catalog + scorecard (RFC-005) |
| Conformance signal | Levels + README badge via mcp-test try / conformance (RFC-002); stateless via mcp-test conformance stateless (RFC-006) |
| Adoption speed | init, generate, record (RFC-001) - live session → suite |
| Extensibility | Plugins (assertions, fixtures, reporters, transports) |
Deep dives: docs/ARCHITECTURE.md · docs/DECISIONS.md · docs/ENTERPRISE_GOVERNANCE.md · RFCs under docs/design/.
For developers
Fastest path
pip install mcp-test-harness
mcp-test init --server-command "python your_server.py"
# edit tests/test_*.py - then:
mcp-test --config mcp-test.yaml
Zero-config probe: mcp-test try --server-command "…". CI: Marketplace Action mcp-test-harness. Docs hub: docs/QUICK_START.md → docs/DEVELOPER_GUIDE.md → docs/CI_AND_REPORTS.md.
MCP Test Harness is a pytest-style framework for MCP servers: the mcp-test CLI discovers, runs, and reports tests automatically - replacing much of the manual validation you might do in the MCP Inspector. Repository: github.com/vaquarkhan/mcp-test-harness.
Documentation: Docs hub · Handbook (published) · QUICK_START · DEVELOPER_GUIDE · CI & reports · performance · comparison · discovery checklist. Agent map: llms.txt · llms-full.txt · skill
skills/mcp-test-harness· user-repo template docs/templates/AGENTS.md. Companion runtime: Bastion handbook. Community: Issues for bugs; PRs for docs and examples.
What ships end-to-end
Everything below is implemented, tested, and documented in this repo (1080+ tests, 100% lib coverage gate, e2e dogfood in CI). Version pins live only in PyPI, CHANGELOG.md, and install/Docker tags - not in this map.
| Area | Feature | Where to start |
|------|---------|----------------|
| CLI | mcp-test - discover, run, filter (-k / -m), parallel, watch, reports; subcommands init, try, record, generate, experiment, conformance | CLI Reference · Quick Start |
| Automation | Scaffold (init), zero-config probe (try), live record / generate, --watch re-runs, config-driven CI gates | Quick Start · Core Features |
| Docker | OCI image on GHCR (ghcr.io/vaquarkhan/mcp-test-harness) - runtime + :dev; local Dockerfile | Docker · docs/DOCKER.md |
| Hooks | pre-commit hook (mcp-test-try) + example config; plugin / discovery hooks for custom automation | examples/pre-commit-config.yaml · Plugins |
| Diagnostics | MCP trace - per-test JSON-RPC timeline in HTML/JSON reports; stdio pollution hints | example_mcp_trace.md |
| Resiliency | Chaos testing - @marker(tags=["chaos"], chaos_faults=[...]) (delay, 503, truncate, schema drift) | example_chaos_testing.md |
| Resiliency | Experiment catalog - mcp-test experiment run --suite core with guardrails and scorecard (RFC-005) | docs/design/RFC-005-resiliency-experiments.md |
| Conformance | Levels + badge - mcp-test try / conformance badge (RFC-002); stateless SEP-2575 via mcp-test conformance stateless (RFC-006); README shields.io seal | docs/design/RFC-002-conformance-levels.md · RFC-006 |
| Productivity | mcp-test record (RFC-001) + generate - live calls → suite + snapshots; schema drafts | RFC-001 · example_generate_scaffold.md |
| Marketplace | GitHub Action with conformance PR outputs | Marketplace · example_github_actions.md |
| Platform QA | Tool **coverage m
Truncated for display — read the full file on GitHub.
Related Skills
Agent-Reach
105.0kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
headroom
78.1kCompress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
CowAgent
47.6kOpen-source personal AI assistant & Agent Harness. Plans tasks, runs tools and skills, self-evolves with memory and knowledge. Multi-agent, multi-model, multi-channel. Lightweight, extensible, one-line install.
Scrapling
90.0k🕷️ The BEST Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and tricks: https://x.com/Scrapling_dev
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
