Skip to content
MCP server

Lens MCP

Outside-in validation gate for AI-generated text; a separate model checks LLM output…

Runs locallyStatus and history
Install
Pricing
Open source
Runs
Locally
Version
1.1.1
Listing updated
4 days ago

About Lens MCP

Lens MCP is an open-source MCP server. It runs locally on your machine and is started by your AI client.

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

Install

Run in a terminal

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

Add to claude_desktop_config.json

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

Add to ~/.cursor/mcp.json

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

Add to .vscode/mcp.json

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

Add to ~/.codeium/windsurf/mcp_config.json

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

Add to your client's MCP settings (most use this shape)

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

Configuration

  • SOULFIELD_API_BASELens API base URL. Use https://api.soulfield.one for the hosted service.
  • SOULFIELD_API_KEYAPI key for validate_content and scrub_pii. Get one free, self-serve, no card, at https://api.soulfield.one/pricing#signup. lens_health needs no key.

Pricing

Open source

Lens MCP 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