# Installation (/mcp/installation)

Authentication is handled via OAuth, with no API keys to copy or manage. Your MCP client will open a browser window to log in with your SparrowDesk account the first time you connect.

## Connect to Claude Desktop

Open (or create) `~/Library/Application Support/Claude/claude_desktop_config.json` and add the SparrowDesk server:

```json
{
  "mcpServers": {
    "sparrowdesk": {
      "type": "http",
      "url": "https://mcp.sparrowdesk.com/mcp"
    }
  }
}
```

Restart Claude Desktop. The SparrowDesk tools will appear in the tool list, and Claude will prompt you to log in with your SparrowDesk account the first time you use one.

## Connect to Claude Code

Run this command in your terminal:

```bash
claude mcp add --transport http sparrowdesk https://mcp.sparrowdesk.com/mcp
```

This adds the server to your Claude Code config. You'll be prompted to authenticate via browser the first time a SparrowDesk tool is called.

## Connect to Cursor

Edit `~/.cursor/mcp.json` (create it if it doesn't exist):

```json
{
  "mcpServers": {
    "sparrowdesk": {
      "type": "http",
      "url": "https://mcp.sparrowdesk.com/mcp"
    }
  }
}
```

Restart Cursor. The SparrowDesk tools will appear in the Agent tool list. Cursor will open a browser window to complete the OAuth login on first use.
