Lets agents interact with the Godot game engine to work on projects and scenes.
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
claude mcp add godot-leesinliang --env GODOT_PATH='<GODOT_PATH>' -- node /path/to/godot-mcp/build/index.js~/.codex/config.toml
[mcp_servers.godot-leesinliang]
command = "node"
args = ["/path/to/godot-mcp/build/index.js"]
env = { GODOT_PATH = "<GODOT_PATH>" }
# codex mcp add godot-leesinliang --env GODOT_PATH='<GODOT_PATH>' -- node /path/to/godot-mcp/build/index.js~/.cursor/mcp.json
{
"mcpServers": {
"godot-leesinliang": {
"command": "node",
"args": [
"/path/to/godot-mcp/build/index.js"
],
"env": {
"GODOT_PATH": "<GODOT_PATH>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"godot-leesinliang": {
"type": "stdio",
"command": "node",
"args": [
"/path/to/godot-mcp/build/index.js"
],
"env": {
"GODOT_PATH": "<GODOT_PATH>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"godot-leesinliang": {
"command": "node",
"args": [
"/path/to/godot-mcp/build/index.js"
],
"env": {
"GODOT_PATH": "<GODOT_PATH>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"godot-leesinliang": {
"command": "node",
"args": [
"/path/to/godot-mcp/build/index.js"
],
"env": {
"GODOT_PATH": "<GODOT_PATH>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"godot-leesinliang": {
"command": "node",
"args": [
"/path/to/godot-mcp/build/index.js"
],
"env": {
"GODOT_PATH": "<GODOT_PATH>"
}
}
}
}需要的环境变量
GODOT_PATH
把占位值换成你自己的密钥;不要把密钥提交到代码仓库。