Command Palette

Search for a command to run...

UnylyUnyly
Browse all

Disable Claude

FreeNot checked

πŸ”§ 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

About

πŸ”§ 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

Installing Disable Claude

This server has no published package β€” it is built from source. Open the repository and follow its README.

β–Έ github.com/zudochkin/disable-claude-mcp

FAQ

Is Disable Claude MCP free?

Yes, Disable Claude MCP is free β€” one-click install via Unyly at no cost.

Does Disable Claude need an API key?

No, Disable Claude runs without API keys or environment variables.

Is Disable Claude hosted or self-hosted?

Self-hosted: the server runs locally on your machine via the install command above.

How do I install Disable Claude in Claude Desktop, Claude Code or Cursor?

Open Disable Claude on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install β€” the config is generated automatically, no JSON editing.

Related MCPs

Compare Disable Claude with

Not sure what to pick?

Find your stack in 60 seconds

Author?

Embed badge for your README

Browse similar

All ai MCPs