# Connect Gemini CLI

Add the Keywrds MCP server to Gemini CLI.

**Server URL:** `https://keywrds.ai/mcp`

**How it signs in:** Sign in with Keywrds, or an API key

1. Add this to ~/.gemini/settings.json. Gemini CLI asks you to sign in to Keywrds on first use.

```json
{
  "mcpServers": {
    "keywrds": {
      "httpUrl": "https://keywrds.ai/mcp"
    }
  }
}
```

Or with an API key instead of signing in:

```json
{
  "mcpServers": {
    "keywrds": {
      "httpUrl": "https://keywrds.ai/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_API_KEY"
      }
    }
  }
}
```

## Next

Ask Gemini CLI something like "What's the most valuable thing I can fix on my site this week, according to Keywrds?" See the [MCP tools](/docs/mcp/) for everything it can do, and [Connect an agent](/docs/connect/) for permissions and disconnecting.
