Prototype · Preview: every server in the official registry, synced every 30 minutes. Sign in with Google to write reviews.Prototype · updated every 30 min
PopNx MCPMCP servers for people who use AI · explained in plain words

GodotLens

by pzalutski-pixelversion 1.2.0i★ 10iRuns on your computerRepository ↗
Registry nameio.github.pzalutski-pixel/godotlens

How to install

What it does

Godot's own view of your GDScript project: code, scenes, and the running game

  • Connects Runs on your computer
  • Account or key No key needed · 1 setting to fill in (GODOT_BIN)
  • Category Games, sports, food & learning

Why it ranks here

Lists are ordered by a usage score (out of 100) built from these parts

Popularity12/80GitHub stars or weekly downloads: the larger counts 60, the smaller 20
Freshness7/12Full marks for a release or code change within 30 days
Still answering0/8The cloud endpoint answered at the last check
Usage score20/100

Quality: Passed 3/3 basic checks (shown, not used for ordering) · Momentum: No data yet (Used only on the Trending tab)

Install

Pick the AI app you use, then copy the settings.

Let your AI install it with one sentence

Please install GodotLens. Follow https://mcp.popnx.com/i/pzalutski-pixel-godotlens.md, show me the commands and wait for my OK before running them.

Paste it into an AI that can work on your computer (such as Claude Code or Cursor). It reads our steps, shows you the commands and waits for your OK. No key, no sign-up. · See the full text your AI reads

Passed 3/3 checks · Runs on your computer · ✓ Commands checked Nov 14, 2026

First: which AI do you use?

Pick your app and the steps appear below.

Works with Claude, with some setup first

1 setting(s) to fill in (GODOT_BIN) · Install Node.js on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone

Let AI install it

Copy this message into a Claude chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server GodotLens for Claude on this computer, in this order: 1) Check Node.js with node -v. If it is missing, tell me to install it from https://nodejs.org/en/download; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "godotlens": { "command": "npx", "args": [ "-y", "godotlens-mcp" ], "env": { "GODOT_BIN": "your-value" } } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For GODOT_BIN, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the GodotLens tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install Node.js (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    node -v
    • A version number such as v26.13.1 = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: Open the official download page, pick the LTS version and the click-through installer: .pkg on Mac · .msi on Windows. Double-click and follow it to the end. No curl command needed

    Open the Node.js download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: node -v

    Install once; it works for everything that needs Node.js

  2. Fill in 1 setting(s)

    These are program settings, not keys. No sign-up needed; fill them in as the maker describes.

    • GODOT_BIN Godot executable, required by scene_*, project_config and runtime_*

    Descriptions are as written by the maker.

  3. Open the Claude desktop app’s settings file

    SettingsDeveloperEdit Config

  4. Paste these settings and save the file

    {
      "mcpServers": {
        "godotlens": {
          "command": "npx",
          "args": [
            "-y",
            "godotlens-mcp"
          ],
          "env": {
            "GODOT_BIN": "your-value"
          }
        }
      }
    }
  5. Quit Claude and open it again

  6. Try it

    Use GodotLens and tell me what you can do for me, then show me one thing

    ✓ If Claude says it is using GodotLens or shows a GodotLens tool in the answer, you are connected

10 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • GODOT_LSP_HOST Godot language server host · default 127.0.0.1
  • GODOT_LSP_PORT Godot language server port (the VS Code extension uses 6008) · default 6005
  • GODOT_DAP_HOST Godot debug adapter host · default 127.0.0.1
  • GODOT_DAP_PORT Godot debug adapter port, used by the debug_* tools · default 6006
  • GODOT_PROJECT_ROOT Project root; auto-detected by walking up for project.godot
  • GODOT_LSP_TIMEOUT Seconds to wait for a single LSP response · default 15
  • GODOT_DIAGNOSTICS_TIMEOUT Seconds to wait for diagnostics after a sync · default 8
  • GODOT_VERSION Override Godot capability detection
  • GODOT_FIND_FILE_LIMIT Max files gdscript_find inspects across the project · default 60
  • GODOT_RUNTIME_MAX_SESSIONS Max games runtime_run keeps running at once · default 4

