Token导航 LogoToken导航

MCP Server · 开发工具

Aider MCP Server (Disler)

Aider MCP服务器是一个实验性服务,用于将AI编码任务卸载到Aider开源AI编码助手,以提高开发效率和灵活性。

stdio官方级别未说明来源级核验工具 0
开发工具PythonClaude开源工具

快速开始

作者 / 组织
disler
提供方
disler
运行时
Python

工具数量

0

来源目录标注

资源数量

0

来源目录标注

提示词数量

0

来源目录标注

GitHub Star

297

仓库热度

收录来源

3 个

MCP World

选型结论

Aider MCP Server (Disler) 属于开发工具类 MCP Server,公开资料标注 0 个工具,通过stdio 本地进程接入,适配 Claude,有可以直接复制的安装命令;接入前要先准备 API Key。

分类

开发工具

传输方式

stdio

认证方式

API Key

部署方式

仅本地运行

安装与配置

安装命令

uv run pytest

公开命令不是通用的启动方式,拼不出可靠配置示例;请在客户端 MCP 配置里按官方文档填写 command 和 args。

上手步骤

  1. 1

    准备运行环境

    stdio 服务在本地起进程,需要先装好 Python,再按安装命令拉取依赖。

  2. 2

    安装服务

    复制下面的安装命令执行;命令里带占位符的位置换成自己的密钥或路径。

  3. 3

    写入客户端配置

    在客户端的 MCP 配置里填启动命令和参数,保存后完全退出客户端再打开,让新配置生效。

  4. 4

    验证是否可用

    连接成功后客户端会列出 0 个工具,随便调一个只读工具确认能返回结果。

接入前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

详细介绍

MCP服务器助手-实验

模型上下文协议服务器,用于将AI编码工作卸载到Aider,提高开发效率和灵活性。

概述

该服务器允许Claude Code将AI编码任务卸载给Aider,最好的开源AI编码助手。通过将某些编码任务委托给Aider,我们可以降低成本,控制我们的编码模型,并以更协调的方式操作Claude Code来审查和修改代码。

设置

  1. 克隆存储库:
git clone https://github.com/disler/aider-mcp-server.git
  1. 安装依赖项:
uv sync
  1. 创建环境文件:
cp .env.sample .env
  1. 在中配置API密钥 .env 文件(或使用mcpServers的“env”部分)中包含您要在aider中使用的模型所需的api密钥:
GEMINI_API_KEY=your_gemini_api_key_here
OPENAI_API_KEY=your_openai_api_key_here
ANTHROPIC_API_KEY=your_anthropic_api_key_here
...see .env.sample for more
  1. 复制并填写 .mcp.json 进入项目的根目录并更新 --directory 指向此项目的根目录和 --current-working-dir 指向项目的根源。
{
  "mcpServers": {
    "aider-mcp-server": {
      "type": "stdio",
      "command": "uv",
      "args": [
        "--directory",
        "
",
        "run",
        "aider-mcp-server",
        "--editor-model",
        "gpt-4o",
        "--current-working-dir",
        "
"
      ],
      "env": {
        "GEMINI_API_KEY": "",
        "OPENAI_API_KEY": "",
        "ANTHROPIC_API_KEY": "",
        ...see .env.sample for more
      }
    }
  }
}

测试

使用gemini-2.5-pro-exp-03-25进行测试

要运行所有测试,请执行以下操作:

uv run pytest

要运行特定测试,请执行以下操作:

# Test listing models
uv run pytest src/aider_mcp_server/tests/atoms/tools/test_aider_list_models.py

# Test AI coding
uv run pytest src/aider_mcp_server/tests/atoms/tools/test_aider_ai_code.py

注:AI编码测试需要Gemini模型的有效API密钥。确保将其设置在您的 .env 在运行测试之前,请先打开文件。

将此MCP服务器添加到Claude Code

使用添加 gemini-2.5-pro-exp-03-25

claude mcp add aider-mcp-server -s local \
  -- \
  uv --directory "
" \
  run aider-mcp-server \
  --editor-model "gemini/gemini-2.5-pro-exp-03-25" \
  --current-working-dir "
"

使用添加 gemini-2.5-pro-preview-03-25

claude mcp add aider-mcp-server -s local \
  -- \
  uv --directory "
" \
  run aider-mcp-server \
  --editor-model "gemini/gemini-2.5-pro-preview-03-25" \
  --current-working-dir "
"

使用添加 quasar-alpha

