Install: pip install mcp-testbench |
PyPI: pypi.org/project/mcp-testbench
Start it
mcp-testbench serve starts a stdlib-only MCP server over
stdio, with no other configuration. Add it to any MCP client:
{
"mcpServers": {
"mcp-testbench": {
"command": "uvx",
"args": ["mcp-testbench", "serve"]
}
}
}
Safe tools (always on)
These tools take MCP server definitions as JSON arguments and never execute code. Called with no arguments, each one analyzes a bundled example definition, so even a bare sample call returns a real result.
| Tool | What it does |
|---|---|
lint_definition | Lint a server definition with the 22-rule lint: description quality, tool-poisoning patterns, parameter typing and bounds, output schemas. Returns findings as structured content. |
diff_definitions | Diff two definitions and classify every change as breaking, non-breaking, routing or cosmetic (see breaking changes). With no arguments it diffs a bundled example old/new pair. |
validate_snapshot | Structurally validate a definition or snapshot: object root, array surfaces, a name and inputSchema per tool, a uri per resource. |
Live tools (opt-in: --allow-live)
inspect_server, lint_server and
check_server launch a user-supplied server command on the
host machine or connect to a user-supplied URL. That is code execution
by design, so these tools are off by default and do not
appear in tools/list unless the server is started with
--allow-live:
{
"mcpServers": {
"mcp-testbench": {
"command": "uvx",
"args": ["mcp-testbench", "serve", "--allow-live"]
}
}
}
Enable them only where launching servers is intended -- for example your own development machine or a sandboxed CI runner.
Dogfooding
The server's own tool definitions pass the mcp-testbench lint with zero findings, and the CLI can test the server like any other:
mcp-testbench inspect -- python -m mcp_testbench.server
mcp-testbench lint -- python -m mcp_testbench.server
The server is registered for the Official MCP Registry in the
server.json file at the root of the repository
(io.github.mcp-testbench/mcp-testbench).