ShaderToy

ShaderToy

MCP server enabling LLMs to query ShaderToy and learn from shaders to generate complex GLSL.

36
Stars
4
Forks
0
Releases

Overview

ShaderToy-MCP is an MCP Server for ShaderToy that connects LLMs (e.g., Claude) to the ShaderToy site through Model Context Protocol (MCP). This enables the LLM to query and read the entire web page, learn from compute shader examples, and generate increasingly complex GLSL shaders that it would not normally be able to produce. The server exposes MCP tools such as get_shader_info() and search_shader() to retrieve shader metadata and locate shaders through prompts. Installation guidance is provided for the uv tool on macOS and Windows, with references to broader installation instructions on uv's site. The README also includes Claude Desktop Integration steps, showing how to configure Claude to run the MCP server via uv and the server script, including an SHADERTOY_APP_KEY placeholder for authentication. Example commands illustrate shader generation workflows. Overall, ShaderToy-MCP is aimed at enabling LLM-assisted shader exploration and creation by leveraging ShaderToy shaders as learning material and source of truth.

Details

Owner
wilsonchenghy
Language
Python
License
MIT License
Updated
2025-12-07

Features

Retrieving shader information

Fetch detailed information about any shader on ShaderToy.

Shader search

Search for ShaderToy shaders through a prompt-driven query.

Complex shader generation

Generate complex GLSL shaders by learning from existing ShaderToy shaders.

Audience

Developers/Researchers using LLMsIntegrate the ShaderToy MCP with Claude Desktop or other LLMs to query ShaderToy data, read shader pages, and generate shader code.