Skip to main content
Glama

mcp-director

一个轻量级的 MCP 服务器,用于为 Claude Code 推荐和管理 MCP 配置文件。

问题

Claude Code 在会话启动时会加载所有已配置的 MCP 服务器。当拥有 20 多个 MCP 时,启动速度会很慢,但你每个会话通常只用到 2-3 个。

解决方案

mcp-director 作为你唯一常驻的 MCP。告诉它你想做什么,它会推荐合适的 MCP 并切换你的 .mcp.json 配置文件。

安装

mcp-director 添加到项目的 .mcp.json 中(如果项目根目录中不存在该文件,请先创建它):

{
  "mcpServers": {
    "mcp-director": {
      "command": "npx",
      "args": ["-y", "mcp-director"]
    }
  }
}

然后启动(或重启)你的 Claude Code 会话。mcp-director 将作为 MCP 工具可用。

注意: 无需全局安装。npx 会自动下载并运行它。

使用方法

一旦 Claude Code 在配置了 mcp-director 的情况下启动,只需自然地与 Claude 对话即可:

1. 初始化 — 导入你现有的 MCP

"Run the init tool"

这会读取你当前的 .mcp.json 并将所有 MCP 导入到 .mcp-director/catalog.json 中,以便 director 了解它们。

2. 获取推荐

"I want to create meeting notes"

Claude 将调用 recommend 并建议相关的 MCP(例如 whisper, notebooklm-mcp)以及匹配的配置文件。

"I need to do some web research"

使用 smart 模式进行 LLM 辅助匹配:

"Recommend MCPs for building a dashboard, use smart mode"

3. 切换配置文件

"Apply the development profile"

这会重写你的 .mcp.json,使其仅包含 github, context7 和 playwright。备份文件将保存为 .mcp.json.bak

"Show me what the design profile would look like" (dry-run)

4. 重启会话

.mcp.json 的更改将在下一次 Claude Code 会话启动时生效。

5. 创建自定义配置文件

"Create a profile called 'data-work' with filesystem and sequential-thinking"

"Add exa to the research profile"

工具

工具

描述

recommend

为任务建议 MCP(支持 smart 模式进行 LLM 辅助匹配)

apply_profile

.mcp.json 切换到某个配置文件(带有备份和试运行功能)

list_profiles

显示可用的配置文件和当前状态

create_profile

创建自定义配置文件

update_profile

从配置文件中添加/删除 MCP

delete_profile

删除自定义配置文件

init

将现有的 .mcp.json 导入到 director 目录中

配置文件

内置配置文件:

配置文件

MCP

minimal

仅 Director

development

GitHub + Context7 + Playwright

research

Exa + Context7 + Sequential Thinking

meeting-notes

Whisper + NotebookLM + Filesystem

communication

Slack + Google Calendar + Linear

design

Figma + Playwright

automation

n8n + Filesystem

full

启用所有 MCP

使用 create_profile 创建你自己的配置文件。

捆绑目录

开箱即用包含 16 个流行的 MCP:

github playwright context7 memory filesystem sequential-thinking slack figma linear whisper notebooklm-mcp exa google-calendar screenpipe n8n-mcp

通过运行 init 或编辑 .mcp-director/catalog.json 来添加你自己的 MCP。

工作原理

  • 包含流行 MCP 的捆绑目录,带有关键字、类别和功能说明

  • init 将你现有的 MCP 导入到本地的 .mcp-director/catalog.json

  • recommend 根据你的任务描述对 MCP 进行评分

  • apply_profile 重写 .mcp.json(带有 .mcp.json.bak 备份)

  • Director 始终在 .mcp.json 中保留自身配置

许可证

MIT

-
security - not tested
A
license - permissive license
-
quality - not tested

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/yut0takagi/mcp-director'

If you have feedback or need assistance with the MCP directory API, please join our Discord server