MCP Catalogs
Home

shaderc-vkrunner-mcp

by mehmetoguzderin·6·Score 34

A toy MCP server for AI agents to safely code, compile, and run GPU shaders using Vulkan via CPU emulation.

developer-toolsai-llmother
2
Forks
13
Open issues
9 mo ago
Last commit
2d ago
Indexed

Overview

The shaderc-vkrunner-mcp provides a secure sandbox for AI agents to develop, compile, optimize, and run GPU shaders entirely locally. It uses Mesa's software Vulkan implementation to run shaders on CPU, eliminating risks of GPU crashes or device issues. This approach enables testing advanced features like atomics, subgroups, and raytracing without physical GPU hardware, making it ideal for AI model experimentation with shader code.

Try asking AI

After installing, here are 5 things you can ask your AI assistant:

you:AI-assisted shader development and optimization
you:Vulkan shader education and experimentation
you:Testing shader features without physical GPU hardware
you:What hardware is required to use this MCP server?
you:Can I use this with other MCP clients besides VS Code?

When to choose this

Choose this when you need to develop and test GPU shaders without physical hardware, particularly for educational purposes or prototyping complex shader algorithms in a safe environment.

When NOT to choose this

Don't choose this if you need to test with actual GPU hardware, require high-performance shader execution, or need production-ready visualization tools - this is primarily an educational/development tool.

Tools this server exposes

1 tool extracted from the README
  • compile_run_shaders

    Compile and run GPU shaders using shaderc and VkRunner

Note: Tool name was inferred from the VS Code Copilot documentation section that mentions using the '#compile_run_shaders' tag in Agent mode. The README doesn't have an explicit tools section listing all available functions, but suggests shader c

Comparable tools

vkrunnershader-playgroundgpu-simulatorwebgpu-mcp

Installation

Installation

  1. Clone the repository:
git clone https://github.com/mehmetoguzderin/shaderc-vkrunner-mcp
cd shaderc-vkrunner-mcp
  1. Build the Docker image:
docker build -t shaderc-vkrunner-mcp -f Dockerfile .

VS Code Integration

Add this to your VS Code mcp.json:

"shaderc-vkrunner-mcp": {
    "type": "stdio",
    "command": "docker",
    "args": [
        "run",
        "--rm",
        "-i",
        "-v", "${workspaceFolder}:/work",
        "shaderc-vkrunner-mcp",
        "--work-dir",
        "/work"
    ]
}

FAQ

What hardware is required to use this MCP server?
Only Docker is required. The server uses CPU emulation to run shaders, so no physical GPU is needed.
Can I use this with other MCP clients besides VS Code?
Yes, it's compatible with any MCP client. You can test it with MCP Inspector using the provided command.

On Hacker News

Recent discussion from the developer community.

Compare shaderc-vkrunner-mcp with

GitHub →

Last updated · Auto-generated from public README + GitHub signals.