NewAgent Observability — find failures before customers do.
Back to directory
Aider logo

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.

Connector
Community only
Coverage
Coding tasks and git changes
Tools
2 to 14, by server
Working route
aider --message from a shell

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.

CheckResultEvidence
OfficialFailAider 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.
MaintainedFailNone 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.
DistributedPassRailKill/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.
UsableUnknownmcp-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 workWhat Aider has hereCan an agent reach it
Code, tests & reviewCode edits and commits in a git repositoryPartial. Community servers send Aider a task and read the result; scripting Aider from a shell does the same
AI cost managementModel choice for delegated coding workPartial. 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. 1

    Model keys

    Aider reads provider keys such as ANTHROPIC_API_KEY from its environment. Every wrapper passes them through, so the server holds your model credentials.

  2. 2

    Working directory

    disler's server takes --current-working-dir; RailKill's takes --whitelist. Point both at one repository, not your home directory.

  3. 3

    Model choice

    disler's README defaults to an experimental Gemini model ID from March 2025. Pass --editor-model explicitly.

Paste this into your agent’s instructions

Terminal
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.

Terminal
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.

Terminal
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.

Terminal
// 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 observability

Frequently 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.

Changelog

  • 20 February 2025. Issue #3314 asked for MCP support in Aider.
  • 15 May 2026. mcp-aider-executor 1.1.0 was published to npm and the official MCP registry.
  • 27 July 2026. @modelcontextprotocol/server 2.0.0 shipped with the stdio transport moved to a subpath, which breaks mcp-aider-executor on fresh installs.

Sources

Every number on the page traces to one of these

  1. Aider scripting documentation, read 3 October 2026
  2. Aider issue #3314, MCP SUPPORT, opened 20 February 2025
  3. Aider pull request #5539, MCP client support, opened 8 August 2026
  4. Aider issue #4506, native MCP server request, opened 9 September 2025
  5. aider-chat on PyPI, 0.86.2 released 12 February 2026
  6. disler/aider-mcp-server, read 3 October 2026
  7. sengokudaikon/aider-mcp-server, read 3 October 2026
  8. RailKill/mcp-aider-executor, read 3 October 2026
  9. mcp-aider-executor in the npm registry, 1.1.0 published 15 May 2026
  10. @modelcontextprotocol/server in the npm registry, 2.0.0 published 27 July 2026

Coding agents that act as MCP clients:

For reviewing what Aider commits: