megalens-mcp

MCP serverDev tools

Code review by AI models from different companies, usually two. Shows where they agree and disagree.

Available today. Use it from your connected AI after setup.

Connect ahel once, and every AI you use reads what you have installed.

Then ask your AI: use megalens-mcp

Install megalens-mcp

The server’s own address, for the clients that take one directly. Or connect ahel onceand every client you use reads it from one address, with the account kept on ahel rather than in each client’s config.

  • Claude Code

    claude mcp add --transport http megalens-mcp 'https://megalens.ai/api/mcp'

    Run it once in your project, then open /mcp to approve any sign-in the server asks for.

  • Claude Desktop

    https://megalens.ai/api/mcp

    Add a custom connector in Settings, paste this address, and approve the sign-in.

  • Cursor

    cursor://anysphere.cursor-deeplink/mcp/install?name=megalens-mcp&config=eyJ1cmwiOiJodHRwczovL21lZ2FsZW5zLmFpL2FwaS9tY3AifQ==

    Open the link and Cursor adds the server at that address.

  • ChatGPT

    https://megalens.ai/api/mcp

    In Settings, enable Developer mode, create an MCP app, and paste this address. Your plan and workspace must allow custom apps.

  • Codex

    codex mcp add megalens-mcp --url 'https://megalens.ai/api/mcp'

    Run it once, then sign in with codex mcp login megalens-mcp if the server asks for an account.

From the project's README

As published by megalens/mcp in README.md.

Code review from a panel of AI models, inside the AI tool you already use. MegaLens sends your code to models from different companies, usually two, and reports where they agree and where they disagree.

Your first review is free, with no card.

Quick Start

npx megalens-mcp setup

The setup wizard:

  1. Asks for your MegaLens token (get one here)
  2. Optionally asks for your OpenRouter API key (free-tier BYOK users)
  3. Detects installed tools automatically
  4. Writes the correct config for each tool

Supported Tools

ToolConfig FileAuto-detected
Claude Code~/.claude.jsonYes
Codex CLI~/.codex/config.tomlYes
Cursor~/.cursor/mcp.jsonYes
Gemini CLI~/.gemini/settings.jsonYes
VS Code (Copilot).vscode/mcp.jsonYes. Coming soon: the wizard can write the config, but this integration is not supported yet
Windsurf~/.codeium/windsurf/mcp_config.jsonYes. Not yet verified end to end

If no tool is detected, the wizard lets you pick one and creates the config file.

Lovable needs no config file and no wizard. Paste the server URL and your token into Lovable's MCP connector form. Steps: megalens.ai/integrations/lovable

Manual Setup

The tools use two config languages and three different top-level keys, which is why the wizard exists.

Keep the ?ide= on each URL. It tells MegaLens which tool the review came from. It does not change which models review your code: the panel is the same whichever tool you call it from.

Claude Code

claude mcp add --transport http megalens "https://megalens.ai/api/mcp?ide=claude-code" \
  --header "Authorization: Bearer ml_tok_your_token_here"

Or in .mcp.json (project) / ~/.claude.json (user):

{
  "mcpServers": {
    "megalens": {
      "type": "http",
      "url": "https://megalens.ai/api/mcp?ide=claude-code",
      "headers": {
        "Authorization": "Bearer ml_tok_your_token_here"
      }
    }
  }
}

Cursor

~/.cursor/mcp.json or .cursor/mcp.json. No type field — Cursor does not use one:

{
  "mcpServers": {
    "megalens": {
      "url": "https://megalens.ai/api/mcp?ide=cursor",
      "headers": {
        "Authorization": "Bearer ml_tok_your_token_here"
      }
    }
  }
}

VS Code / Copilot (coming soon, not yet supported)

.vscode/mcp.json. The top-level key is servers, not mcpServers — a config written for Claude Code or Cursor will not be read here:

{
  "servers": {
    "megalens": {
      "type": "http",
      "url": "https://megalens.ai/api/mcp?ide=copilot"
    }
  }
}

Codex

~/.codex/config.toml or .codex/config.toml. TOML, not JSON:

[mcp_servers.megalens]
url = "https://megalens.ai/api/mcp?ide=codex"
http_headers = { "Authorization" = "Bearer ml_tok_your_token_here" }

Adding your own OpenRouter key (free / BYOK)

Add one more header alongside Authorization, in whichever shape your tool uses above:

"x-megalens-openrouter-key": "sk-or-v1-your-openrouter-key"

Commands

CommandDescription
megalens-mcp setupInteractive setup — detect tools, write config
megalens-mcp validateTest your token connectivity
megalens-mcp configShow current config status

How It Works

MegaLens sends your code to a panel of AI models from different companies, usually two. They review it separately. Their findings are then compared and reviewed once more, and you get back where they agreed and where they disagreed.

If you send your own assessment with the request, the answer also says what the panel found that yours did not.

The panel is the same whichever tool you call it from. MegaLens reports; it does not change your code. Your own tool stays the one that decides what to do next.

Requirements

  • Node.js 18+
  • A MegaLens account: megalens.ai. Your first review is free, with no card

Links

Advanced
Delivery
mcp MCP server → your ahel gateway (mcp.ahel.ai) → every connected AI client.
Catalog kind
mcp-server
Gateway key
ai-megalens-mcp
Source
github.com/megalens/mcp
Hosted endpoint
https://megalens.ai/api/mcp