claude --strict-mcp-config

Only use MCP servers from --mcp-config.

Example

claude --strict-mcp-config --mcp-config ./mcp.json

Source: Claude Code CLI reference, checked 2026-10-24.

More flags

  • --settings: Load a settings file or inline JSON for this session.
  • --session-id: Use a specific session UUID.
  • --fork-session: When resuming, create a new session ID instead of reusing the original.

All CLI flags

Remember the flag next time

/cards has a flip-card deck for every Claude Code CLI flag.