godot-mcp-docs

Nihilantropy/godot-mcp-docs

3.4

If you are the rightful owner of godot-mcp-docs and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

A Model Context Protocol (MCP) server for serving Godot documentation to AI assistants.

Tools
7
Resources
0
Prompts
0

Godot MCP Documentation Server

Docker Godot MCP License

A Model Context Protocol (MCP) server that provides AI assistants with access to the complete Godot Engine documentation, helping developers with Godot development by serving documentation directly to LLMs.

Purpose

This server bridges the gap between AI assistants and Godot documentation, allowing developers to get instant, accurate answers about Godot classes, tutorials, and features without leaving their AI chat interface.

Deployment

  1. Clone the repository:

    git clone https://github.com/Nihilantropy/godot-mcp-docs.git
    cd godot-mcp-docs
    
  2. Build the Docker image:

    docker build -f deploy/Dockerfile -t godot-mcp-docs:local .
    
  3. Configure your MCP client (Claude Desktop example):

    {
      "mcpServers": {
        "godot-mcp-docs": {
          "command": "docker",
          "args": [
            "run",
            "--rm",
            "-i",
            "godot-mcp-docs:local"
          ]
        }
      }
    }
    

Documentation Structure

The server provides access to the complete official Godot documentation with this structure:

docs/
ā”œā”€ā”€ _styleguides
ā”œā”€ā”€ _tools
│   └── redirects
ā”œā”€ā”€ about
ā”œā”€ā”€ classes
ā”œā”€ā”€ community
│   └── asset_library
ā”œā”€ā”€ contributing
│   ā”œā”€ā”€ development
│   │   ā”œā”€ā”€ compiling
│   │   ā”œā”€ā”€ configuring_an_ide
│   │   ā”œā”€ā”€ core_and_modules
│   │   ā”œā”€ā”€ debugging
│   │   │   └── vulkan
│   │   ā”œā”€ā”€ editor
│   │   └── file_formats
│   ā”œā”€ā”€ documentation
│   └── workflow
ā”œā”€ā”€ getting_started
│   ā”œā”€ā”€ first_2d_game
│   ā”œā”€ā”€ first_3d_game
│   ā”œā”€ā”€ introduction
│   └── step_by_step
ā”œā”€ā”€ img
└── tutorials
    ā”œā”€ā”€ 2d
    ā”œā”€ā”€ 3d
    │   ā”œā”€ā”€ global_illumination
    │   ā”œā”€ā”€ particles
    │   └── procedural_geometry
    ā”œā”€ā”€ animation
    ā”œā”€ā”€ assets_pipeline
    │   ā”œā”€ā”€ escn_exporter
    │   └── importing_3d_scenes
    ā”œā”€ā”€ audio
    ā”œā”€ā”€ best_practices
    ā”œā”€ā”€ editor
    ā”œā”€ā”€ export
    ā”œā”€ā”€ i18n
    ā”œā”€ā”€ inputs
    ā”œā”€ā”€ io
    ā”œā”€ā”€ math
    ā”œā”€ā”€ migrating
    ā”œā”€ā”€ navigation
    ā”œā”€ā”€ networking
    ā”œā”€ā”€ performance
    │   └── vertex_animation
    ā”œā”€ā”€ physics
    │   └── interpolation
    ā”œā”€ā”€ platform
    │   ā”œā”€ā”€ android
    │   ā”œā”€ā”€ ios
    │   └── web
    ā”œā”€ā”€ plugins
    │   └── editor
    ā”œā”€ā”€ rendering
    ā”œā”€ā”€ scripting
    │   ā”œā”€ā”€ c_sharp
    │   │   └── diagnostics
    │   ā”œā”€ā”€ cpp
    │   ā”œā”€ā”€ debug
    │   ā”œā”€ā”€ gdextension
    │   └── gdscript
    ā”œā”€ā”€ shaders
    │   ā”œā”€ā”€ shader_reference
    │   └── your_first_shader
    ā”œā”€ā”€ ui
    └── xr

Available Tools

  • get_documentation_tree() - Get a tree-style overview of the entire documentation structure
  • get_documentation_file(file_path: str) - Retrieve the content of specific documentation files

Sample Usage

Explore documentation structure:

What documentation is available for Godot?

Get specific class documentation:

Show me the documentation for CharacterBody2D

Learn about tutorials:

What tutorials are available for 2D game development?

Get specific tutorial content:

Show me the first 2D game tutorial

Compare classes:

What's the difference between Node2D and CharacterBody2D?

Recommended System Prompt

For optimal results when working with Godot, use this system prompt:

"When working with Godot game development questions, always search for the latest available documentation using the godot-mcp-docs tools. Start with get_documentation_tree() to understand the documentation structure, then use get_documentation_file() to retrieve specific information about classes, tutorials, or features. Prioritize official Godot documentation over general knowledge when providing Godot-related assistance."

Screenshots

MCP Integration in Claude Desktop

Claude Desktop Integration

Documentation Access Example

Documentation Query Example

Updating Documentation

To update to a newer version of Godot documentation:

Option 1: Rebuild the image

docker build -f deploy/Dockerfile -t godot-mcp-docs:local . --no-cache

Option 2: Update manually inside container

docker run -it --entrypoint /bin/bash godot-mcp-docs:local
# Inside container:
python docs_converter/godot_docs_converter.py
tree docs/. > docs/docs_tree.txt

License

This project is licensed under the MIT License - see the file for details.

The Godot documentation content follows the original Godot documentation licensing:

  • Documentation content (excluding classes/ folder): CC BY 3.0
  • Class reference files (classes/ folder): MIT License
  • Attribution: "Juan Linietsky, Ariel Manzur and the Godot community"