This guide walks you through installing and setting up the Godot MCP integration to use Claude with your Godot projects.
- Godot 4.x installed
- Node.js 18+ and npm installed
- Claude desktop application with MCP enabled
- Copy the
godot_mcpfolder from theaddonsdirectory to your Godot project'saddonsfolder - In your Godot project, go to "Project > Project Settings > Plugins"
- Find the "Godot MCP" plugin and enable it
- You should now see a "Godot MCP Server" panel in your editor's right dock
- Navigate to the
serverdirectory in your terminal - Install dependencies:
npm install
- Build the TypeScript code:
npm run build
- Open your Godot project
- In the "Godot MCP Server" panel, set the port (default: 9080)
- Click "Start Server"
- You should see a message confirming the server is running
- In the
serverdirectory, run:npm start
- The server will automatically connect to the Godot WebSocket server
- In Claude desktop app, go to Settings > Developer
- Enable Model Context Protocol
- Add a new MCP tool with the following configuration:
- Name: Godot MCP
- Command:
node /path/to/godot-mcp/server/dist/index.js - Working directory:
/path/to/your/project
- Save the configuration
- When chatting with Claude, you can now access Godot tools
If the MCP Server can't connect to Godot:
- Make sure the Godot WebSocket server is running (check the panel)
- Verify that the port numbers match in both the Godot panel and
godot_connection.ts - Check for any firewall issues blocking localhost connections
If commands are failing:
- Check the logs in both the Godot panel and terminal running the MCP server
- Make sure your Godot project is properly set up and has an active scene
- Verify that paths used in commands follow the correct format (usually starting with "res://")