# MCP Lab

> MCP Lab is an open-source MCP server for developer tools. Two-tool MCP test server for comparing plain and guarded tool calls. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, API
- **Repository:** https://github.com/namichan777/mcp-lab
- **MCP Registry name:** io.github.namichan777/mcp-lab
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-01

## About

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.

## Features

- **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

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add mcp-lab -- npx -y @namicuan777/mcp-lab
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "mcp-lab": {
      "command": "npx",
      "args": [
        "-y",
        "@namicuan777/mcp-lab"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "mcp-lab": {
      "command": "npx",
      "args": [
        "-y",
        "@namicuan777/mcp-lab"
      ]
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "mcp-lab": {
      "command": "npx",
      "args": [
        "-y",
        "@namicuan777/mcp-lab"
      ]
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```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.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add mcp-lab -- npx -y @namicuan777/mcp-lab
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.mcp-lab]
command = "npx"
args = ["-y", "@namicuan777/mcp-lab"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```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

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```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 (~/.config/devin/mcp_config.json)

```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 (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "mcp-lab": {
      "command": "npx",
      "args": [
        "-y",
        "@namicuan777/mcp-lab"
      ]
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```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 (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "mcp-lab": {
      "command": "npx",
      "args": [
        "-y",
        "@namicuan777/mcp-lab"
      ]
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "mcp-lab": {
      "command": "npx",
      "args": [
        "-y",
        "@namicuan777/mcp-lab"
      ]
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "mcp-lab": {
      "command": "npx",
      "args": [
        "-y",
        "@namicuan777/mcp-lab"
      ]
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "mcp-lab": {
      "command": "npx",
      "args": [
        "-y",
        "@namicuan777/mcp-lab"
      ]
    }
  }
}
```

## Tools

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_lookup` (name suggests: reads): Returns a record from a small fake catalog.
- `guard_check` (name suggests: reads): Runs call arguments through a policy file and returns a verdict with findings.

## 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.

## Alternatives

- [MCP Toolcall Policy MCP](https://ai-powered.com/mcp/mcp-toolcall-policy-mcp): MCP Toolcall Policy MCP is an open-source MCP server for developer tools.
- [MCPExplorer](https://ai-powered.com/mcp/mcpexplorer): MCPExplorer is a free MCP server for developer tools.
- [MCP Safety Warden](https://ai-powered.com/mcp/mcp-safety-warden): MCP Safety Warden is an open-source MCP server for security.
- [MCP Failure Lab](https://ai-powered.com/mcp/mcp-failure-lab): MCP Failure Lab is an open-source MCP server for developer tools.
- [MCP Reference Server](https://ai-powered.com/mcp/mcp-reference-server): MCP Reference Server is an open-source MCP server for developer tools.
- [mcp-vol](https://ai-powered.com/mcp/mcp-vol): mcp-vol is an open-source MCP server for developer tools.
- [mcpm](https://ai-powered.com/mcp/mcpm): mcpm is an open-source MCP server for security.
- [MCP Output Firewall](https://ai-powered.com/mcp/mcp-output-firewall): MCP Output Firewall is an open-source MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/mcp-lab