Descriptions are as written by the maker.

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

ChatGPT cannot connect GodotLens yet

GodotLens runs on your computer, but ChatGPT can only connect servers that run on the web

What you can do instead

A · Use an app that can connect GodotLens

  • 1 setting(s) to fill in (GODOT_BIN) · Install Node.js on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone
  • 1 setting(s) to fill in (GODOT_BIN) · Install Node.js on your computer first (one time)
  • 1 setting(s) to fill in (GODOT_BIN) · Install Node.js on your computer first (one time)
  • 1 setting(s) to fill in (GODOT_BIN) · Install Node.js on your computer first (one time)

B · Others in Games, sports, food & learning that work with ChatGPT

Picked from the most used in the same category, only ones that connect by address with no key

Works with Claude Code, with some setup first

1 setting(s) to fill in (GODOT_BIN) · Install Node.js on your computer first (one time)

Let AI install it

Copy this message into a Claude Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server GodotLens for Claude Code on this computer, in this order: 1) Check Node.js with node -v. If it is missing, tell me to install it from https://nodejs.org/en/download; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): claude mcp add --scope user godotlens --env GODOT_BIN=your-value -- npx -y godotlens-mcp 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For GODOT_BIN, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the GodotLens tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install Node.js (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    node -v
    • A version number such as v26.13.1 = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: Open the official download page, pick the LTS version and the click-through installer: .pkg on Mac · .msi on Windows. Double-click and follow it to the end. No curl command needed

    Open the Node.js download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: node -v

    Install once; it works for everything that needs Node.js

  2. Fill in 1 setting(s)

    These are program settings, not keys. No sign-up needed; fill them in as the maker describes.

    • GODOT_BIN Godot executable, required by scene_*, project_config and runtime_*

    Descriptions are as written by the maker.

  3. Open Terminal

    Mac: press Command+Space and type Terminal · Windows: open PowerShell

  4. Paste this command and press Enter

    claude mcp add --scope user godotlens --env GODOT_BIN=your-value -- npx -y godotlens-mcp
  5. Type /mcp in Claude Code

    You should see GodotLens listed as connected

  6. Try it

    Use GodotLens and tell me what you can do for me, then show me one thing

    ✓ If Claude Code says it is using GodotLens or shows a GodotLens tool in the answer, you are connected

10 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • GODOT_LSP_HOST Godot language server host · default 127.0.0.1
  • GODOT_LSP_PORT Godot language server port (the VS Code extension uses 6008) · default 6005
  • GODOT_DAP_HOST Godot debug adapter host · default 127.0.0.1
  • GODOT_DAP_PORT Godot debug adapter port, used by the debug_* tools · default 6006
  • GODOT_PROJECT_ROOT Project root; auto-detected by walking up for project.godot
  • GODOT_LSP_TIMEOUT Seconds to wait for a single LSP response · default 15
  • GODOT_DIAGNOSTICS_TIMEOUT Seconds to wait for diagnostics after a sync · default 8
  • GODOT_VERSION Override Godot capability detection
  • GODOT_FIND_FILE_LIMIT Max files gdscript_find inspects across the project · default 60
  • GODOT_RUNTIME_MAX_SESSIONS Max games runtime_run keeps running at once · default 4

Descriptions are as written by the maker.

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with Cursor, with some setup first

1 setting(s) to fill in (GODOT_BIN) · Install Node.js on your computer first (one time)

Let AI install it

