Global Options
Install globally (user-level) instead of project-level.When this flag is set, the MCP server is installed to the user’s home directory configuration rather than the current project directory.Default:
false (project-level installation)Example:Specify agents to install to. This option can be repeated to target multiple agents.Valid agent values:
cursor, claude-code, vscode, opencode, codex, claude-desktop, gemini-cli, goose, github-copilot-cli, zedExample:Server name to use in the configuration.If not provided, the name is auto-inferred from the target (URL or package name).Example:
Transport type for remote servers.Valid values:
http, sseDefault: http (for remote servers)Note: Local servers (npm packages, commands) always use stdio transport.Example:Alias for
--transport.Valid values: http, sseExample:HTTP header for remote servers. This option can be repeated for multiple headers.Format:
Key: ValueNote: Only applicable for remote server URLs.Example:Skip confirmation prompts and proceed with installation automatically.Default:
false (prompts for confirmation)Example:Install to all agents.When this flag is set, the MCP server is installed to all supported agents. The CLI will skip agents that don’t support the required transport type with a warning.Example:
Add generated project config files to
.gitignore.Note: Only supported for project-scoped installations (not with -g).Example:Installation Scope
| Scope | Flag | Location | Use Case |
|---|---|---|---|
| Project | (default) | .cursor/mcp.json etc. | Committed with your project, shared with team |
| Global | -g | ~/.cursor/mcp.json | Available across all projects |
Transport Types
| Transport | Flag | Description |
|---|---|---|
| HTTP | --transport http | Streamable HTTP (default) |
| SSE | --transport sse | Server-Sent Events (deprecated by MCP but still used) |