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

# Claude

> Connect Migma MCP to Claude Desktop or Claude Code.

Use Migma MCP with Claude when you want Claude to prepare emails, validate output, create campaigns, or export approved work.

## Claude Desktop

Add Migma to your Claude Desktop config.

<Tabs>
  <Tab title="macOS">
    Edit `~/Library/Application Support/Claude/claude_desktop_config.json`:

    ```json theme={null}
    {
      "mcpServers": {
        "migma": {
          "command": "npx",
          "args": ["-y", "@migma/mcp"],
          "env": {
            "MIGMA_API_KEY": "your_migma_api_key"
          }
        }
      }
    }
    ```
  </Tab>

  <Tab title="Windows">
    Edit `%APPDATA%\Claude\claude_desktop_config.json`:

    ```json theme={null}
    {
      "mcpServers": {
        "migma": {
          "command": "npx",
          "args": ["-y", "@migma/mcp"],
          "env": {
            "MIGMA_API_KEY": "your_migma_api_key"
          }
        }
      }
    }
    ```
  </Tab>
</Tabs>

Restart Claude Desktop after changing the config.

## Claude Code

Add Migma:

```bash theme={null}
claude mcp add migma -- npx -y @migma/mcp
```

Add it for all Claude Code projects:

```bash theme={null}
claude mcp add --scope user migma -- npx -y @migma/mcp
```

Set the API key:

```bash theme={null}
export MIGMA_API_KEY=your_migma_api_key
```

## Verify

Ask Claude:

```text theme={null}
Use Migma to list my brands. Do not send anything.
```

## Next

<CardGroup cols={2}>
  <Card title="Skills" icon="wrench-screwdriver" href="/skills">
    Install Migma skills for guided workflows.
  </Card>

  <Card title="MCP Server" icon="server" href="/mcp-server">
    Remote and local MCP details.
  </Card>
</CardGroup>
