OpenImageDebugger MCP
Lets your AI agent look at image buffers in a live gdb or lldb debugging session.
251 stars on GitHubby OpenImageDebuggerLicense MITUpdated 22 days ago
How to install
This MCP is local: it runs on your computer.
It works in apps installed on your PC (Claude Desktop, Claude Code, Cursor, VS Codeβ¦). Choose your app:
Paste in the terminal:
claude mcp add oid -- uvx oid-mcp
Ready! Now test it
Restart the app and paste one of these requests in the chat:
Show me the buffer named input_image at this breakpoint.
Does the output buffer look the same as the reference buffer?
What it is
OpenImageDebugger is a tool that shows in-memory image buffers, such as OpenCV Mat or Eigen matrices, while you debug with GDB or LLDB. This MCP server gives AI agents eyes on those buffers in a live session. The readme provided covers the viewer, not the MCP tool names.
What it can do
- View in-memory image buffers during a debug session
- Work with OpenCV Mat and Eigen matrices and custom types
- Inspect pixel values and contrast
- Export buffers as PNG or matrix files
When to use
- βΊWhen you are debugging image code and want the AI to see what a buffer looks like
- βΊWhen you want to compare two image buffers at a breakpoint
- βΊWhen you need to check unusual pixel values in a buffer
What you need
Skills that pair well
MCP or skill?
The MCP gives the agent the hands. The skill teaches the right way to use them. Together, the result is better and uses fewer tokens.
node-inspect-debuggerHelps your agent debug Node.js programs step by step, using breakpoints, hidden values, and memory and CPU profiles to find problems.cli-anything-lldbLets your agent debug programs with LLDB from the command line, setting breakpoints, inspecting variables, and reading memory.node-inspect-debuggerHelps your agent debug Node.js programs step by step, using breakpoints, memory snapshots, and CPU profiles to find hidden problems.Frequently asked questions
Is it free and open source?
Yes. The project is open source on GitHub.
Which debuggers work?
GDB and LLDB, with Ubuntu as the main target and experimental macOS and Windows support.
Which buffer types work?
uint8, int16, uint16, int32, uint32, float and double, with up to four channels.
Can I use it in an IDE?
Yes. There are extensions for VS Code and its forks, and a plugin for CLion and Android Studio.
Can I define my own types?
Yes, you can describe them in a .oid/types.json file instead of writing Python.
Does it have tests?
The readme says there are currently no automated tests for any OS.
If it does not work
- βΊRun python3 oid.py --test to check the installation shows the sample buffers.
- βΊCheck the version needs: GDB 15.0.50+ or LLDB 18.1.3+, CMake 3.28.3+ and Python 3.12.3+.
- βΊOn macOS use the Homebrew python3 and lldb, not the Xcode ones.
5 new skills a week. 1 minute to read.