Copy this message into a Cursor chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server GodotLens for Cursor on this computer, in this order: 1) Check Node.js with node -v. If it is missing, tell me to install it from https://nodejs.org/en/download; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "godotlens": { "command": "npx", "args": [ "-y", "godotlens-mcp" ], "env": { "GODOT_BIN": "your-value" } } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For GODOT_BIN, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the GodotLens tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install Node.js (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    node -v
    • A version number such as v26.13.1 = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: Open the official download page, pick the LTS version and the click-through installer: .pkg on Mac · .msi on Windows. Double-click and follow it to the end. No curl command needed

    Open the Node.js download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: node -v

    Install once; it works for everything that needs Node.js

  2. Fill in 1 setting(s)

    These are program settings, not keys. No sign-up needed; fill them in as the maker describes.

    • GODOT_BIN Godot executable, required by scene_*, project_config and runtime_*

    Descriptions are as written by the maker.

  3. Click this button to open Cursor

    Open in Cursor

    Cursor asks you to confirm; click Install

  4. Fill in your key

    In the GodotLens settings, GODOT_BIN is empty; add your key and save

  5. Open the AI chat in Cursor in Agent mode

  6. Try it

    Use GodotLens and tell me what you can do for me, then show me one thing

    ✓ If Cursor says it is using GodotLens or shows a GodotLens tool in the answer, you are connected

10 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • GODOT_LSP_HOST Godot language server host · default 127.0.0.1
  • GODOT_LSP_PORT Godot language server port (the VS Code extension uses 6008) · default 6005
  • GODOT_DAP_HOST Godot debug adapter host · default 127.0.0.1
  • GODOT_DAP_PORT Godot debug adapter port, used by the debug_* tools · default 6006
  • GODOT_PROJECT_ROOT Project root; auto-detected by walking up for project.godot
  • GODOT_LSP_TIMEOUT Seconds to wait for a single LSP response · default 15
  • GODOT_DIAGNOSTICS_TIMEOUT Seconds to wait for diagnostics after a sync · default 8
  • GODOT_VERSION Override Godot capability detection
  • GODOT_FIND_FILE_LIMIT Max files gdscript_find inspects across the project · default 60
  • GODOT_RUNTIME_MAX_SESSIONS Max games runtime_run keeps running at once · default 4

Descriptions are as written by the maker.

Menu names checked against Cursor’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with VS Code, with some setup first

1 setting(s) to fill in (GODOT_BIN) · Install Node.js on your computer first (one time)

Let AI install it

Copy this message into a VS Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server GodotLens for VS Code on this computer, in this order: 1) Check Node.js with node -v. If it is missing, tell me to install it from https://nodejs.org/en/download; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "servers": { "godotlens": { "type": "stdio", "command": "npx", "args": [ "-y", "godotlens-mcp" ], "env": { "GODOT_BIN": "your-value" } } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For GODOT_BIN, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the GodotLens tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install Node.js (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    node -v
    • A version number such as v26.13.1 = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: Open the official download page, pick the LTS version and the click-through installer: .pkg on Mac · .msi on Windows. Double-click and follow it to the end. No curl command needed

    Open the Node.js download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: node -v

    Install once; it works for everything that needs Node.js

  2. Fill in 1 setting(s)

    These are program settings, not keys. No sign-up needed; fill them in as the maker describes.

    • GODOT_BIN Godot executable, required by scene_*, project_config and runtime_*

    Descriptions are as written by the maker.

  3. Click this button to open VS Code

    Open in VS Code

    VS Code asks you to confirm; click Install

  4. Fill in your key

    In the GodotLens settings, GODOT_BIN is empty; add your key and save

  5. Open the AI chat in VS Code in Agent mode

  6. Try it

    Use GodotLens and tell me what you can do for me, then show me one thing

    ✓ If VS Code says it is using GodotLens or shows a GodotLens tool in the answer, you are connected

10 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • GODOT_LSP_HOST Godot language server host · default 127.0.0.1
  • GODOT_LSP_PORT Godot language server port (the VS Code extension uses 6008) · default 6005
  • GODOT_DAP_HOST Godot debug adapter host · default 127.0.0.1
  • GODOT_DAP_PORT Godot debug adapter port, used by the debug_* tools · default 6006
  • GODOT_PROJECT_ROOT Project root; auto-detected by walking up for project.godot
  • GODOT_LSP_TIMEOUT Seconds to wait for a single LSP response · default 15
  • GODOT_DIAGNOSTICS_TIMEOUT Seconds to wait for diagnostics after a sync · default 8
  • GODOT_VERSION Override Godot capability detection
  • GODOT_FIND_FILE_LIMIT Max files gdscript_find inspects across the project · default 60
  • GODOT_RUNTIME_MAX_SESSIONS Max games runtime_run keeps running at once · default 4

