GodotLens
v1.2.0Godot's own view of your GDScript project: code, scenes, and the running game
Values you need
| Variable | What it is | |
|---|---|---|
GODOT_LSP_HOST | optional | Godot language server host Default: 127.0.0.1 |
GODOT_LSP_PORT | optional | Godot language server port (the VS Code extension uses 6008) Default: 6005 |
GODOT_DAP_HOST | optional | Godot debug adapter host Default: 127.0.0.1 |
GODOT_DAP_PORT | optional | Godot debug adapter port, used by the debug_* tools Default: 6006 |
GODOT_BIN | optional | Godot executable, required by scene_*, project_config and runtime_* |
GODOT_PROJECT_ROOT | optional | Project root; auto-detected by walking up for project.godot |
GODOT_LSP_TIMEOUT | optional | Seconds to wait for a single LSP response Default: 15 |
GODOT_DIAGNOSTICS_TIMEOUT | optional | Seconds to wait for diagnostics after a sync Default: 8 |
GODOT_VERSION | optional | Override Godot capability detection |
GODOT_FIND_FILE_LIMIT | optional | Max files gdscript_find inspects across the project Default: 60 |
GODOT_RUNTIME_MAX_SESSIONS | optional | Max games runtime_run keeps running at once Default: 4 |
npm (npx) discovery passed
Requires Node.js 18+
Run in a terminal
claude mcp add godotlens -- npx -y godotlens-mcp@1.2.0Add to
claude_desktop_config.json{
"mcpServers": {
"godotlens": {
"args": [
"-y",
"godotlens-mcp@1.2.0"
],
"command": "npx"
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"godotlens": {
"args": [
"-y",
"godotlens-mcp@1.2.0"
],
"command": "npx"
}
}
}Add to
.vscode/mcp.json{
"servers": {
"godotlens": {
"args": [
"-y",
"godotlens-mcp@1.2.0"
],
"command": "npx",
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.godotlens]
command = "npx"
args = ["-y", "godotlens-mcp@1.2.0"]PyPI (uvx)
Requires uv (https://docs.astral.sh/uv/)
Run in a terminal
claude mcp add godotlens -- uvx godotlens-mcp==1.2.0Add to
claude_desktop_config.json{
"mcpServers": {
"godotlens": {
"args": [
"godotlens-mcp==1.2.0"
],
"command": "uvx"
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"godotlens": {
"args": [
"godotlens-mcp==1.2.0"
],
"command": "uvx"
}
}
}Add to
.vscode/mcp.json{
"servers": {
"godotlens": {
"args": [
"godotlens-mcp==1.2.0"
],
"command": "uvx",
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.godotlens]
command = "uvx"
args = ["godotlens-mcp==1.2.0"]For AI agents
- Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: gdscript_status, gdscript_definition, gdscript_references, gdscript_hover, gdscript_symbols, gdscript_signature_help, gdscript_rename, gdscript_sync_file, ….
- If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.
Machine-readable: install.md · manifest.json