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

# Connect LanderLab MCP to Gemini CLI

> Connect your LanderLab account to Gemini CLI using MCP. Add the server to your Gemini CLI config, sign in once, and manage landing pages, leads, and analytics from your terminal.

## What You Need

* A LanderLab account.
* Gemini CLI installed on your machine. See the [Gemini CLI documentation](https://geminicli.com/docs) for installation instructions.

> **Note:** This guide covers **Gemini CLI** only. The Gemini web app at gemini.google.com does not currently support connecting to external MCP servers.

***

## Step 1: Open the Config File

Gemini CLI stores MCP server configuration in a settings file. Open or create:

```text theme={null}
~/.gemini/settings.json
```

***

## Step 2: Add the LanderLab Server

Add the following to your `settings.json` file. If the file already has content, add the `landerlab` block inside the existing `mcpServers` object.

```json theme={null}
{
  "mcpServers": {
    "landerlab": {
      "httpUrl": "https://api.landerlab.dev/mcp",
      "oauth": {
        "enabled": true
      }
    }
  }
}
```

No API key and no headers are needed.

***

## Step 3: Sign In

Restart your terminal session and run:

```text theme={null}
/mcp auth landerlab
```

Your browser opens a LanderLab sign-in page. Log in, review the access request, and click **Authorize**. Return to the terminal once it confirms.

***

## Verify the Connection

Start a new session and ask:

```text theme={null}
List my LanderLab workspaces
```

Gemini CLI will call `workspaces_list` and return your results.

***

## Example Prompts

* "List all my landers and their publish status"
* "Show analytics for lander X over the last 7 days"
* "Unpublish lander X"
* "Show all leads from workspace 1"

***

## Troubleshooting

**LanderLab tools not available** - Check that the JSON in your `settings.json` is valid (no missing commas or brackets). Confirm the file is saved at `~/.gemini/settings.json` and restart Gemini CLI.

**Server listed but not authenticated** - Run `/mcp auth landerlab` again. If the browser does not open, copy the URL printed in the terminal.

**401 Unauthorized** - Your session expired or access was revoked in LanderLab. Re-run the auth command.

**Migrating from the API key setup** - Remove the `headers` block and the old `url` value, then follow Step 2.