Descriptions are as written by the maker.

Menu names checked against VS Code’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Other apps that use MCP, such as Windsurf, Zed or Gemini CLI, each add servers differently. See how in the app list.

See every app that uses MCP →

JSON settings are under “For developers” below

Stuck? Ask people who use GodotLens💬 Discussion →
For developers: Terminal commands and JSON settings

Installed on your computer

Claude Code

claude mcp add --scope user godotlens --env GODOT_BIN=your-value -- npx -y godotlens-mcp

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "godotlens": {
      "command": "npx",
      "args": [
        "-y",
        "godotlens-mcp"
      ],
      "env": {
        "GODOT_BIN": "your-value"
      }
    }
  }
}

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "godotlens": {
      "command": "npx",
      "args": [
        "-y",
        "godotlens-mcp"
      ],
      "env": {
        "GODOT_BIN": "your-value"
      }
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "godotlens": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "godotlens-mcp"
      ],
      "env": {
        "GODOT_BIN": "your-value"
      }
    }
  }
}

Values you fill in

  • GODOT_LSP_HOST env
    Godot language server host
  • GODOT_LSP_PORT env
    Godot language server port (the VS Code extension uses 6008)
  • GODOT_DAP_HOST env
    Godot debug adapter host
  • GODOT_DAP_PORT env
    Godot debug adapter port, used by the debug_* tools
  • GODOT_BIN required env
    Godot executable, required by scene_*, project_config and runtime_*
  • GODOT_PROJECT_ROOT env
    Project root; auto-detected by walking up for project.godot
  • GODOT_LSP_TIMEOUT env
    Seconds to wait for a single LSP response
  • GODOT_DIAGNOSTICS_TIMEOUT env
    Seconds to wait for diagnostics after a sync
  • GODOT_VERSION env
    Override Godot capability detection
  • GODOT_FIND_FILE_LIMIT env
    Max files gdscript_find inspects across the project
  • GODOT_RUNTIME_MAX_SESSIONS env
    Max games runtime_run keeps running at once

Descriptions are as written by the maker.

These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.

At a glance

Downloads per weeki
133/wk
Licencei
Apache-2.0
Connection
Runs on your computer
Latest versioni
1.2.0
Published to registryi
Oct 18, 2026
Code last changedi
Oct 18, 2026
Maker
pzalutski-pixel
Packages
npm: godotlens-mcp
pypi: godotlens-mcp
Registry status
Active

Which apps can use it

Based on how this server connects and on each app’s own docs, checked Nov 10, 2026.

Run on your computer in

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast

All apps, with pros and cons →

Related guides

What it can do

Runs on your computer; the tool list appears in your AI app after you install it.

Basic checksi

We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 20, 2026

  • ✓ Pass

    Maker matches the repo

    The registry name was verified with the GitHub account pzalutski-pixel, which owns the repo

  • ✓ Pass

    Still maintained

    Code last changed 33 days ago

  • ✓ Pass

    Has a licence

    Uses Apache-2.0

  • – Not applicable

    Endpoint responds

    This one runs on your computer; there is no internet endpoint

  • – Not applicable

    Sign-in with OAuth

    Runs on your computer and uses local settings instead

  • … Not checked yet

    No hidden instructions in tool descriptions

    Runs on your computer; we can only read tool lists from internet endpoints

Published vulnerabilities (OSV.dev)

No entries on OSV.dev for godotlens-mcp@1.2.0

Checks only this package version, not every dependency · checked Nov 15, 2026

What we check → · JSON

Makers: ask for a re-check or report wrong info
For makers: add a badge to your README

If you made this, paste this code into your README. The badge links back to this page.

