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 theorysearch_r3f_shader_setup("shaderMaterial")
- R3F implementationsearch_particle_shaders("gpu particles")
- Particle systemssearch_threejs_material_modification("onBeforeCompile")
- Advanced material patchingget_all_shader_resources()
- Complete resource list
Documentation Sources
GLSL Fundamentals
- The Book of Shaders - https://thebookofshaders.com/
- OpenGL.org - https://www.opengl.org/
- Khronos OpenGL - https://www.khronos.org/opengl/
- WebGL Fundamentals - https://webglfundamentals.org/webgl/lessons/webgl-shaders-and-glsl.html
- Three.js Manual - Shaders - https://threejs.org/manual/#en/shaders
R3F Implementation
- Maxime Heckel R3F Guide - Complete shader setup tutorial
- TheFrontDev Shadertoy to R3F - Conversion workflow
- Three.js Manual - Shadertoy - https://threejs.org/manual/#en/shadertoy
- Codrops Reveal Effect - Practical shader effects
Particle Systems
- TheFrontDev GPU Particles - Particle basics
- Maxime Heckel Advanced Particles - FBO techniques
- TheFrontDev Curve Particles - Trail effects
Advanced Three.js Material Modification
- Dusan Bosnjak - Extending Materials with GLSL - The definitive onBeforeCompile guide
- Three.js Journey - Modified Materials - Comprehensive material modification lesson
- Codrops - Magical Marbles - Practical onBeforeCompile examples
- Three.js ShaderChunk Source - All shader chunk definitions
- Three.js ShaderLib Source - Built-in material shader programs
- Three.js UniformsLib Source - Uniform definitions
- Three.js UniformsUtils Docs - Uniform utilities API
- Official Modified Materials Example - Live demo
Total: 22 comprehensive documentation sources
Contributing
To add new documentation sources:
- Add the site to
DOCS_SITES
inserver.py
- Create/update relevant search functions
- Test the new content
- Submit a pull request
License
MIT License