Renderdoc MCP 标志

Renderdoc MCP

社区
Linkingooo

MCP server for RenderDoc — AI-assisted GPU frame capture analysis

发布者Linkingooo
代码仓库renderdoc-mcp
语言Python
复刻数
17
星标数
163
可用工具
0
传输类型stdio
分类
链接
  • 将工具接入 AI 工作流

    Renderdoc MCP 提供 MCP 功能,可供兼容的 AI 客户端和智能体使用。

  • 0 个可用工具

    浏览下方可调用的操作;如果服务器提供了名称和描述,也会一并显示。

  • 可直接复制的配置

    使用安装配置片段,在您首选的 MCP 客户端中配置此服务器。

  • 开源社区热度

    关联的代码仓库有 163 个 Star 和 17 个 Fork。

renderdoc-mcp

$\Large\color{#ff69b4}{\textsf{This is a personal }}$ $\Large\color{#ff69b4}{\mathtt{✨ vibe\text{-}coding ✨}}$ $\Large\color{#ff69b4}{\textsf{project —}}$ $\Large\color{#ff69b4}{\textsf{built for fun, not for production use.}}$

$\small\color{gray}{\textsf{I have no idea why this repo has so many stars...}}$

MCP server for RenderDoc — let AI assistants analyze GPU frame captures (.rdc files) for graphics debugging and performance analysis.

Built on the Model Context Protocol, works with Claude Desktop, Claude Code, and any MCP-compatible client.

Features

  • 42 tools covering the full RenderDoc analysis workflow
  • 10 high-level tools for one-call analysis (draw call state, frame overview, diff, batch export, pixel region sampling, etc.)
  • 3 built-in prompts for guided debugging
  • Human-readable output — blend modes, depth functions, topology shown as names not numbers
  • GPU quirk detection — auto-identifies Adreno/Mali/PowerVR/Apple-specific pitfalls from driver name
  • Headless — no GUI needed, runs entirely via RenderDoc's Python replay API
  • Pure Python — single pip install, no build step
  • Supports D3D11, D3D12, OpenGL, Vulkan, OpenGL ES captures

Quick Start

1. Prerequisites

  • Python 3.10+
  • RenderDoc installed (download)
    • You need the renderdoc.pyd (Windows) or renderdoc.so (Linux) Python module
    • It ships with every RenderDoc installation

2. Install

bash
git clone https://github.com/Linkingooo/renderdoc-mcp.git
cd renderdoc-mcp
pip install -e .

3. Find your renderdoc.pyd path

The Python module is in your RenderDoc install directory:

PlatformTypical path
WindowsC:\Program Files\RenderDoc\renderdoc.pyd
Linux/usr/lib/renderdoc/librenderdoc.so or where you built it

You need the directory containing this file.

4. Configure your MCP client

Edit claude_desktop_config.json (Settings → Developer → Edit Config):

json
{
  "mcpServers": {
    "renderdoc": {
      "command": "python",
      "args": ["-m", "renderdoc_mcp"],
      "env": {
        "RENDERDOC_MODULE_PATH": "C:\\Program Files\\RenderDoc"
      }
    }
  }
}

Add to .claude/settings.json:

json
{
  "mcpServers": {
    "renderdoc": {
      "command": "python",
      "args": ["-m", "renderdoc_mcp"],
      "env": {
        "RENDERDOC_MODULE_PATH": "C:\\Program Files\\RenderDoc"
      }
    }
  }
}
bash
# Set the module path
export RENDERDOC_MODULE_PATH="/path/to/renderdoc"   # Linux/macOS
set RENDERDOC_MODULE_PATH=C:\Program Files\RenderDoc  # Windows

# Run
python -m renderdoc_mcp

Usage Examples

Once configured, just talk to your AI assistant:

"Open frame.rdc and show me what's happening in the frame"

"Find the draw call that renders the character model and check its pipeline state"

"Why is my shadow map rendering black? Check the depth pass"

"Analyze performance — are there any redundant draw calls?"

Typical Tool Flow

open_capture("frame.rdc")                     # Load the capture
├── get_capture_info()                         # API, GPU, known_gpu_quirks
├── get_frame_overview()                       # Frame-level stats and render passes
├── get_draw_call_state(142)                   # Complete draw call state in one call
├── diff_draw_calls(140, 142)                  # Compare two draw calls (with implications)
├── export_draw_textures(142, "./tex/")        # Batch export all bound textures
├── save_render_target(142, "./rt.png")        # Save render target snapshot
├── analyze_render_passes()                    # Auto-detect render pass boundaries
├── find_draws(blend=True, min_vertices=1000)  # Search by rendering state
├── sample_pixel_region(rt_id, 0,0,512,512)   # Scan RT region for NaN/Inf/negatives
├── pixel_history(id, 512, 384)               # Debug a specific pixel
├── export_mesh(142, "./mesh.obj")             # Export mesh as OBJ
└── close_capture()                            # Clean up

For performance and diagnostic analysis:

get_pass_timing(granularity="pass")      # Find most expensive render passes
analyze_overdraw()                        # Fill-rate pressure estimate
analyze_bandwidth()                       # Memory bandwidth estimate
analyze_state_changes()                   # Batching opportunities
diagnose_negative_values()               # Find NaN/Inf/negative color values (爆闪)
diagnose_precision_issues()              # R11G11B10, D16, SRGB mismatches
diagnose_reflection_mismatch()           # Reflection artifact diagnosis
diagnose_mobile_risks()                  # Comprehensive mobile GPU risk check

For lower-level inspection, all granular tools remain available:

set_event(142)                                    # Navigate to a draw call
├── get_pipeline_state()                          # Inspect rasterizer/blend/depth
├── get_shader_bindings("pixel")                  # Check what textures/buffers are bound
├── get_cbuffer_contents("pixel", 0, filter="ibl") # Read shader constants (filterable)
├── disassemble_shader("pixel", search="SampleSH") # Shader code with context search
└── save_texture(id, "rt.png")                    # Export a specific texture

Tools

Session Management (4)

ToolDescription
open_captureOpen a .rdc file (auto-closes previous)
close_captureClose current capture and free resources
get_capture_infoCapture metadata: API, action count, resolution, known_gpu_quirks (Adreno/Mali/PowerVR/Apple)
get_frame_overviewFrame-level statistics: action counts by type, texture/buffer memory, render targets, resolution

Event Navigation (5)

ToolDescription
list_actionsList the draw call / action tree — supports filter (name substring) and event_type (draw/clear/copy…)
get_actionFull detail for a single action
set_eventNavigate to an event (required before pipeline queries)
search_actionsSearch by name pattern and/or action flags
find_drawsSearch draw calls by rendering state: blend, min vertices, texture/shader/RT binding

Pipeline Inspection (4)

ToolDescription
get_pipeline_stateFull state: topology, viewports, rasterizer, blend, depth, stencil (human-readable enums)
get_shader_bindingsConstant buffers, SRVs, UAVs, samplers for a shader stage
get_vertex_inputsVertex attributes, vertex/index buffer bindings
get_draw_call_stateOne-call draw analysis: action info, blend formula, depth, stencil, rasterizer, textures with sizes, RTs, shaders

Resource Analysis (4)

ToolDescription
list_texturesAll textures (filterable by format, min width)
list_buffersAll buffers (filterable by min size)
list_resourcesAll named resources (filterable by type, name pattern)
get_resource_usageWhich events read/write a resource

Data Extraction (8)

ToolDescription
save_textureExport to PNG, JPG, BMP, TGA, HDR, EXR, or DDS
get_buffer_dataRead buffer bytes (hex dump or float32 array)
pick_pixelRGBA value at a coordinate
get_texture_statsPer-channel min/max/avg with anomaly detection (NaN/Inf/negative); supports all_slices for cubemaps
read_texture_pixelsRead a rectangular region of pixels (up to 64×64) with per-pixel anomaly flags
export_draw_texturesBatch export all textures bound to a draw call (auto-names, skips placeholders)
save_render_targetSave RT snapshot at an event (color + optional depth)
export_meshExport mesh as OBJ with positions, normals, UVs from post-VS data

Shader Analysis (3)

ToolDescription
disassemble_shaderShader disassembly with auto fallback chain; supports search (keyword + context) and line_range
get_shader_reflectionInput/output signatures, resource binding layout
get_cbuffer_contentsActual constant buffer variable values; supports filter for variable name substring

Advanced (6)

ToolDescription
pixel_historyFull per-pixel modification history across all events
get_post_vs_dataPost-transform vertex data (VS out / GS out)
diff_draw_callsCompare two draw calls — shows state differences with human-readable implications
analyze_render_passesAuto-detect render pass boundaries by Clear/RT switches, summarize each pass
sample_pixel_regionUniform-grid scan of an RT region — detects NaN/Inf/negative/overexposed hotspots
debug_shader_at_pixelPer-pixel shader debug — returns variable trace or pixel value + shader info as fallback

Performance Analysis (4)

ToolDescription
get_pass_timingMost expensive render passes — uses GPU counters if available, falls back to triangle-count heuristic
analyze_overdrawOverdraw estimate per render target group
analyze_bandwidthWrite/read bandwidth estimate per render target
analyze_state_changesFinds redundant state-change patterns and batching opportunities

Diagnostics (4)

ToolDescription
diagnose_negative_valuesScans all float RTs for negative/NaN/Inf — finds first event introducing them, detects TAA accumulation
diagnose_precision_issuesChecks R11G11B10 sign-bit loss, shallow depth buffers, SRGB/linear mismatches
diagnose_reflection_mismatchCompares reflection passes against main scene draws — finds shader/blend/format causes
diagnose_mobile_risksComprehensive check across precision / performance / compatibility / GPU-specific risk categories

Prompts

Built-in prompt templates to guide AI through common workflows:

PromptDescription
debug_draw_callDeep-dive a single draw call: pipeline → shaders → cbuffers → outputs
find_rendering_issueSystematic diagnosis from a problem description
analyze_performanceFrame-wide perf analysis: pass timing, overdraw, bandwidth, state changes

How It Works

AI Assistant ←—MCP—→ renderdoc-mcp server ←—Python API—→ renderdoc.pyd ←→ GPU replay

The server uses RenderDoc's headless replay API (renderdoc.pyd) to:

  1. Open .rdc capture files without the GUI
  2. Replay frames and query pipeline state at any event
  3. Extract textures, buffers, shader data, and pixel history
  4. Return structured JSON for the AI to reason about

Development

bash
# Install in dev mode
pip install -e .

# Run tests (no RenderDoc needed — uses mocks)
python -m pytest tests/ -v

# Project structure
src/renderdoc_mcp/
├── server.py                 # FastMCP server, 3 prompt definitions
├── session.py                # Capture lifecycle, resource/texture caches (singleton)
├── util.py                   # Serialization, enum maps, blend formula, module loader
└── tools/
    ├── session_tools.py      # open/close/info (GPU quirks) + get_frame_overview
    ├── event_tools.py        # list/get/set/search actions + find_draws
    ├── pipeline_tools.py     # pipeline state, shader bindings, vertex inputs + get_draw_call_state
    ├── resource_tools.py     # texture/buffer/resource enumeration
    ├── data_tools.py         # save/read/pick/stats + read_texture_pixels + export_draw_textures, save_render_target, export_mesh
    ├── shader_tools.py       # disassembly (fallback chain, search), reflection, cbuffer contents (filter)
    ├── advanced_tools.py     # pixel history, post-VS data + diff_draw_calls (implications), analyze_render_passes, sample_pixel_region, debug_shader_at_pixel
    ├── performance_tools.py  # get_pass_timing, analyze_overdraw, analyze_bandwidth, analyze_state_changes
    └── diagnostic_tools.py  # diagnose_negative_values, diagnose_precision_issues, diagnose_reflection_mismatch, diagnose_mobile_risks

License

MIT

安装

TypingMind
{
  "mcpServers": {
    "linkingooo-renderdoc-mcp": {
      "command": "python",
      "args": [
        "-m",
        "renderdoc_mcp"
      ],
      "env": {
        "RENDERDOC_MODULE_PATH": "<RENDERDOC_MODULE_PATH>"
      }
    }
  }
}

将 Renderdoc MCP MCP 与多个 AI 模型配合使用

TypingMind 在工作区级别连接 MCP 工具,因此连接 Renderdoc MCP 后,您就可以在 TypingMind 中搭配不同的 AI 模型使用,无需为每个模型单独设置。 此 MCP 通过您设备上的 TypingMind MCP 连接器在本地运行。

本地连接器设置指南

如果 MCP 服务器需要访问您电脑上的本地文件、应用或私有资源,请选择此方式。

1

打开 MCP 设置

在 TypingMind 中,依次前往“设置”、“高级设置”和“模型上下文协议”,然后选择“设置连接器”。

  1. 在您的浏览器中打开 TypingMind。
  2. 点击“设置”图标。
  3. 进入“高级设置”。
  4. 打开“模型上下文协议”部分。
  5. 点击“设置连接器”,然后选择“此设备”。
TypingMind MCP 连接器设置界面,已选择“此设备”
2

运行连接器命令

选择“此设备”,从 TypingMind 复制命令并在终端中运行。使用 MCP 时,请保持该进程运行。

  1. 复制 TypingMind 显示的设置命令。
  2. 在 macOS 上打开“终端”,或在 Windows 上打开 Windows Terminal。
  3. 粘贴并运行命令。
  4. 如果终端询问您是否继续,请确认安装软件包。
  5. 使用 MCP 工具时,请保持终端窗口及其中的进程运行。
3

将 Renderdoc MCP 添加为服务器

当连接器状态为“就绪”时,点击“编辑服务器”,然后粘贴 MCP 服务器配置。

  1. 等待连接器状态显示为“就绪”。
  2. 点击“编辑服务器”。
  3. 粘贴 Renderdoc MCP MCP 服务器配置。
  4. 保存服务器列表。
  5. 如需确认连接器是否仍处于就绪状态,请刷新。
TypingMind MCP 设置界面,显示正在运行的服务器和“编辑服务器”按钮
{
  "mcpServers": {
    "linkingooo-renderdoc-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

在不同模型中使用同一连接

保存服务器列表,打开“插件”,启用 Renderdoc MCP MCP 工具,然后在 TypingMind 中选择任意受支持的 AI 模型,即可在聊天中使用这些工具,或将其分配给智能体。

  1. 在 TypingMind 中打开“插件”页面。
  2. 启用 Renderdoc MCP MCP 工具。
  3. 开始聊天并选择您想使用的 AI 模型。
  4. 在聊天中使用 MCP 工具,或将其分配给 AI 智能体。
  5. 根据需要随时切换到其他 AI 模型,无需重新连接 MCP。
在 TypingMind 聊天中使用已启用的 MCP 工具和选定的 AI 模型
您能使用 Renderdoc MCP 帮我完成这项任务吗?
Renderdoc MCP
当然。我已阅读。
以下是我使用 Renderdoc MCP 得到的结果。

常见问题

Renderdoc MCP MCP 服务器有什么用途?

Renderdoc MCP 是一个 MCP 服务器,可让兼容的 AI 客户端连接外部工具并获取上下文。在 TypingMind 中,只需添加一次此 MCP 服务器,即可在您的 AI 工作区中使用其工具。

可以在 TypingMind 中让多个 AI 模型使用 Renderdoc MCP MCP 吗?

可以。TypingMind 在工作区层面连接 MCP 工具,因此您可以让 Claude、ChatGPT、Gemini 等不同 AI 模型,或您在 TypingMind 中配置的其他模型使用 Renderdoc MCP,而无需为每个模型单独配置 MCP 服务器。

为什么在 TypingMind 中使用 Renderdoc MCP MCP?

TypingMind 将多个 AI 模型、提示词、插件、AI 智能体、API 密钥和 MCP 工具整合到同一个工作区中,是优秀的大语言模型聊天前端之一。连接 Renderdoc MCP 后,您可以在偏好的不同模型中使用其 MCP 工具,同时在 TypingMind 中井然有序地管理聊天工作流程。

如何将 Renderdoc MCP MCP 连接到 TypingMind?

Renderdoc MCP 通过 TypingMind 本地 MCP 连接器运行。当 MCP 服务器需要访问您计算机上的本地文件、桌面应用、命令行工具或私有资源时,这种方式最合适。

Renderdoc MCP MCP 在 TypingMind 中提供哪些工具?

Renderdoc MCP 提供 MCP 功能,您可以在 TypingMind 的插件页面启用这些功能,然后在聊天中使用,或将其分配给 AI 智能体。

使用 Renderdoc MCP MCP 需要向 TypingMind 提供我的 API 密钥吗?

不需要。TypingMind 采用本地优先的设计,让您自行掌控模型提供商、API 密钥、提示词和 MCP 配置。如果 Renderdoc MCP 需要身份验证,请在创建连接时,为该 MCP 服务器添加所需的请求头、OAuth 设置或本地配置。

相关 MCP 服务器

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