[![Featured on PopNx MCP](https://mcp.popnx.com/badge/pzalutski-pixel-godotlens.svg)](https://mcp.popnx.com/en/servers/pzalutski-pixel-godotlens)

Discussion

Ask, share a tip or report that it does not work. Sorted by what people marked helpful.

No posts yet. Be the first to ask or share.

Posts here are written by users, not the PopNx team.

Sign in to post

User reviews

No reviews yet

Sign in to write a review

Compared with others in Games, sports, food & learningi

  • More stars than 96% of the other 1623 servers in this category
  • Published to the registry more recently than 44% of the other 1623 servers in this category
  • Basic checks equal to or better than 99% of the other 1623 servers in this category

Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.

Common questions

Is GodotLens safe?

It passed 3 of 3 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.

What keys or codes does it need?

The registry does not list a required key, though some servers ask you to sign in on first use.

Does it run on my computer or in the cloud?

It runs on your computer. Your AI app starts it when needed, and data does not pass through the maker’s servers (unless it calls an online service itself).

Is it still maintained?

The GitHub repo last changed 33 days ago, and the latest version (1.2.0) reached the registry 33 days ago.

Which apps can use it?

Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need Node.js, Python (uv) on your computer.

What can I use instead?

In the same category: Anime Garden, WilmAI, Lumify Sports Intelligence, Savecraft, GoodWatch

Similar alternatives

Same category, other makers, commands already checked. Official ones first, then by stars.

Reading a card:↓ Downloads per weeki★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi

WilmAI

Finland's Wilma school system for parents and students: schedule, homework, exams and messages.

by aikarjalGrowing↓ 1.4K/wk★ 89 Stars for the whole repoUpdated 11 days ago

Runs on your computer✓ service owner · wilm.ai

Savecraft

Savecraft serves real save game data and expert game knowledge to AI assistants.

by joshsymondsEarly★ 13Updated 7 months ago

Runs in the cloudRepo archived✓ service owner · savecraft.gg

GoodWatch

Find movies and TV shows, track watches, and get suggestions based on your taste.

by alp82Early★ 50 Stars for the whole repoUpdated 31 days ago

Runs in the cloud✓ service owner · goodwatch.app
Compared with similar ones
This one
GodotLens
Anime GardenWilmAILumify Sports IntelligenceSavecraftGoodWatch
Runs whereInstalls on your computerRuns in the cloud, nothing to installInstalls on your computerRuns in the cloud, nothing to installRuns in the cloud, nothing to installRuns in the cloud, nothing to install
Needs a keyNoNoNoYesNoNo
Add with + in ClaudeNoNoNoNoNoNo
Basic checks3/34/43/34/43/44/4
LicenseApache-2.0AGPL-3.0MITMITApache-2.0MIT
PriceNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registry

README from the maker

Open the README

Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.

GodotLens: Godot's own view of your GDScript project

An MCP server that lets an AI agent ask Godot itself about your project — where a symbol is used, what a method's real signature is, whether an edit compiles, how a scene is wired — and run the game, look at it and drive it, so the agent can check that the game does what it meant without a person playing it.

Why

An agent editing GDScript from text alone is guessing. It cannot tell a call from a comment, cannot know which methods exist on a CharacterBody2D in *your* Godot version, cannot see that a signal handler is wired by name inside a .tscn, and cannot see what happened at runtime.

GodotLens never answers those questions itself. It asks the engine and returns the engine's answer. Measured on Godot 4.7.1, in a project where take_damage is defined in player.gd, called twice from enemy.gd, once from player.gd, and named in a comment:

ApproachResult
grep take_damage5 matches, including the comment
gdscript_referencesexactly 4 real call sites; the comment is not among them

That principle — *delegate every judgement to Godot* — is what makes the answers trustworthy, and it is why the tool names tell you where an answer came from. gdscript_* is the language server. scene_* and project_* run the engine on the project. debug_* is your editor's debugger. runtime_* is a game GodotLens launched and is connected to.

Requirements

Needed for
Godot 4.6+ editor open on your projectgdscript_* and debug_* — the language server and debug adapter live inside the editor
A Godot binary via GODOT_BIN, a ./godot/ directory, or PATHscene_*, project_* and runtime_*, which run the engine themselves and need no editor
Python 3.10+, or Node.js 16+ for npxrunning this server

Godot 4.6 is the floor because the language server changed materially at 4.5 (URI encoding) and 4.6 (document ownership). Older versions are refused with a clear message rather than silently misread.

Install

npx (recommended). The package bundles the server; there are no runtime dependencies.

{

"mcpServers": { "godotlens": { "command": "npx", "args": ["-y", "godotlens-mcp"] } } }

pip

pip install godotlens-mcp
{

"mcpServers": { "godotlens": { "command": "godotlens-mcp" } } }

How to run

SetupWhat worksDo this
Your editor is open — normal developmentEverythingTurn on Import Resources When Unfocused in Editor Settings (below).
No editor — CI, scriptsscene_*, project_*, runtime_*For gdscript_* and debug_*, start a headless editor: godot --path --editor --headless --lsp-port 6005 --dap-port 6006
Games GodotLens launches (runtime_run)runtime_*, beside either of the aboveNothing. Each game is its own process connected to GodotLens; no editor run slot is used.

Import Resources When Unfocused. The editor notices new and changed files only when its window gains focus. An agent-driven editor never gains focus, so a new class_name script stays unknown — every script using it reports the name as undeclared and the game fails to parse — and new assets stay unimported. With this setting on, the editor rescans every half second. It is interface/editor/behavior/import_resources_when_unfocused in 4.7 and interface/editor/import_resources_when_unfocused in 4.6; to set it for one project only, put the 4.6 name under [editor_overrides] in project.godot (4.7 migrates it on load). When a synced file names a class the editor has not registered, gdscript_sync_file waits briefly, then says which class and points here.

Games GodotLens launches. runtime_run starts the game with --remote-debug pointing at GodotLens, so the game connects to GodotLens the way it would to the editor's debugger. Games are headless by default — no window, no sound, nothing takes focus. Pass windowed: true only for runtime_screenshot: the window opens at a far-off position with audio muted, and is then moved fully off-screen, so at most a small corner may show for a moment. Script errors are reported and never stop the game. A game started this way ends when it is stopped, when GodotLens exits, and on Windows even if GodotLens is killed outright. Its log, like that of every engine run GodotLens starts, goes to a temporary file of its own: Godot keeps only the newest five logs per project, and your own play and test logs stay among them.

The helper. runtime_eval and runtime_input need code inside the game. GodotLens passes its own helper.gd to the game with --script for that run only; nothing is written to your project. Godot still loads your project's settings, input map and autoloads, and the helper opens the scene. A project that sets its own main loop type runs without it, and runtime_run with helper: false runs the game exactly as it is.

Several agents. Subagents in one Claude Code session share one GodotLens process (gdscript_status and runtime_status report its server_pid). Calls run concurrently, so a long runtime_run or scene check does not hold up anyone else's query, and each agent can run its own game with runtime_run (GODOT_RUNTIME_MAX_SESSIONS, default 4). Two things are not coordinated: debug_run uses your editor's single run slot, so a second run stops the first; and two agents writing the same file overwrite each other — have one agent write at a time.

The loop

The tools are designed around one cycle. Read it once and the rest of this document is a reference.

flowchart LR

U[" Understand gdscript_find gdscript_references gdscript_hover"] W[" Write gdscript_engine_api gdscript_complete gdscript_validate"] S[" Sync gdscript_sync_file"] V[" Verify gdscript_diagnostics scene_validate project_validate"] R[" Run runtime_run"] O[" Observe & act runtime_tree · runtime_inspect runtime_output · runtime_eval runtime_input · runtime_screenshot"]

U --> W --> S --> V --> R --> O O -- "fix, then runtime_reload" --> W O -- "something is wrong" --> U

classDef step fill:#f5f7fa,stroke:#4a6785,stroke-width:1px,color:#1b2733; class U,W,S,V,R,O step;

  1. Understand. gdscript_find locates a symbol by name; gdscript_references and gdscript_hover explain how it is used and what type it is.
  2. Write. gdscript_engine_api gives real signatures instead of recalled ones, gdscript_complete offers scene-aware candidates, and gdscript_validate checks proposed content *before* it reaches disk.
  3. Sync. Godot's language server does not watch the filesystem. After editing a .gd file, call gdscript_sync_file or it keeps answering from the old text.
  4. Verify. gdscript_diagnostics for compile errors, scene_validate for what the compiler cannot see in a scene, project_validate after moving files.
  5. Run. runtime_run starts the game and returns its first output and errors.
  6. Observe and act. See the live tree and values, press inputs, evaluate expressions, take a screenshot; fix the code and runtime_reload it into the running game.

Two conventions apply throughout:

  • All line and character parameters are 0-indexed, matching the LSP. Editor line 1 is line 0. gdscript_find exists partly so you rarely have to compute one by hand.
  • Results carry a `verified` flag where it matters. verified: false with an empty diagnostics list means Godot never reported back — that is *not* a clean bill of health.

Tools

Understanding code
ToolDescription
gdscript_findLocate a declaration by name. Returns a position the tools below accept directly.
gdscript_definitionWhere a symbol is defined.
gdscript_referencesEvery reference project-wide. On 4.6+ this reparses every .gd file, so it is not cheap.
gdscript_references_in_fileOccurrences within one file. Much cheaper. Godot 4.7+.
gdscript_hoverType information and documentation for a symbol.
gdscript_symbolsThe symbol tree of a file.
gdscript_signature_helpParameter info at a call site.
gdscript_symbols_batch, gdscript_definitions_batch, gdscript_references_batchThe same, across many files or positions in one call.
Writing code
ToolDescription
gdscript_engine_apiSignatures and docs for an engine class or member, from the exact build in use, including members inherited from parent classes. Use instead of recalling Godot's API.
gdscript_completeCompletions at a position. The only scene-aware query: includes real $NodePath entries and the signals actually on the owning node.
gdscript_validateCheck proposed content for errors without writing it to disk.
gdscript_renameRename a symbol. Refuses when Godot will not rename it, and warns when the name also appears in scene files it cannot update.
Keeping Godot in step
ToolDescription
gdscript_sync_fileSync one modified file and return its diagnostics. Waits briefly for a new class_name the editor has not registered yet.
gdscript_sync_filesSync several at once.
gdscript_release_fileRelease a file so the language server reads from disk again.
gdscript_diagnosticsErrors and warnings for one or more files.
gdscript_statusConnection check. Start here if anything behaves oddly.
Project and scenes

These run the Godot binary, so scenes resolve exactly as the engine builds them, inherited and instanced scenes included. They do not parse .tscn as text, and need no editor.

ToolDescription
project_configAutoload singletons, input action names, class_name globals, and the main scene, via ProjectSettings, with whether each file exists.
project_validateReferences that no longer resolve after files move: scene and resource dependencies, autoload scripts, the main scene. A reference whose UID still resolves is not broken.
scene_stateNode tree, types, script attachments, unique_name_in_owner flags, exported values, and signal connections.
scene_validateWhat Godot gets silently wrong in a scene. Errors: dangling connections, missing signals, handlers taking the wrong number of arguments, unknown node types, scripts that do not fit their node, missing parents, duplicate names. Warnings: unknown properties, wrong value types, NodePaths to nodes not in the scene.
Debugger in your editor

Godot serves a Debug Adapter Protocol server from the editor, no addon required. These use the editor's own run slot — one game at a time — and are the way to set breakpoints.

ToolDescription
debug_runRun the project from the editor and return what it printed and every structured error. args: ["--headless"] runs it with no window.
debug_outputOutput from that game — print, stdout, stderr — and structured errors (push_error, push_warning, engine and script errors) with file, line and stack. Drained on each call.
debug_set_breakpointsSet breakpoints in a file.

| debug_stack_trace | The call stack where

Only the beginning is shown; read the rest in the repo