> ## Documentation Index
> Fetch the complete documentation index at: https://docs.augmentcode.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Gemini CLI Quickstart

> Get started with Augment Context Engine MCP in Gemini CLI in minutes

<Tabs>
  <Tab title="Local Server">
    ### 1. Install Auggie CLI

    ```bash theme={null}
    npm install -g @augmentcode/auggie@latest
    ```

    ### 2. Sign in to Augment

    ```bash theme={null}
    auggie login
    ```

    This will open a browser window for authentication.

    ### 3. Configure the MCP server in Gemini CLI

    Gemini CLI reads the MCP server configuration from a settings file. You can configure MCP servers at either the user level (applies to all projects) or project level (applies only to that specific project):

    **Configuration file locations:**

    * **User settings** (global):
      * macOS/Linux: `~/.gemini/settings.json`
      * Windows: `%USERPROFILE%\.gemini\settings.json`
    * **Project settings** (optional): `.gemini/settings.json` in your project's root directory

    Add the following configuration to your Gemini CLI settings file:

    ```json theme={null}
    {
      "mcpServers": {
        "augment-context-engine": {
          "command": "auggie",
          "args": ["--mcp", "--mcp-auto-workspace"]
        }
      }
    }
    ```

    ### 4. Test the integration

    Prompt the Gemini CLI with:

    ```
    Prompt: "What is this project? Please use codebase retrieval tool to get the answer."
    ```

    Gemini CLI should confirm it has access to the `codebase-retrieval` tool.

    See [MCP Server Mode](/cli/reference#mcp-server-mode) for more options.
  </Tab>

  <Tab title="Remote Server">
    1. Sign up at [augmentcode.com](https://augmentcode.com)
    2. Follow the setup instructions at [app.augmentcode.com/mcp/configuration](https://app.augmentcode.com/mcp/configuration)
  </Tab>
</Tabs>
