> ## 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 and manage landing pages, leads, and analytics from your terminal.

## What You Need

* A LanderLab API key. See [Generate an API Key](/mcp/generate-api-key).
* 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:

```
~/.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": {
      "type": "http",
      "url": "https://api.landerlab.dev/api/v2/mcp",
      "headers": {
        "Content-Type": "application/json",
        "Accept": "application/json, text/event-stream",
        "X-API-Key": "ll_live_YOUR_KEY_HERE"
      }
    }
  }
}
```

Replace `ll_live_YOUR_KEY_HERE` with your actual API key.

***

## Step 3: Restart Gemini CLI

Close and reopen your terminal session running Gemini CLI. The LanderLab tools will be available in your next conversation.

***

## Verify the Connection

Start a new session and ask:

```
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.

**401 Unauthorized** - The API key is wrong or revoked. Go to **Organization > API Keys** in LanderLab to check or create a new key.
