Skip to main content
Glama
GLSL Docs MCP Server

GLSL Docs MCP Server

GLSL Docs MCP Server

A comprehensive MCP server for GLSL shader development with React Three Fiber.

Features

  • GLSL Fundamentals: The Book of Shaders, OpenGL.org, Khronos OpenGL

  • R3F Implementation: Maxime Heckel guides, Shadertoy conversion, Codrops effects

  • Particle Systems: GPU particles, FBO techniques, curve-based effects

Related MCP server: threejs-devtools-mcp

Installation

Prerequisites

  • Python 3.10+

  • Claude Code or Claude Desktop

Setup

git clone https://github.com/yourusername/glsl-docs-mcp.git
cd glsl-docs-mcp
python -m venv .venv
source .venv/bin/activate  # On Windows: .venv\Scripts\activate
pip install -r requirements.txt

Configuration

For Claude Code, add to ~/.claude.json:

{
  "mcpServers": {
    "glsl_docs": {
      "command": "/path/to/glsl-docs-mcp/run_server.sh",
      "args": []
    }
  }
}

For Claude Desktop, add to config file:

{
  "mcpServers": {
    "glsl_docs": {
      "command": "python",
      "args": ["/path/to/glsl-docs-mcp/server.py"]
    }
  }
}

Usage

  • search_glsl_fundamentals("uniforms") - GLSL basics and theory

  • search_r3f_shader_setup("shaderMaterial") - R3F implementation

  • search_particle_shaders("gpu particles") - Particle systems

  • search_threejs_material_modification("onBeforeCompile") - Advanced material patching

  • get_all_shader_resources() - Complete resource list

Documentation Sources

GLSL Fundamentals

  1. The Book of Shaders - https://thebookofshaders.com/

  2. OpenGL.org - https://www.opengl.org/

  3. Khronos OpenGL - https://www.khronos.org/opengl/

  4. WebGL Fundamentals - https://webglfundamentals.org/webgl/lessons/webgl-shaders-and-glsl.html

  5. Three.js Manual - Shaders - https://threejs.org/manual/#en/shaders

R3F Implementation

  1. Maxime Heckel R3F Guide - Complete shader setup tutorial

  2. TheFrontDev Shadertoy to R3F - Conversion workflow

  3. Three.js Manual - Shadertoy - https://threejs.org/manual/#en/shadertoy

  4. Codrops Reveal Effect - Practical shader effects

Particle Systems

  1. TheFrontDev GPU Particles - Particle basics

  2. Maxime Heckel Advanced Particles - FBO techniques

  3. TheFrontDev Curve Particles - Trail effects

Advanced Three.js Material Modification

  1. Dusan Bosnjak - Extending Materials with GLSL - The definitive onBeforeCompile guide

  2. Three.js Journey - Modified Materials - Comprehensive material modification lesson

  3. Codrops - Magical Marbles - Practical onBeforeCompile examples

  4. Three.js ShaderChunk Source - All shader chunk definitions

  5. Three.js ShaderLib Source - Built-in material shader programs

  6. Three.js UniformsLib Source - Uniform definitions

  7. Three.js UniformsUtils Docs - Uniform utilities API

  8. Official Modified Materials Example - Live demo

Total: 22 comprehensive documentation sources

Contributing

To add new documentation sources:

  1. Add the site to DOCS_SITES in server.py

  2. Create/update relevant search functions

  3. Test the new content

  4. Submit a pull request

License

MIT License

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI agents to search for and fetch pre-vetted, production-safe 3D and motion components (React Three Fiber & GSAP) for injection into Next.js apps via AST-safe edits.
      MIT
    • A
      license
      Not graded
      quality
      A
      maintenance
      Enables AI agents to inspect and modify live Three.js scenes in real time through 59 tools covering objects, materials, shaders, textures, animations, performance monitoring, memory diagnostics, and code generation. Works with vanilla Three.js, React Three Fiber, and any framework without changing your project, using an injected browser bridge and in-page devtools overlay.
      6,808 npm
      MIT
    • A
      license
      Not graded
      quality
      A
      maintenance
      Enables AI agents to inspect a running Three.js scene in the browser and try out live edits to objects, materials, shaders, lights, camera and animation without touching project files. Every change is recorded and can be exported as ready-to-paste vanilla Three.js or React Three Fiber code, alongside performance audits and frame capture.
      6,808 npm
      MIT
    • A
      license
      Not graded
      quality
      A
      maintenance
      Enables AI agents to inspect and edit Three.js scenes, materials, shaders, lights, animations, and performance in real time, preview changes live in the browser, capture frames, and turn approved changes into code. It supports vanilla Three.js and React Three Fiber across WebGL/WebGPU without modifying the project.
      6,808 npm
      MIT