Aider MCP Server

Aider MCP Server

aider-mcp-server-danielscholl•bydanielscholl

An MCP server that exposes Aider-based AI coding capabilities and model selection to MCP clients over SSE or stdio transports.

License: Not specified•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Runs one-shot AI coding tasks with Aider to add, fix, or enhance code in specified editable files.
  • •Lists available Aider models filtered by a substring.
  • •Sends a prompt to an LLM and returns its response.
  • •Can be run using SSE or stdio transports.

BEST FOR

  • •Enabling MCP clients to offload focused AI coding tasks to Aider.
  • •Developers who need to query and pick from available Aider models.

ABOUT AIDER-MCP-SERVER-DANIELSCHOLL

Aider MCP Server is cataloged as an MCP server attributed to danielscholl. An MCP server that exposes Aider-based AI coding capabilities and model selection to MCP clients over SSE or stdio transports. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Aider MCP Server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Can I configure which model Aider uses for editing?

Yes, an editor model can be set via command line options or environment configuration, with a default Gemini model.

Can the coding task limit which files are edited?

Yes, the ai_code tool accepts lists of editable files and optional read-only files.

Upstream README

View this exact version on GitHub

README.md · 335b50784c61 · Fetched 2026-11-13 11:16:13 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

Aider MCP Server

A Machine Cognition Protocol (MCP) server that provides AI coding capabilities using Aider.

Status: Beta Python: 3.10+

Table of Contents

Overview

This MCP server leverages Aider, a powerful AI coding assistant, to provide coding capabilities via a standardized API. By discretely offloading work to Aider, we can reduce costs while using model-specific capabilities to create more reliable code through multiple focused LLM calls.

Features

  • AI Code Generation: Run one-shot coding tasks with Aider to add, fix, or enhance code
  • Model Selection: Query available models to choose the most appropriate one for your task
  • Flexible Configuration: Configure Aider sessions with customizable settings
  • Multi-transport Support: Run via Server-Sent Events (SSE) or stdio for flexible integration
  • General Question Answering: Ask an LLM questions using a simple prompt

Prerequisites

  • Python: 3.10 or higher
  • Package Manager: uv (recommended) or pip
  • API Keys: Depending on the models you want to use, you'll need API keys for:
    • OpenAI (for GPT models)
    • Anthropic (for Claude models)
    • Google (for Gemini models)

Installation

  1. Clone the repository:

    git clone https://github.com/your-username/aider-mcp.git
    cd aider-mcp
    
  2. Install the package:

    uv sync
    uv venv
    uv pip install -e .
    
  3. Run the tests to ensure everything is working:

    uv run pytest
    

Configuration

Configure the server behavior using environment variables in a .env file:

# Create environment file from example
cp .env.example .env

Edit the .env file to configure transport, host, port, and API keys.

VariableDescriptionDefaultRequired
TRANSPORTTransport protocol (sse or stdio)sseNo
HOSTHost to bind to when using SSE transport0.0.0.0No
PORTPort to listen on when using SSE transport8050No
OPENAI_API_KEYAPI key for OpenAI models*
ANTHROPIC_API_KEYAPI key for Anthropic models*
GEMINI_API_KEYAPI key for Google Gemini models*

*Required only if using models from that provider

Command Line Options

  • --editor-model: Model to use for editing (default: gemini/gemini-2.5-pro-exp-03-25)
  • --architect-model: Model to use for architecture planning (optional)
  • --cwd: Current working directory (default: current directory)

Running the Server

Start the Server (SSE Mode)

# Using the module directly
uv run python -m aider_mcp_server

Or with custom settings:

uv run python -m aider_mcp_server --editor-model "gemini/gemini-2.5-pro-exp-03-25" --cwd "/path/to/project"

You should see output similar to:

Starting server with transport: sse
Using SSE transport on 0.0.0.0:8050

Using stdio Mode

When using stdio mode, you don't need to start the server separately - the MCP client will start it automatically when configured properly (see Integration with MCP Clients).

MCP Tools

The Aider MCP server exposes the following tools:

ai_code

Run Aider to perform coding tasks.

Parameters:

  • ai_coding_prompt: The prompt for the AI coding task
  • relative_editable_files: List of files that can be edited
  • relative_readonly_files: (Optional) List of files that should be read-only
  • settings: (Optional) Settings for the Aider session

Example:

{
  "ai_coding_prompt": "Add a function that calculates the factorial of a number",
  "relative_editable_files": ["math.py"],
  "settings": {
    "auto_commits": false,
    "use_git": false
  }
}

get_models

List available Aider models filtered by substring.

Parameters:

  • substring: Substring to filter models by

Example:

{
  "substring": "openai"
}

ask_question

Send a prompt to an LLM and return the response.

Parameters:

  • prompt: The question or statement to send
  • model: (Optional) The LLM model to use

Example:

{
  "prompt": "What is the capital of France?",
  "model": "gpt-4o"
}

Integration with MCP Clients

Configure your MCP client to connect to the SSE endpoint:

{
  "mcpServers": {
    "aider-mcp-server": {
      "transport": "sse",
      "serverUrl": "http://localhost:8050/sse"
    }
  }
}

Stdio Integration

Configure your MCP client to run the server via stdio:

{
  "mcpServers": {
    "aider-mcp-server": {
      "transport": "stdio",
      "command": "python",
      "args": ["-m", "aider_mcp_server"],
      "env": {
        "TRANSPORT": "stdio"
      }
    }
  }
}

Integration with MCP Clients

Using Docker

{
    "mcpServers": {
      "aider-mcp-server": {
        "command": "docker",
        "args": [ "run", "-i", "--rm",
          "--mount", "type=bind,source=<YOUR_FULL_PATH>",
          "-e", "TRANSPORT=stdio",
          "-e", "EDITOR_MODEL=gemini/gemini-2.5-pro-preview-03-25",
          "-e", "GEMINI_API_KEY=<YOUR_API_KEY>",
          "danielscholl/aider-mcp-server"
        ]
      }
    }
  }

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Aider MCP Server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/aider-mcp-server-danielscholl)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related developer tools MCP Servers

Alternative and complementary servers in the same category

View all in developer tools →
Postbye
postbye-mcp•postbye-team

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools
Singapore Proxy MCP
singapore-proxy-mcp•Xavierfok

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

0
Developer Tools

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools