Provides a complete debugging environment for Brainfuck programs through six MCP tools. You can load code with configurable tape size and cell value limits, step through execution instruction by instruction, run until completion or input wait, and inspect memory state with windowing. The server handles all eight Brainfuck operations, validates bracket matching, detects overflow and underflow, and manages input/output buffers. Reach for this when you need an LLM to debug or analyze Brainfuck code, whether you're learning esoteric languages, building interpreters, or just need to figure out why your bracket loops aren't behaving.
MCP server for the Brainfuck programming language that allows your favourite LLM to debug Brainfuck programs.
Use this command to run the MCP server:
npx brainfaq-mcp
To use it in VS Code, add the following JSON snippet to .vscode/mcp.json (create the file if you don't have it):
{
"servers": {
"brainfaq-mcp": {
"command": "npx",
"args": ["brainfaq-mcp"]
}
}
}
The MCP can be added to other IDEs with LLM agents support (e.g. Cursor) in similar ways. Check their documentation and configure them to run npx brainfaq-mcp. It will start the MCP server in stdio mode.
>, <, +, -, ., ,, [, ])Setup:
npm i
Build:
npm run build
Tests:
npm run test
Tests are inspired by the Brainfuck test suite by Daniel Cristofani.
Build first the source code using the command above.
Login to NPM:
npm login
Publish to NPM:
npm publish
All work in this repos is licensed under "Creative Commons Attribution-ShareAlike 4.0 International License".