A CLI that scans Next.js routes and provides quick insights from your terminal, web UI, and MCP.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add next-lens -- npx next-lens@latest mcp~/.codex/config.toml
[mcp_servers.next-lens]
command = "npx"
args = ["next-lens@latest", "mcp"]
# codex mcp add next-lens -- npx next-lens@latest mcp~/.cursor/mcp.json
{
"mcpServers": {
"next-lens": {
"command": "npx",
"args": [
"next-lens@latest",
"mcp"
]
}
}
}.vscode/mcp.json
{
"servers": {
"next-lens": {
"type": "stdio",
"command": "npx",
"args": [
"next-lens@latest",
"mcp"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"next-lens": {
"command": "npx",
"args": [
"next-lens@latest",
"mcp"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"next-lens": {
"command": "npx",
"args": [
"next-lens@latest",
"mcp"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"next-lens": {
"command": "npx",
"args": [
"next-lens@latest",
"mcp"
]
}
}
}