Aider MCP server: run Aider from your AI agent
Aider is a terminal coding assistant with no MCP support of its own. Community servers let another agent hand it coding tasks over MCP.
Checked 3 October 2026 · from The Aider repository, issue tracker and scripting docs, the three community repositories, npm, PyPI and the official MCP registry
One of 91 guides to monitoring and developer tools. Each covers what an AI coding agent can get out of the tool through MCP, the protocol that lets the agent query the tool directly.
Summary
Aider is an open-source coding assistant that runs in the terminal and commits its edits to git. The Aider project had not published an MCP server by 3 October 2026.
Three community servers wrap it. The most-starred is disler/aider-mcp-server, with 308 stars and 60 forks, last pushed on 21 May 2025.
The only one in the official MCP registry, RailKill/mcp-aider-executor, fails at startup on a fresh install. Its SDK dependency range now resolves to a release that moved the import it needs.
How Aider works with MCP
Aider edits files in a local git repository from natural-language instructions. Its repository has 49,342 stars, and the latest release on PyPI is 0.86.2, from 12 February 2026.
Aider does not call MCP servers either. Pull request #5539, opened 8 August 2026, would add MCP client support and is still open.
An Aider MCP server lets one agent, such as Claude Code, delegate a coding task to Aider and its chosen model. The calling agent then reviews what Aider changed.
Every vendor here gets the same four checks: official, maintained, distributed and usable. Aider passes 1 of them.
| Check | Result | Evidence |
|---|---|---|
| Official | Fail | Aider has not published an MCP server, or MCP client support, as of 3 October 2026. Issue #3314, opened 20 February 2025, is still open with 24 comments. |
| Maintained | Fail | None of the three community servers has been pushed since 15 May 2026. The most-starred, disler/aider-mcp-server, was last pushed on 21 May 2025. |
| Distributed | Pass | RailKill/mcp-aider-executor is on npm as mcp-aider-executor and in the official MCP registry at version 1.1.0, published 15 May 2026. The other two install from git. |
| Usable | Unknown | mcp-aider-executor 1.1.0 fails at startup on a fresh install, because stable @modelcontextprotocol/server 2.x no longer exports StdioServerTransport from its root. disler/aider-mcp-server installs from a lockfile and was not exercised. |
| Part of the work | What Aider has here | Can an agent reach it |
|---|---|---|
| Code, tests & review | Code edits and commits in a git repository | Partial. Community servers send Aider a task and read the result; scripting Aider from a shell does the same |
| AI cost management | Model choice for delegated coding work | Partial. disler's server sets Aider's model per call, but no tool reports tokens or spend |
Aider is a worker, not a data source. An agent hands it a task and reads the diff it commits. Nothing in Aider stores telemetry an agent would query.
What can an AI agent do with Aider?
mcp-aider-executor exits with a SyntaxError on start
Its code imports StdioServerTransport from the root of @modelcontextprotocol/server, with the range ^2.0.0-alpha.2. A fresh install resolves that range to the latest stable 2.x release.
From 2.0.0, released 27 July 2026, the class is exported only from the ./stdio subpath. The import fails before the server registers any tool.
Guard: Avoid version 1.1.0 until the import moves to @modelcontextprotocol/server/stdio. The client will only report that the server closed.
uvx aider-mcp cannot find the package
sengokudaikon/aider-mcp-server documents uvx aider-mcp as its recommended install. PyPI returned 404 for aider-mcp on 3 October 2026, so that command has nothing to fetch.
Guard: Install it from the cloned repository instead, or use a different wrapper.
Aider commits changes the calling agent never reviewed
Aider commits each edit by default. A delegated task can therefore land several commits before the calling agent reads the diff.
RailKill's server denies all operations unless --whitelist glob paths are passed, which limits where Aider can write.
Guard: Run delegated tasks on a branch, and have the calling agent read git diff before anything merges.
How to configure Aider MCP for agents
- 1
Model keys
Aider reads provider keys such as
ANTHROPIC_API_KEYfrom its environment. Every wrapper passes them through, so the server holds your model credentials. - 2
Working directory
disler's server takes
--current-working-dir; RailKill's takes--whitelist. Point both at one repository, not your home directory. - 3
Model choice
disler's README defaults to an experimental Gemini model ID from March 2025. Pass
--editor-modelexplicitly.
Paste this into your agent’s instructions
When you delegate work to Aider, state: - The instruction sent, the files named and the model Aider used. - The commits Aider created, by hash. Review the diff before reporting the task as done. Do not merge Aider's commits without approval.
Do you need the MCP server at all?
Script Aider directly. Aider's docs describe --message, which runs one instruction, applies the edits and exits. An agent with a shell can do that without any MCP connection.
`disler/aider-mcp-server`. Two tools, aider_ai_code and list_models. It installs with uv sync from a lockfile that pins mcp 1.6.0 and aider-chat 0.81.0, so it does not pick up newer SDK changes.
`sengokudaikon/aider-mcp-server`. Six tools, including edit_files, create_files and git_status. It has 40 stars and a single day of commits, on 14 March 2025.
`RailKill/mcp-aider-executor`. Fourteen tools that run Aider as a detached process and poll aider_check_progress. It needs an import fix before it starts on a fresh install.
Call aider --message from the agent's shell. Use disler's server if your client cannot run shell commands.
Aider integration setup
The shell route needs only Aider installed and a model key in the environment. The MCP route below uses disler's server, which installs from its lockfile.
Script Aider from the agent's shell
Aider applies the instruction to the named files, commits, and exits. The calling agent can then read the commit.
aider --message "add retries to the upload client" src/upload.py git show --stat HEAD
disler/aider-mcp-server in Claude Code
Clone the repository and run uv sync first. Replace both paths, and choose the model Aider should use.
claude mcp add-json "aider" '{"command":"uv",
"args":["--directory","/path/to/aider-mcp-server",
"run","aider-mcp-server",
"--editor-model","<model>",
"--current-working-dir","/path/to/your/repo"]}'Every other client
Each block below is the configuration for one client, with the file path and the key that client expects.
Why mcp-aider-executor 1.1.0 does not start
Its dist/index.js imports McpServer and StdioServerTransport together from the package root. In @modelcontextprotocol/server 2.0.0 and later, the transport lives at the ./stdio subpath.
A one-line change to the import would fix it. Until a new version ships, a fresh npx install fails before any of the 14 tools register.
// what 1.1.0 ships
import { McpServer, StdioServerTransport } from "@modelcontextprotocol/server";
// what stable 2.x expects
import { StdioServerTransport } from "@modelcontextprotocol/server/stdio";What engineers report
Interest is high and still unmet in Aider itself. Issue #3314 has 24 comments since February 2025, and issue #4506 asks for a native MCP server. disler's wrapper, with 308 stars, is the one most engineers have tried.
Should you connect an agent to Aider?
Only if another agent should delegate coding work to Aider. Try scripting it with --message before adding a wrapper. Best for developers who already use Aider and want Claude Code or Cursor to hand it bounded tasks.
- Strongest fit
- Only if another agent should delegate coding work to Aider. Try scripting it with --message before adding a wrapper.
- Main advantage
- Aider can run a different, cheaper model than the calling agent for routine edits.
- Main weakness
- Every server is community-built, and none has been updated since May 2026.
- Operational risk
- Aider commits edits as it goes, so delegated work can land before anyone reviews it.
From Oodle
One platform for agent traces and infrastructure
Agent traces usually sit in a different product from the rest of your telemetry, so when a slow database makes an agent slow the symptom is in one tool and the cause is in another. Oodle keeps both in one query surface.
See agent observabilityFrequently asked questions
Does Aider have an MCP server?
Not from the Aider project. Three community servers wrap it: disler/aider-mcp-server, sengokudaikon/aider-mcp-server and RailKill/mcp-aider-executor.
Can Aider use MCP servers itself?
No. Requests for MCP client support are open, including issue #3314 and pull request #5539.
Why does mcp-aider-executor fail to start?
It imports StdioServerTransport from the root of @modelcontextprotocol/server. Stable 2.x releases export it only from @modelcontextprotocol/server/stdio.
How can an agent drive Aider without MCP?
Run aider --message "<instruction>" <files> from a shell. Aider applies the change, commits it and exits.