MCP Lab
Two-tool MCP test server for comparing plain and guarded tool calls
MCP Lab is an open-source MCP server for developer tools. It runs locally on your machine and is started by your AI client.
- Pricing
- Open source
- Platforms
- CLI, API
- Runs
- Locally
- What it can do
- Read-only
- Version
- 0.1.1
- Listing updated
Similar MCP servers
Install
You install MCP servers on a computer. Send yourself the link.
Add with the CLI
Run in a terminal
claude mcp add mcp-lab -- npx -y @namicuan777/mcp-labAdd --scope user to use it in every project, or --scope project to share it in .mcp.json.
Or share it with your project
Add to .mcp.json
{
"mcpServers": {
"mcp-lab": {
"command": "npx",
"args": [
"-y",
"@namicuan777/mcp-lab"
]
}
}
}Add to claude_desktop_config.json
{
"mcpServers": {
"mcp-lab": {
"command": "npx",
"args": [
"-y",
"@namicuan777/mcp-lab"
]
}
}
}Settings → Developer → Edit Config, then quit and reopen Claude Desktop.
Add to ~/.cursor/mcp.json
{
"mcpServers": {
"mcp-lab": {
"command": "npx",
"args": [
"-y",
"@namicuan777/mcp-lab"
]
}
}
}Use .cursor/mcp.json in a project to share it with the project.
Add to ~/.copilot/mcp-config.json
{
"mcpServers": {
"mcp-lab": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@namicuan777/mcp-lab"
]
}
}
}Or put the same entry in .mcp.json at your workspace root to share it.
Add with the CLI
Run in a terminal
codex mcp add mcp-lab -- npx -y @namicuan777/mcp-labOr add to config.toml
Add to ~/.codex/config.toml
[mcp_servers.mcp-lab]
command = "npx"
args = ["-y", "@namicuan777/mcp-lab"]Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"mcp-lab": {
"command": "npx",
"args": [
"-y",
"@namicuan777/mcp-lab"
]
}
}
}Gemini CLI and Antigravity
Gemini CLI
Add to ~/.gemini/settings.json
{ "mcpServers": { "mcp-lab": { "command": "npx", "args": [ "-y", "@namicuan777/mcp-lab" ] } } }Or run: gemini mcp add -s user mcp-lab npx -- -y @namicuan777/mcp-lab
Antigravity
Add to ~/.gemini/config/mcp_config.json
{ "mcpServers": { "mcp-lab": { "command": "npx", "args": [ "-y", "@namicuan777/mcp-lab" ] } } }Use .agents/mcp_config.json to add it to one workspace only.
Devin Desktop (formerly Windsurf)
Add to ~/.config/devin/mcp_config.json
{ "mcpServers": { "mcp-lab": { "command": "npx", "args": [ "-y", "@namicuan777/mcp-lab" ] } } }On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.
Cline
Add to cline_mcp_settings.json
{ "mcpServers": { "mcp-lab": { "command": "npx", "args": [ "-y", "@namicuan777/mcp-lab" ] } } }Open it from the MCP Servers icon → Configure → Configure MCP Servers.
Zed
Add to Zed settings.json
{ "context_servers": { "mcp-lab": { "command": "npx", "args": [ "-y", "@namicuan777/mcp-lab" ] } } }Open it with zed: open settings file. Merge context_servers into the settings you already have.
JetBrains AI Assistant and Junie
AI Assistant
Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add
{ "mcpServers": { "mcp-lab": { "command": "npx", "args": [ "-y", "@namicuan777/mcp-lab" ] } } }Junie
Add to ~/.junie/mcp/mcp.json
{ "mcpServers": { "mcp-lab": { "command": "npx", "args": [ "-y", "@namicuan777/mcp-lab" ] } } }Use .junie/mcp/mcp.json to share it with a project.
Kiro
Add to ~/.kiro/settings/mcp.json
{ "mcpServers": { "mcp-lab": { "command": "npx", "args": [ "-y", "@namicuan777/mcp-lab" ] } } }Use .kiro/settings/mcp.json to add it to one workspace only.
Using several servers? Build one config file with the MCP config generator.
About MCP Lab
MCP Lab is a small Model Context Protocol server built to show how argument checks change the outcome of a tool call. It ships a toy catalog lookup that returns a fixed sample record, so you can see the shape of a result, alongside a guard that runs call arguments through a policy file.
The guard applies per-field allow-lists, amount caps and a rule that treats the maximum value as requiring human approval, and it also flags look-alike addresses. It returns one of four verdicts (clean, logged, needs approval, or fails) together with the individual findings, which makes it useful for seeing where a policy would intervene.
The project is written with the Python standard library only, needs no network access or API keys, and runs over stdio. It is aimed at developers experimenting with MCP clients and building safer agent workflows, especially around signing or spending actions. The server only shapes answers; enforcement remains the client's responsibility.
Tools this server provides (2)
Taken from the project documentation; the running server may differ.
From the tool list in its README, going by the names, all 2 tools only read data.
From the server's own tool labels and tool names; not verified by us.
- catalog_lookupName suggests: reads
- Returns a record from a small fake catalog.
- guard_checkName suggests: reads
- Runs call arguments through a policy file and returns a verdict with findings.
What it does
- Sample catalog lookup
- Returns a record from a small fabricated catalog to illustrate the structure of tool results.
- Argument guard check
- Evaluates call arguments against a policy file with per-field allow-lists and amount caps.
- Approval-required detection
- Marks maximum-value amounts as needing human approval before a call proceeds.
- Look-alike address flagging
- Detects addresses that closely resemble another to help catch substitution mistakes.
- Four-level verdicts
- Reports clean, logged, approval-needed or failed results with the supporting findings.
- No network or keys
- Uses only the Python standard library and runs entirely locally over stdio.
Good for
- Demonstrate how a guarded tool call differs from an unguarded one
- Prototype argument policies before wiring them into an agent
- Test MCP client behaviour with a minimal two-tool server
- Review intended versus actual arguments before approving a transaction
Pricing
Open source
MCP Lab FAQ
Does MCP Lab need an API key or network access?
No. It is stdlib only and makes no network calls and requires no keys.
How is MCP Lab installed?
It is published to npm under the package name @namicuan777/mcp-lab and runs over stdio.
Does the guard enforce policy on its own?
No. It only returns a verdict and findings; enforcement is left to the client, which should compare intended and final arguments before signing.
What verdicts does the guard return?
Clean, logged, needs human approval, or fails.
Is MCP Lab free?
Yes. MCP Lab is open source, so you can use and self-host it for free.
How do I add MCP Lab to Claude Code?
Run this command in your terminal: claude mcp add mcp-lab -- npx -y @namicuan777/mcp-lab
What are the best alternatives to MCP Lab?
The closest alternatives to MCP Lab are MCP Toolcall Policy MCP, MCPExplorer, MCP Safety Warden, MCP Failure Lab and MCP Reference Server.
Where this comes from
- Description: written from the project's README and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.