aix mcp add

aix mcp add

Add an MCP server configuration

Synopsis

Add an MCP server configuration to the targeted platform(s).

When called without arguments, runs in interactive mode.

For local stdio servers, provide a command and optional arguments. For remote SSE servers, use the –url flag. Environment variables can be set with –env (repeatable). HTTP headers for SSE authentication can be set with –headers (repeatable). Platform restrictions (for Claude Code only) can be set with –platform.

aix mcp add [name] [command] [args...] [flags]

Examples

  # Interactive mode
  aix mcp add

  # Add a local stdio server
  aix mcp add github npx -y @modelcontextprotocol/server-github

  # Add a remote SSE server with headers
  aix mcp add api --url=https://api.example.com/mcp --headers "Auth=Bearer token"

  # Add a local server with environment variables
  aix mcp add db-tools ./db-mcp --env DB_HOST=localhost --env DB_PORT=5432

  # Overwrite existing server
  aix mcp add github npx @modelcontextprotocol/server-github --force

  See Also:
    aix mcp list     - List configured servers
    aix mcp remove   - Remove a server

Options

      --env strings        environment variables in KEY=VALUE format (repeatable)
  -f, --force              overwrite if server already exists
      --headers strings    HTTP headers for SSE auth in KEY=VALUE format (repeatable)
  -h, --help               help for add
      --platform strings   restrict server to specific platform(s): darwin, linux, windows (repeatable)
      --transport string   explicit transport type: stdio, sse
      --url string         remote server endpoint for SSE transport

Options inherited from parent commands

      --log-file string     write logs to file in JSON format
      --log-format string   log format: text, json (default "text")
  -q, --quiet               suppress non-error output
  -v, --verbose count       increase verbosity level (e.g., -v, -vv)

SEE ALSO

  • aix mcp - Manage MCP server configurations
Auto generated by spf13/cobra on 24-Jan-2026