MCP QA Lab
Evidence-driven quality testing for Model Context Protocol servers. It connects as a real client, captures the complete model-facing contract, identifies agent-usability risks, measures context cost, and executes only explicitly approved target calls.
README
MCP QA Lab
Evidence-driven quality testing for Model Context Protocol servers. MCP QA Lab connects as a real client, captures the complete model-facing contract, finds agent-usability risks, measures context cost, and runs only explicitly approved target calls.
Why use it?
A server can have perfect handler-level tests and still be difficult for an agent to use. Tool names may be ambiguous, input fields may be undocumented, pagination may be incomplete, and safety intent may be missing. MCP QA Lab tests that public protocol surface separately from implementation code.
flowchart LR
A[Register target] --> B[Live protocol inspection]
B --> C[Static contract checks]
B --> D[Context-cost measurement]
C --> E[Scenario generation]
E --> F[Approved calls only]
D --> G[Evidence report]
F --> G
Highlights
- Complete paginated discovery of tools, prompts, resources, and resource templates
- Deterministic checks for schema quality, naming, descriptions, and safety annotations
- Model-facing contract size and approximate context-cost measurement
- Host-model sampling for task-oriented scenario proposals
- Explicit approval boundary for target tool calls with possible side effects
- Secret-free target registration using environment variable names, never values
- Redacted Markdown reports with reproducible evidence
- Stdio and Streamable HTTP target support
Install
Install directly from the public repository:
uv tool install "git+https://github.com/efficjump/mcp-qa-lab.git"
mcp-qa-lab --transport stdio
For source development:
git clone https://github.com/efficjump/mcp-qa-lab.git
cd mcp-qa-lab
uv sync --all-extras --locked
uv run mcp-qa-lab --transport stdio
Generic MCP client configuration
{
"mcpServers": {
"mcp-qa-lab": {
"command": "mcp-qa-lab",
"args": ["--transport", "stdio"]
}
}
}
Client configuration formats vary; the command and arguments above do not require a local repository path after tool installation.
Tool workflow
| Tool | Purpose |
|---|---|
register_target |
Persist a secret-free stdio or Streamable HTTP target definition |
list_targets |
List registered targets |
inspect_target |
Capture the live, paginated MCP contract |
run_static_checks |
Find deterministic contract and usability issues |
measure_context_cost |
Measure serialized contract size and approximate token cost |
generate_scenarios |
Ask the host model for evidence-oriented test journeys |
run_target_tool |
Invoke one reviewed target tool with safety approval |
build_report |
Write a redacted Markdown QA report |
Safety defaults
- Remote targets are denied unless
MCP_QA_ALLOW_REMOTE=1. - Local target working directories must stay inside
MCP_QA_ALLOWED_ROOTSwhen configured. - Registrations reference inherited environment variable names; values are never persisted.
- Inspection and static checks never invoke target tools.
- Tools without
readOnlyHint: truerequire explicit side-effect approval. - Reports redact credentials, authorization headers, tokens, and URL user information.
The process boundary is not an operating-system sandbox. Run untrusted targets in an isolated environment.
Streamable HTTP
mcp-qa-lab --transport streamable-http --host 127.0.0.1 --port 8765
The default endpoint is http://127.0.0.1:8765/mcp. Keep the listener on loopback unless a separate
authentication and network boundary is in place.
Development
uv sync --all-extras --locked
uv run ruff format --check .
uv run ruff check .
uv run mypy src
uv run pytest --cov --cov-report=term-missing
uv build
The coverage gate is 85%. See architecture, security policy, and contribution guide.
License
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.