Building an open-source MCP server for AI coding IDEs
VIBETTER gives Claude Code, Cursor and Windsurf five tools for explaining a codebase, with file and line references you can check yourself.
Update, October 2026: this post describes the first version. Version 2.0.0, now on main, checks every citation in code and builds the graph from static imports, and its install steps differ. The case study covers what changed and what broke.
AI coding assistants see your repo as flat text. They don't know how files relate, what changed in the last commit, or where a piece of logic lives, so their explanations drift toward the generic. I built VIBETTER to give them a better read of the code.
It's an open-source MCP server. You register it once, and it works in Claude Code, Cursor, Windsurf and Claude Desktop. It needs Python 3.10 or newer.
claude mcp add vibetter -s user -- ~/.vibetter/venv/bin/python -u ~/.vibetter/backend/src/server.pyFive tools
explain_last_change()explains the latest diff, including why the code changed.scholar_explain(file_path, question)answers a question about a file with file:line references.debug_error_in_context(error_message, file_path?)reads an error next to the code around it.generate_blueprint()draws a dependency graph from up to 50,000 characters of source.generate_audio_overview(question, file_path?)records a spoken walkthrough.
It runs on Anthropic, OpenAI, Gemini or a local model through Ollama. You pick one in the config file.
Why MCP
I could have written a plugin for a single editor. Building on the Model Context Protocol meant one server works in all of them, and FastMCP 3.0 keeps each tool to a few lines.
Citations you can check
The point of a code explanation is that you can verify it. Every answer is prompted to cite the files and lines it relied on, so you can jump to the source and check. To be clear about the limits: the citations come from the model and aren't validated in code. Treat them as pointers, not proof.
Falling back
A tool that dies mid-session gets uninstalled. If the primary model errors or hits a rate limit, VIBETTER retries on another one, so the session keeps going.
It's MIT licensed and on GitHub at neerajbhargav/vibetter.