glsl-docs-mcp-server

kris-sorensen/glsl-docs-mcp-server

3.2

If you are the rightful owner of glsl-docs-mcp-server 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 comprehensive MCP server for GLSL shader development with React Three Fiber.

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

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