Command Palette

Search for a command to run...

UnylyUnyly
Весь каталог

Disable Claude

БесплатноНе проверен

🔧 A workaround for selectively disabling mcpServers in Claude Desktop using YAML + yq. Define your config in YAML, mark servers as enabled: false, and generate

GitHubEmbed

Описание

🔧 A workaround for selectively disabling mcpServers in Claude Desktop using YAML + yq. Define your config in YAML, mark servers as enabled: false, and generate a clean JSON config automatically.

README

Claude Desktop does not natively support disabling individual mcpServers via claude_desktop_config.json using flags like enabled: false.

This guide shows a clean and reliable workaround: define your configuration in YAML (where you can mark servers as disabled), and convert it to JSON while filtering out those marked as disabled — using yq.


📦 Prerequisites


🧭 Steps

0. (Optional) Convert existing JSON config to YAML

If you already have a claude_desktop_config.json file and want to migrate to this new workflow:

yq "claude_desktop_config.json" -o=yaml > claude_config.yaml

You can now edit claude_config.yaml freely.


1. Backup your current JSON config

mv claude_desktop_config.json claude_desktop_config.backup.json

2. Create or edit claude_config.yaml

This YAML file allows you to temporarily disable MCP servers via enabled: false:

globalShortcut: ""
mcpServers:
  my-server-1:
    enabled: false
    command: some-command
    args:
      - arg1
      - arg2
  my-server-2:
    command: another-command
    args:
      - --flag
      - value
    env:
      SOME_ENV_VAR: /path/to/data

You can define as many servers as needed. Only those without enabled: false will be kept.


3. Convert YAML to cleaned JSON (skipping disabled servers)

Run this command:

yq -o=json '.mcpServers |= with_entries(select(.value.enabled != false))' claude_config.yaml > claude_desktop_config.json

This will:

  • Remove any mcpServers that are marked enabled: false
  • Output valid JSON Claude Desktop can use

✅ Result Example (claude_desktop_config.json)

{
  "globalShortcut": "",
  "mcpServers": {
    "my-server-2": {
      "command": "another-command",
      "args": [
        "--flag",
        "value"
      ],
      "env": {
        "SOME_ENV_VAR": "/path/to/data"
      }
    }
  }
}

💡 Why this works

Claude Desktop doesn't process enabled: false — but by removing those entries entirely before export, it never sees them.

This gives you a toggle-able YAML workspace with selective activation, while keeping the final JSON clean and compatible.

from github.com/zudochkin/disable-claude-mcp

Установка Disable Claude

У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.

▸ github.com/zudochkin/disable-claude-mcp

FAQ

Disable Claude MCP бесплатный?

Да, Disable Claude MCP бесплатный — установка в пару кликов через Unyly без оплаты.

Нужен ли API-ключ для Disable Claude?

Нет, Disable Claude работает без API-ключей и переменных окружения.

Disable Claude — hosted или self-hosted?

Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.

Как установить Disable Claude в Claude Desktop, Claude Code или Cursor?

Открой Disable Claude на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.

Похожие MCP

Compare Disable Claude with

Не уверен что выбрать?

Найди свой стек за 60 секунд

Автор?

Embed-бейдж для README

Похожее

Все в категории ai