Aider MCP Server logo

Aider MCP Server

by disler

The Aider MCP Server allows Claude Code to offload AI coding tasks to Aider, enhancing development efficiency and flexibility. It delegates coding tasks to Aider to reduce costs and gain control over the coding model.

View on GitHub

Last updated: N/A

What is Aider MCP Server?

The Aider MCP Server is an experimental server that enables Claude Code to delegate AI coding tasks to Aider, an open-source AI coding assistant. It acts as a Model Context Protocol (MCP) server, facilitating communication between Claude Code and Aider.

How to use Aider MCP Server?

To use the server, clone the repository, install dependencies, configure API keys in the .env file, and set up the .mcp.json file with the correct paths and model configurations. Then, add the MCP server to Claude Code using the provided claude mcp add commands with the desired model.

Key features of Aider MCP Server

  • Offloads AI coding tasks to Aider

  • Reduces costs by using open-source models

  • Provides control over the coding model

  • Allows Claude Code to orchestrate and review code

  • Exposes tools for AI coding and model listing

Use cases of Aider MCP Server

  • Automated code refactoring

  • Implementing new features with AI assistance

  • Generating code snippets based on natural language prompts

  • Exploring different AI models for coding tasks

FAQ from Aider MCP Server

What is an MCP server?

MCP stands for Model Context Protocol. An MCP server allows different AI tools and services to communicate and collaborate on tasks.

What is Aider?

Aider is an open-source AI coding assistant that uses large language models to help developers write and modify code.

How do I configure the API keys?

API keys for the AI models (e.g., Gemini, OpenAI, Anthropic) should be configured in the .env file. Refer to the .env.sample file for the required keys.

What models are supported?

The server supports various models, including Gemini, OpenAI, and others. Use the list_models tool to discover available models.

How do I run the tests?

Run all tests using uv run pytest. To run specific tests, use uv run pytest src/aider_mcp_server/tests/...