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
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
mcpServersthat are markedenabled: 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.
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-mcpFAQ
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
Fetch
Web content fetching and conversion for efficient LLM usage.
AWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
by modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
by xuzexin-hzCompare 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