claude mcp add aider-mcp-server -s local \
  -- \
  uv --directory "
" \
  run aider-mcp-server \
  --editor-model "openrouter/openrouter/quasar-alpha" \
  --current-working-dir "
"

使用添加 llama4-maverick-instruct-basic

claude mcp add aider-mcp-server -s local \
  -- \
  uv --directory "
" \
  run aider-mcp-server \
  --editor-model "fireworks_ai/accounts/fireworks/models/llama4-maverick-instruct-basic" \
  --current-working-dir "
"

用法

此MCP服务器提供以下功能:

  1. 将AI编码任务卸载到Aider:

- 获取提示和文件路径 - 使用Aider实现请求的更改 - 返回成功或失败

  1. 列出可用型号:

- 提供与子字符串匹配的模型列表 - 有助于发现支持的模型

可用工具

此MCP服务器公开了以下工具:

1. aider_ai_code

此工具允许您运行Aider,根据提供的提示和指定的文件执行AI编码任务。

参数:

  • ai_coding_prompt (string,必填):AI编码任务的自然语言指令。
  • relative_editable_files (字符串列表,必填):文件路径列表(相对于 current_working_dir)允许助手修改。如果文件不存在,它将被创建。
  • relative_readonly_files (字符串列表,可选):文件路径列表(相对于 current_working_dir)Aider可以读取上下文,但不能修改。默认为空列表 [].
  • model (字符串,可选):Aider应使用的主要AI模型来生成代码。默认为 "gemini/gemini-2.5-pro-exp-03-25"。您可以使用 list_models 该工具用于查找其他可用型号。
  • editor_model (字符串,可选):AI模型助手应用于编辑/细化代码,特别是在使用架构师模式时。如果没有提供,主要 model 可能会根据Aider的内部逻辑使用。默认为 None.

示例用法(在MCP请求中):

克劳德代码提示:

Use the Aider AI Code tool to: Refactor the calculate_sum function in calculator.py to handle potential TypeError exceptions.

结果:

{
  "name": "aider_ai_code",
  "parameters": {
    "ai_coding_prompt": "Refactor the calculate_sum function in calculator.py to handle potential TypeError exceptions.",
    "relative_editable_files": ["src/calculator.py"],
    "relative_readonly_files": ["docs/requirements.txt"],
    "model": "openai/gpt-4o"
  }
}

退货:

  • 一句简单的格言:{成功,差异}

- success:boolean-操作是否成功。 - diff:string-对文件所做更改的差异。

2. list_models

此工具列出了Aider支持的与给定子字符串匹配的可用AI模型。

参数:

  • substring (string,必填):在可用模型的名称中搜索的子字符串。

示例用法(在MCP请求中):

克劳德代码提示:

Use the Aider List Models tool to: List models that contain the substring "gemini".

结果:

{
  "name": "list_models",
  "parameters": {
    "substring": "gemini"
  }
}

退货:

  • 与提供的子字符串匹配的模型名称字符串列表。示例: ["gemini/gemini-1.5-flash", "gemini/gemini-1.5-pro", "gemini/gemini-pro"]

建筑

服务器的结构如下:

  • 服务器层:处理MCP协议通信
  • 原子层:独立、纯功能组件

- 工具:特定功能(AI编码、列出模型) - 有用:常量和辅助函数 - 数据类型:使用Pydantic的类型定义

所有组件都经过了彻底的可靠性测试。

代码库结构

该项目分为以下主要目录和文件:

.
├── ai_docs                   # Documentation related to AI models and examples
│   ├── just-prompt-example-mcp-server.xml
│   └── programmable-aider-documentation.md
├── pyproject.toml            # Project metadata and dependencies
├── README.md                 # This file
├── specs                     # Specification documents
│   └── init-aider-mcp-exp.md
├── src                       # Source code directory
│   └── aider_mcp_server      # Main package for the server
│       ├── __init__.py       # Package initializer
│       ├── __main__.py       # Main entry point for the server executable
│       ├── atoms             # Core, reusable components (pure functions)
│       │   ├── __init__.py
│       │   ├── data_types.py # Pydantic models for data structures
│       │   ├── logging.py    # Custom logging setup
│       │   ├── tools         # Individual tool implementations
│       │   │   ├── __init__.py
│       │   │   ├── aider_ai_code.py # Logic for the aider_ai_code tool
│       │   │   └── aider_list_models.py # Logic for the list_models tool
│       │   └── utils.py      # Utility functions and constants (like default models)
│       ├── server.py         # MCP server logic, tool registration, request handling
│       └── tests             # Unit and integration tests
│           ├── __init__.py
│           └── atoms         # Tests for the atoms layer
│               ├── __init__.py
│               ├── test_logging.py # Tests for logging
│               └── tools     # Tests for the tools
│                   ├── __init__.py
│                   ├── test_aider_ai_code.py # Tests for AI coding tool
│                   └── test_aider_list_models.py # Tests for model listing tool
  • src/aider_mcp_server:包含主要应用程序代码。

