AiderMCP
Enables AI-powered code editing and development tasks through natural language conversations with Claude, using Aider's capabilities for improving code, adding features, fixing bugs, refactoring, and checking status.
README
🤖 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
📋 Prerequisites
- Python 3.11 or 3.12 (Download)
- ⚠️ Python 3.13 not yet supported
- Claude Desktop (Download)
- API Key from at least one provider:
- Anthropic
- OpenAI
- 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.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json - Linux:
~/.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
mcpServersobject - If 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 --setup
4. 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.py
Add Features:
Ask aider to add user authentication with JWT tokens
Fix Bugs:
Have aider fix the connection timeout bug in server.py
Refactor Code:
Get aider to refactor the database module for better performance
Check 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 --setup - Check config file exists:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json - Linux:
~/.config/Claude/claude_desktop_config.json
- macOS:
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
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.