add_input
Append characters to input buffer. Use when status is WAITING_FOR_INPUT. Outputs the engine status.
Step a Brainfuck program one instruction at a time and watch the tape.
LABSCO SUMMARY
The state is what makes it useful: after every step you can read memory, both pointers and the output so far, with a window around the pointer when the whole tape is too much. run executes to completion and an infinite loop will hang the server, so pass it the instruction limit, or step a fixed count instead.
A Node server that is a Brainfuck interpreter with its debugger exposed: load source, step or run it, feed it input, and read memory, pointers and output at any point.
npx — npx brainfaq-mcp starts it in stdio mode, which is all any client config needs. Licensed CC BY-SA 4.0.
One command — npx -y brainfaq-mcp
USE CASES
Load the source, step a few instructions at a time, and read the tape and pointers between stops.
Run until it blocks, append the characters it is waiting for, and carry on.
Read just the output string produced so far.
Load the same source with a different tape size and cell value limits, and see where it overflows.
Run with an instruction limit rather than to completion, then inspect where it got to.
Counted once with only startup setup. Other versions, modes or optional credentials may expose a different list.
add_inputAppend characters to input buffer. Use when status is WAITING_FOR_INPUT. Outputs the engine status.
get_stateGet the current full state (memory, pointers, output). When windowRadius is not specified, returns the entire tape which may be a large amount of data.
load_codeReset the debugger and load new Brainfuck source code.
read_outputGet the full output string generated so far.
runRun the program until it finishes or waits for input. Infinite loops WILL hang the server. Then outputs the summary of the current state.
stepExecute a specific number of instructions (default 1). Then outputs the summary of the current state.
BEFORE YOU INSTALL
6 tools when we connected.
npx on PATH
CONTEXT COST
Rated by the size of the 6 tool definitions that ride along on every turn, not by how many there are
INSTALLATION
Add the block to your client, or run the command directly.
{
"mcpServers": {
"brainfaq-mcp": {
"command": "npx",
"args": [
"-y",
"brainfaq-mcp"
]
}
}
}npx -y brainfaq-mcp