godot-mcp-pilot exposes Godot engine operations as MCP tools, letting AI assistants launch the editor, run projects, create and edit scenes, write GDScript, and inspect assets — all through natural language. Works for both 2D and 3D games.
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
claude mcp add godot-pilot --env GODOT_PATH='<GODOT_PATH>' -- npx godot-mcp-pilot~/.codex/config.toml
[mcp_servers.godot-pilot]
command = "npx"
args = ["godot-mcp-pilot"]
env = { GODOT_PATH = "<GODOT_PATH>" }
# codex mcp add godot-pilot --env GODOT_PATH='<GODOT_PATH>' -- npx godot-mcp-pilot~/.cursor/mcp.json
{
"mcpServers": {
"godot-pilot": {
"command": "npx",
"args": [
"godot-mcp-pilot"
],
"env": {
"GODOT_PATH": "<GODOT_PATH>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"godot-pilot": {
"type": "stdio",
"command": "npx",
"args": [
"godot-mcp-pilot"
],
"env": {
"GODOT_PATH": "<GODOT_PATH>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"godot-pilot": {
"command": "npx",
"args": [
"godot-mcp-pilot"
],
"env": {
"GODOT_PATH": "<GODOT_PATH>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"godot-pilot": {
"command": "npx",
"args": [
"godot-mcp-pilot"
],
"env": {
"GODOT_PATH": "<GODOT_PATH>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"godot-pilot": {
"command": "npx",
"args": [
"godot-mcp-pilot"
],
"env": {
"GODOT_PATH": "<GODOT_PATH>"
}
}
}
}需要的环境变量
GODOT_PATH
把占位值换成你自己的密钥;不要把密钥提交到代码仓库。