Code Lens vs Next Devtools MCP

A side-by-side look at the Code Lens and Next Devtools MCP MCP servers: transport, auth, tools, quality signals, and the config to install either one in Claude, Cursor, Windsurf or VS Code.

Code Lens logoCode LensDeveloper Tools · Local subprocess (stdio)Gemini-powered MCP server for code analysis.47FairAuth: not declaredNext Devtools MCP logoNext Devtools MCPDeveloper Tools · Local subprocess (stdio)Official Next.js MCP server for coding agents. Provides runtime diagnostics, route inspection, dev server logs, docs search, and upgrade guides. Requires Next.js 16+ dev server for full runtime features.86ExcellentAuth: no auth required

Verdict: choose Code Lens for developer tools work as a local process; choose Next Devtools MCP for developer tools as a local process. You can also run both side by side in one mcpServers block.

Which MCP server should you choose?

Code Lens logoChoose Code Lens when

  • You need dedicated capabilities in the Developer Tools domain.
  • You prefer a local stdio subprocess transport.
  • You have the keys it needs: GEMINI_API_KEY, GOOGLE_API_KEY.
  • You want tools like generate_diff, analyze_pr_impact, generate_review_summary.
Explore Code Lens

Next Devtools MCP logoChoose Next Devtools MCP when

  • You need dedicated capabilities in the Developer Tools domain.
  • You prefer a local stdio subprocess transport.
  • Its auth model fits you: No auth required.
  • You want tools like nextjs_index, nextjs_call, nextjs_docs.
Explore Next Devtools MCP

Feature & specification comparison

Rows where the two servers differ are marked.

SpecCode Lens logoCode LensNext Devtools MCP logoNext Devtools MCP
CategoryDeveloper ToolsDeveloper Tools
Quality signal47/100 · Fair86/100 · Excellent
Install commandConfirmedConfirmed
TransportLocal subprocess (stdio)Local subprocess (stdio)
AuthNot declaredNo auth required
PricingNot declaredFree
Required env varsGEMINI_API_KEYGOOGLE_API_KEYNone listed
Verified ownerCommunity listing Verified
GitHub stars0832
Directory activity 0 views 0 installs 0 upvotes 9 views 0 installs 1 upvotes
Tools134

Tools & capabilities

Code Lens tools 13

  • generate_diffCapture git diff (unstaged/staged) and cache server-side
  • analyze_pr_impactAssess severity, categories, breaking changes, rollback complexity
  • generate_review_summaryPR summary, risk rating, merge recommendation
  • generate_test_planPrioritized test cases and coverage guidance
  • analyze_time_space_complexityBig-O complexity analysis and degradation detection
  • detect_api_breaking_changesDetect breaking API/interface changes
  • load_fileCache a source file for analysis tools
  • refactor_codeComplexity, duplication, naming, grouping suggestions
  • detect_code_smellsStructural code smells (Fowler taxonomy)
  • generate_documentationJSDoc/TSDoc/docstring stubs for public exports
  • ask_about_codeNatural-language Q&A about a cached file
  • verify_logicVerify algorithms via Gemini code execution sandbox
  • +1 more on the listing page

Next Devtools MCP tools 4

  • nextjs_indexDiscover running Next.js dev servers and list each one's runtime MCP tools.
  • nextjs_callCall a runtime tool on a discovered server (errors, routes, logs, Server Actions).
  • nextjs_docsGateway.** Point the agent at version-accurate docs in `node_modules/next/dist/docs/`.
  • browser_evalGateway.** Point the agent at the [`agent-browser`](https://github.com/vercel-labs/agent-browser) CLI for browser automation.

Ready-to-paste client configs

Paste either block (or both) into your client config, e.g. claude_desktop_config.json or ~/.cursor/mcp.json. We only show a config when the install command is confirmed.

Code Lens

mcpServers (Claude Desktop / Cursor)
{
  "mcpServers": {
    "code-lens": {
      "command": "npx",
      "args": [
        "-y",
        "@j0hanz/code-lens-mcp@latest"
      ],
      "env": {
        "GEMINI_API_KEY": "YOUR_GEMINI_API_KEY_HERE",
        "GOOGLE_API_KEY": "YOUR_GOOGLE_API_KEY_HERE"
      }
    }
  }
}

Next Devtools MCP

mcpServers (Claude Desktop / Cursor)
{
  "mcpServers": {
    "vercel-next-devtools-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "next-devtools-mcp@latest"
      ]
    }
  }
}

Frequently asked questions

Code Lens is categorized under Developer Tools and uses a local stdio subprocess. Next Devtools MCP belongs to Developer Tools and uses a local stdio subprocess. Pick Code Lens for developer tools work and Next Devtools MCP for developer tools.

Copy the mcpServers block from the config section on this page into your client's config (for example claude_desktop_config.json or ~/.cursor/mcp.json), then fully restart the client.

Code Lens has no declared pricing — check the project's own site. Next Devtools MCP is listed as free. Auth: no auth required. If a server needs environment variables such as API keys, define them under the env key in your client's MCP config.

Yes. MCP clients support multiple servers: add code-lens and vercel-next-devtools-mcp as separate keys in the same mcpServers object, and your assistant will call tools from either one.

On AllMCPs, Code Lens has a quality signal of 47/100 (Fair) with 0 views, 0 installs and 0 GitHub stars. Next Devtools MCP has 86/100 (Excellent) with 9 views, 0 installs and 832 GitHub stars.