
wilsonchenghy/shadertoy-mcp 是从 https://github.com/wilsonchenghy/shadertoy-mcp. 导入的 MCP 服务器候选
概览
wilsonchenghy/shadertoy-mcp 是从 https://github.com/wilsonchenghy/shadertoy-mcp. 导入的 MCP 服务器候选
概述(AI 翻译)
面向 ShaderToy 的 MCP 服务器,一个用于创建、运行和共享 GLSL 着色器([[T0])的网站。它通过模型上下文协议(MCP)将像 Claude 这样的大型语言模型与 ShaderToy 连接起来,使大语言模型能够查询和读取整个网页,从而使其能够制作出通常无法处理的越来越复杂的着色器。
它生成的复杂着色器示例:
海洋*** (https://www.shadertoy.com/view/tXs3Wf)
山脉*** (https://www.shadertoy.com/view/W3l3Df)
矩阵数字雨*** (https://www.shadertoy.com/view/33l3Df)
特色
- 检索ShaderToy上任何着色器的信息
- 通过搜索提示搜索ShaderToy上可用的着色器
- 通过学习ShaderToy上的现有着色器生成复杂着色器
MCP工具
- get_shader_info()
- search_shader()
安装
在Mac上,请安装UV格式
在Windows上
然后
否则安装说明在他们官网上:安装UV
Claude桌面集成
用 git clone https://github.com/wilsonchenghy/ShaderToy-MCP.git 克隆了这个项目。
进入Claude>设置>开发者>编辑配置> claude_desktop_config。
本页由 AI 翻译,技术细节请以原文为准。
README
ShaderToy-MCP
MCP Server for ShaderToy, a website for creating, running and sharing GLSL shader (https://www.shadertoy.com/). It connects LLM like Claude with ShaderToy through Model Context Protocol (MCP), allowing the LLM to query and read the entire web page, allowing it to make increasingly complex shader it normally isn’t capable of.
Example of the complex shader it generates:
Ocean (https://www.shadertoy.com/view/tXs3Wf)
Mountains (https://www.shadertoy.com/view/W3l3Df)
Matrix Digital Rain (https://www.shadertoy.com/view/33l3Df)
Features
- Retriving info on any shader on ShaderToy
- Search for shader available on ShaderToy through a search prompt
- Generate complex shaders by learning from existing shaders on ShaderToy
MCP Tools
- get_shader_info()
- search_shader()
Installation
On Mac, please install uv as
brew install uv
On Windows
powershell -c "irm https://astral.sh/uv/install.ps1 | iex"
and then
set Path=C:\Users\nntra\.local\bin;%Path%
Otherwise installation instructions are on their website: Install uv
Claude Desktop Integration
Git clone the project with git clone https://github.com/wilsonchenghy/ShaderToy-MCP.git
Go to Claude > Settings > Developer > Edit Config > claude_desktop_config.json to include the following:
{
"mcpServers": {
"ShaderToy_MCP": {
"command": "uv",
"args": [
"run",
"--with",
"mcp[cli]",
"mcp",
"run",
"/ShaderToy-MCP/src/ShaderToy-MCP/server.py"
],
"env": {
"SHADERTOY_APP_KEY": "your_actual_api_key" // Replace with your API key
}
}
}
}
Once the config file has been set on Claude, you will see a hammer icon for the MCP. Test with the example commands to see if it correctly utilize the MCP tools.
Example Commands
Generate shader code of a {object}, if it is based on someone's work on ShaderToy, credit it, make the code follow the ShaderToy format: void mainImage( out vec4 fragColor, in vec2 fragCoord ) {}
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →配置
{
"mcpServers": {
"ShaderToy_MCP": {
"command": "uv",
"args": [
"run",
"--with",
"mcp[cli]",
"mcp",
"run",
"<path_to_project>/ShaderToy-MCP/src/ShaderToy-MCP/server.py"
],
"env": {
"SHADERTOY_APP_KEY": "your_actual_api_key" // Replace with your API key
}
}
}
}