# Lens MCP

> Lens MCP is an open-source MCP server. Outside-in validation gate for AI-generated text; a separate model checks LLM output, fail-closed. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Repository:** https://github.com/mrhpython/lens-mcp
- **MCP Registry name:** io.github.mrhpython/lens-mcp
- **Listing updated:** 2026-11-13

## About

Outside-in validation gate for AI-generated text; a separate model checks LLM output, fail-closed.

## Install

### Claude Code (Terminal)

```sh
claude mcp add lens-mcp --env SOULFIELD_API_KEY='<SOULFIELD_API_KEY>' -- npx -y @soulfield/lens-mcp
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "lens-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@soulfield/lens-mcp"
      ],
      "env": {
        "SOULFIELD_API_KEY": "<SOULFIELD_API_KEY>"
      }
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "lens-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@soulfield/lens-mcp"
      ],
      "env": {
        "SOULFIELD_API_KEY": "<SOULFIELD_API_KEY>"
      }
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "lens-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@soulfield/lens-mcp"
      ],
      "env": {
        "SOULFIELD_API_KEY": "<SOULFIELD_API_KEY>"
      }
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "lens-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@soulfield/lens-mcp"
      ],
      "env": {
        "SOULFIELD_API_KEY": "<SOULFIELD_API_KEY>"
      }
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "lens-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@soulfield/lens-mcp"
      ],
      "env": {
        "SOULFIELD_API_KEY": "<SOULFIELD_API_KEY>"
      }
    }
  }
}
```

## FAQ

### Is Lens MCP free?

Yes. Lens MCP is open source, so you can use and self-host it for free.

### How do I add Lens MCP to Claude Code?

Run this command in your terminal: claude mcp add lens-mcp --env SOULFIELD_API_KEY='<SOULFIELD_API_KEY>' -- npx -y @soulfield/lens-mcp

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