AiderMCP
Provides tools to view git status and recent commits, and automatically commit changes made by Aider.
Supports Google Gemini API as a model provider for Aider, allowing code improvements with Gemini models.
Supports OpenAI API as a model provider for Aider, allowing code improvements with OpenAI models.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@AiderMCP improve code quality in src/main.py"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
🤖 AiderMCP: Aider AI Integration for Claude Desktop & Claude Code
AiderMCP is a Model Context Protocol (MCP) server that integrates Aider AI pair programming into Claude Desktop and Claude Code. Use Aider's powerful code editing capabilities through natural language conversations with Claude.
✨ Features
⚡ Zero-Install with uvx: Run directly from GitHub - no cloning or setup required!
🚀 One-Command Setup:
aider-mcp-server --setupfor manual installation🎯 Natural Language Interface: Use Aider through conversational commands
🔧 5 Powerful Tools: Code improvement, feature addition, bug fixing, refactoring, and status checking
🌍 Cross-Platform: Works on macOS, Windows, and Linux
🔐 Multi-Provider: Supports Anthropic, OpenAI, and Google Gemini API keys
Related MCP server: Aider MCP Server
📋 Prerequisites
Python 3.11 or 3.12 (Download)
⚠️ Python 3.13 not yet supported
Claude Desktop (Download)
API Key from at least one provider:
Google AI Studio (default)
Git installed and initialized in your project
🚀 Quick Start with uvx (Recommended)
The fastest way to use AiderMCP - no cloning or installation required!
1. Add to Claude Desktop Config
Edit your Claude Desktop configuration file:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.jsonLinux:
~/.config/Claude/claude_desktop_config.json
Add this configuration:
{
"mcpServers": {
"aider": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/fuzemobi/AiderMCP.git",
"aider-mcp-server"
],
"env": {
"GEMINI_API_KEY": "your-gemini-key-here",
"ANTHROPIC_API_KEY": "your-anthropic-key-here",
"OPENAI_API_KEY": "your-openai-key-here"
}
}
}
}Notes:
Add your API keys (at least one: Gemini, Anthropic, or OpenAI)
If you have other MCP servers, merge this into the existing
mcpServersobjectIf you forked this repo, update the URL to your fork's location
2. Restart Claude Desktop
That's it! uvx will automatically:
Download the repository
Install all dependencies (aider-chat, fastmcp)
Start the MCP server
🔧 Manual Installation (Alternative)
If you prefer manual installation or need to modify the code:
1. Install
# Clone the repository
git clone https://github.com/fuzemobi/AiderMCP.git
cd AiderMCP
# Create virtual environment (Python 3.11 or 3.12)
python3.12 -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
# Install
pip install -e .2. Set API Keys
# macOS/Linux
export GEMINI_API_KEY="your-key-here"
export ANTHROPIC_API_KEY="your-key-here" # optional
export OPENAI_API_KEY="your-key-here" # optional
# Windows PowerShell
$env:GEMINI_API_KEY="your-key-here"3. Configure Claude Desktop
aider-mcp-server --setup4. Restart Claude Desktop
Important: Restart Claude Desktop for changes to take effect.
🎮 Basic Usage
In Claude Desktop or Claude Code
Use natural language to work with Aider:
Improve Code Quality:
Use aider to improve code quality in src/main.pyAdd Features:
Ask aider to add user authentication with JWT tokensFix Bugs:
Have aider fix the connection timeout bug in server.pyRefactor Code:
Get aider to refactor the database module for better performanceCheck Status:
Use aider to show git status and recent commits🛠️ Available Tools
Tool | Description |
improve_code | Improve code quality, add type hints, enhance error handling |
add_feature | Add new features to your application |
fix_bug | Fix bugs and issues in your codebase |
refactor | Refactor code for better structure and performance |
get_status | View git status and recent commits |
Tool Parameters
All tools support these optional parameters:
files: Specific files to work on
model: AI model to use (default:
gemini/gemini-1.5-pro-latest)auto_commit: Automatically commit changes (default:
True)project_path: Project directory path (default: current directory)
🏗️ About Aider
Aider is an AI pair programming tool that works with your code. It can:
Edit multiple files at once
Make coordinated changes across your codebase
Understand your project structure
Follow coding conventions and patterns
Create git commits automatically
AiderMCP makes Aider accessible through Claude's conversational interface, letting you describe what you want in natural language.
🚨 Troubleshooting
Tools not appearing in Claude Desktop?
Restart Claude Desktop after running setup
Re-run:
aider-mcp-server --setupCheck config file exists:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.jsonLinux:
~/.config/Claude/claude_desktop_config.json
Python version errors?
python3 --version # Must be 3.11 or 3.12
# Recreate venv if needed:
rm -rf .venv
python3.12 -m venv .venv
source .venv/bin/activate
pip install -e .API key issues?
# Verify keys are set
echo $GEMINI_API_KEY
# Or add to config file manually after running setup📄 License
MIT License - see LICENSE file for details.
🙏 Acknowledgments
Made with ❤️ for developers who want AI-powered coding in Claude
Available Tools
5 toolsadd_featureB
Add a new feature using Aider
Inputs: feature_description (required), files, model, project_path. Returns: result
fix_bugC
Fix a bug using Aider
Inputs: bug_description (required), files, project_path, error_message. Returns: result
get_statusB
Get Aider and git status
Inputs: project_path. Returns: result
improve_codeC
Use Aider to improve code quality, fix bugs, or implement features
Inputs: instruction (required), files, model, auto_commit, +1 more. Returns: result
refactorC
Refactor code using Aider
Inputs: refactor_goal (required), files, project_path. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
improve_code overlaps significantly with add_feature and fix_bug, as it explicitly includes both fixing bugs and implementing features. This makes it unclear whether an agent should use the generic tool or the specific one. refactor is somewhat distinct but still a code-modification action, adding to the ambiguity.
Most tool names follow a consistent verb_noun pattern (improve_code, add_feature, fix_bug, get_status). The exception is 'refactor', a bare verb, which is a minor deviation but does not significantly harm predictability.
With 5 tools, the server is well-scoped for its purpose of interfacing with Aider. Each tool maps to a distinct type of operation, and the count is neither too thin nor bloated.
The tool set covers the main code-modification workflows (improve, add feature, fix bug, refactor) plus a status check. However, the generic improve_code makes the specific tools redundant, and there are no tools for reverting or committing changes, leaving minor gaps.
Maintenance
Related MCP Connectors
Work on your own computers from Claude or ChatGPT: run commands, edit and search files.
Use AI models for chat, image, and video generation from Claude Code and other MCP hosts.
Source-checked CLI guides and model-aware planning for Claude Code, Codex, and Grok Build.
Run your AI-run company from Claude Code, Codex, Cursor or ChatGPT: inbox, tasks, team, Studio.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that connects Claude and other MCP clients to Aider, enabling AI assistants to efficiently edit files, create new files, and interact with git repositories through natural language.40-
- FlicenseCqualityDmaintenanceAllows Claude Code to offload AI coding tasks to Aider, reducing costs and enabling more control over which models handle specific coding tasks.2308-
- AlicenseCqualityDmaintenanceConnects AI assistants like Claude to the Codex CLI for code analysis, editing, and execution. Supports file references with @ syntax, sandboxed code execution with approval workflows, and structured code changes for automated refactoring and documentation.8140 npm176MIT
- AlicenseAqualityBmaintenanceProvides comprehensive session management for Claude Code with automatic initialization/cleanup, quality checkpoints, and local conversation memory with semantic search for capturing learnings across coding sessions.6338 PyPI4BSD 3-Clause