add_mcp
Add a new MCP server to your Claude configuration by specifying transport (stdio, http, sse) and required details like command or URL, with safety overrides for env, args, and shell metacharacters.
Instructions
Add a new MCP server to the user configuration (~/.claude.json).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env | No | Environment variables to set for the server | |
| url | No | Server URL (required for http/sse transport) | |
| args | No | Arguments to pass to the command | |
| command | No | Command to run (required for stdio transport) | |
| headers | No | HTTP headers (for http/sse transport) | |
| mcp_name | Yes | Name for the new MCP server (alphanumeric, dashes, underscores) | |
| transport | Yes | Transport type: stdio for local process, http/sse for remote server | |
| allow_footgun_env | No | Set true to override the safety refusal when env sets a code-injection key like NODE_OPTIONS, LD_PRELOAD, PYTHONSTARTUP, BASH_ENV. | |
| allow_footgun_args | No | Set true to override the safety refusal when args include code-injection flags like -e/--eval on node, -c on python/bash, -Command on pwsh, /c on cmd. | |
| allow_shell_metacharacters | No | Set true to override the safety refusal when 'command' contains shell metacharacters. Use only for genuinely shell-style commands you trust. |