- atoms:掌握基本构件。这些被设计为具有最小依赖性的纯函数或简单类。 - tools:这里的每个文件都实现了特定MCP工具的核心逻辑(aider_ai_code, list_models). - utils.py:包含共享常量,如默认模型名称。 - data_types.py:为请求/响应结构定义Pydantic模型,确保数据验证。 - logging.py:为控制台和文件输出设置一致的日志记录格式。 - server.py:编排MCP服务器。它初始化服务器,注册在 atoms/tools 目录,处理传入的请求,将它们路由到适当的工具逻辑,并根据MCP协议发回响应。 - __main__.py:提供命令行界面入口点(aider-mcp-server),解析参数,如 --editor-model 并启动中定义的服务器 server.py. - tests:包含反映结构的测试 src 目录,确保每个组件(尤其是原子)按预期工作。

工具与能力

工具数量

0

资源数量

0

提示词数量

0

能力标签

AI编码Python本地部署开发效率任务卸载开源工具

支持客户端

Claude

数量来自来源目录的标注,具体工具清单以官方文档为准。

典型使用场景

让助手直接读代码

把仓库、提交记录和 issue 交给模型检索,补全和重构时不用来回复制文件。

在对话里跑命令

触发构建、测试和脚本,执行结果直接回到上下文,省去切终端。

接进开发流程

把 PR、CI 状态和代码审查接进助手,减少在几个工具之间跳。

选择建议

值得选的地方

  • 只提供 0 个工具,职责集中,接入后不容易误操作。
  • 有现成的安装命令,不用自己找入口,照着跑就能起服务。
  • 3 个目录同时收录,信息可以交叉核对。

先想清楚的地方

  • stdio 方式要求本地装好 Python,换机器要重新装一遍。
  • 需要自备API Key,没有凭据没法直接试。
  • 公开摘要偏短,具体能力和限制要回到仓库确认。

更适合

  • 需要在开发工具场景里让模型直接调用外部能力的人。
  • 已经在用 Claude 的用户,接入路径最短。
  • 想先快速试一下、能接受在本地跑服务的人。

不太适合

  • 完全不想在本地装环境的人。
  • 暂时拿不到API Key的人。
  • 需要厂商级 SLA 和技术支持的生产环境。

同类对比

5 个同类
MCP Server工具数传输方式安装命令收录来源最后核验
Aider MCP Server (Disler)

MCP World · 本页

0stdio有3 个2026-05-17
Git 838e2ec1

MCP World

12stdio有2 个2026-05-17
Markitdown MCP 2c653a5f

MCP World

1stdio有1 个2026-05-17
Context7 831acf40

MCP World

0stdio有1 个2026-05-17
Context7 MCP C671e75a

MCP World

0stdio有1 个2026-05-17

按同分类和工具数量挑出最接近的几条,字段以各自详情页为准。

常见问题

5 条

Aider MCP Server (Disler) 怎么安装?

公开资料给出的安装命令是 uv run pytest,运行环境为 Python。装完后按客户端要求写进 MCP 配置,重启客户端生效。

Aider MCP Server (Disler) 怎么在 Claude Desktop、Cursor 里配置?

它是stdio 本地进程,客户端配置里要写启动命令和参数,运行环境是 Python;保存后完全退出客户端再打开,配置才会生效。

Aider MCP Server (Disler) 收费吗?

本站只整理公开资料,不代收费用,也没有标注具体价格。是否收费取决于服务本身和背后的接口额度,正式使用前按官方说明确认。

Aider MCP Server (Disler) 需要 API Key 吗?

公开资料标注的认证方式是API Key,也就是要先拿到凭据才能连上;凭据只填在自己本地的配置里,不要写进公开仓库。

Aider MCP Server (Disler) 支持哪些客户端?

公开资料标注支持 Claude;其他客户端只要能配置 MCP Server,也能用同样的命令或地址接入。

来源信息

继续浏览同类 MCP