aider-mcp-server

aider-mcp-server

216

The Aider MCP Server is a model context protocol server aimed at offloading AI coding work to Aider, enhancing coding efficiency and flexibility. It supports running tasks like AI coding and model listings using Aider's capabilities for optimized development processes.

Overview

The Aider MCP Server is an experimental Model Context Protocol server designed to enhance development efficiency by offloading AI coding tasks to Aider, an open-source AI coding assistant. This setup allows users to reduce costs and gain more control over the coding model. The server supports delegating coding tasks, reviewing, and revising code in a more orchestrative manner using Claude Code.

Usage

The server allows users to:

  1. Offload AI Coding Tasks to Aider: Accepts prompts and file paths, implements requested changes using Aider, and returns success or failure.
  2. List Available Models: Provides a list of AI models supported by Aider that match a given substring for model discovery.

Available Tools

  1. aider_ai_code: This tool runs Aider to perform AI coding tasks. It takes a natural language coding prompt, editable file paths, optional readonly file paths, and models to use for code generation.
  2. list_models: Lists available AI models.

Architecture

The server's architecture is structured into several layers, including the server layer for MCP protocol communication and the atoms layer for pure functional components like tools, utilities, and data types. All components are thoroughly tested to ensure reliability.