AiderSAFE
Minimal MCP Server for Aider
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
Model context protocol server for offloading AI coding work to Aider, enhancing development efficiency and flexibility.
Overview
This server allows Claude Code to offload AI coding tasks to Aider, the best open source AI coding assistant. By delegating certain coding tasks to Aider, we can reduce costs, gain control over our coding model and operate Claude Code in a more orchestrative way to review and revise code.
Setup
- Clone the repository:
git clone https://github.com/disler/aider-mcp-server.git
- Install dependencies:
uv sync
- Create your environment file:
cp .env.sample .env
- Configure your API keys in the
.envfile (or use the mcpServers "env" section) to have the api key needed for the model you want to use in aider:
GEMINI_API_KEY=your_gemini_api_key_here OPENAI_API_KEY=your_openai_api_key_here ANTHROPIC_API_KEY=your_anthropic_api_key_here ...see .env.sample for more
- Copy and fill out the the
.mcp.jsoninto the root of your project and update the--directoryto point to this project's root directory and the--current-working-dirto point to the root of your project.
{
"mcpServers": {
"aider-mcp-server": {
"type": "stdio",
"command": "uv",
"args": [
"--directory",
"",
"run",
"aider-mcp-server",
"--editor-model",
"gpt-4o",
"--current-working-dir",
""
],
"env": {
"GEMINI_API_KEY": "",
"OPENAI_API_KEY": "",
"ANTHROPIC_API_KEY": "",
...see .env.sample for more
}
}
}
}Testing
Tests run with gemini-2.5-pro-exp-03-25
To run all tests:
uv run pytest
To run specific tests:
# Test listing models uv run pytest src/aider_mcp_server/tests/atoms/tools/test_aider_lis
e020b13ff62aOBSERVED · 2026-10-03Connect
Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control.
claude mcp add aider-mcp-server -- uvx aider-mcp-server
{
"mcpServers": {
"aider-mcp-server": {
"command": "uvx",
"args": [
"aider-mcp-server"
]
}
}
}Exposed tools (2)
1 read · 1 write · 0 destructive.
| Tool | Risk | Description |
|---|---|---|
aider_ai_code | write | Run Aider to perform AI coding tasks based on the provided prompt and files |
list_models | read | List available models that match the provided substring |
Trust audit
SAFEgrade B · trust 88/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | WARN |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- none-observed
- Network
- none-observed
- Shell
- declared (1 observation(s))
- Dependencies
- pinned
- Secrets in source
- found
Findings (3)
api_key="sk-ds-3f422175ff114212a42d7107c3efd1e4", # fake
.env.sample
Gates applied: no_behavioural_pass, no_license.
e020b13ff62afull audit observations/trust-audit/mcp-server/disler__aider-2.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-03 | e020b13ff62a | SAFE | B | 88 | first audit |
Questions
What is the Aider MCP server?
Minimal MCP Server for Aider
What tools does Aider expose?
2 in total: 1 read-only, 1 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.
Is Aider safe to connect to an agent?
The audit found nothing in the source that contradicts what it says it does, and graded it B (88/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B.
What credentials does Aider need?
No credential environment variables were found in its source, so it appears to need none.
How does Aider run?
It speaks stdio, so it runs as a local process your client starts. It is published on PyPI as aider-mcp-server.
How current is this page?
The grade is for one exact copy of the source (e020b13ff62a), read on 2026-10-03. The repository is watched and re-audited when it changes.