---
title: "claude mcp add: connect Clipia to Claude Code"
description: Add the Clipia MCP server to Claude Code with one claude mcp add command, check it with claude mcp list, pick a scope, sign in without a key and generate images and video from the terminal.
icon: Terminal
---

Claude Code connects remote MCP servers with the `claude mcp add` command. After it, the Clipia tools — image, video, voice-over and music generation — are available in your Claude Code sessions, including headless runs and CI. The server address is `https://mcp.clipia.ai/mcp`.

## Add the server [#add]

Create an API key in the [Developer Console](/en/developer), put it in an environment variable and run:

```bash
export CLIPIA_KEY="clipia_live_..."
claude mcp add --transport http clipia https://mcp.clipia.ai/mcp \
  --header "Authorization: Bearer $CLIPIA_KEY"
```

- `--transport http` — Clipia is a remote server over Streamable HTTP.
- `clipia` — the name of the server inside Claude Code.
- `--header` — the key in the `Authorization` header. The shell substitutes `$CLIPIA_KEY` when the command runs, and Claude Code stores the value in its config `~/.claude.json`.

A `clipia_live_` key charges credits and works while the account has an active subscription. A `clipia_test_` key runs in the [sandbox](/en/docs/getting-started/sandbox): instant test results with no charge — handy for checking the setup.

## Check the connection [#check]

```bash
claude mcp list
```

The list should show `clipia` with the address `https://mcp.clipia.ai/mcp` and the Connected status. `claude mcp get clipia` prints the server details; inside a session, the `/mcp` command shows the status and the tool list. Then ask in plain words: "Generate an image of a neon city in Clipia" — the preview lands right in the terminal, and the full-quality file comes as a link.

## Scope: one project or all of them [#scope]

By default the server is added only for the current project. Pick another scope with the `--scope` flag, for example `claude mcp add --scope user --transport http clipia …`:

| Scope | Flag | Where it works | Where it is stored |
| --- | --- | --- | --- |
| local (default) | `--scope local` | the current project, only for you | `~/.claude.json` |
| user | `--scope user` | all your projects | `~/.claude.json` |
| project | `--scope project` | everyone who opens the project | `.mcp.json` in the project root |

`.mcp.json` goes into the repository, so don't write the key there — reference an environment variable instead, and each teammate sets their own `CLIPIA_KEY`:

```json
{
  "mcpServers": {
    "clipia": {
      "type": "http",
      "url": "https://mcp.clipia.ai/mcp",
      "headers": { "Authorization": "Bearer ${CLIPIA_KEY}" }
    }
  }
}
```

## Without a key: sign in to Clipia [#oauth]

Add the server without the header:

```bash
claude mcp add --transport http clipia https://mcp.clipia.ai/mcp
```

Then run `/mcp` in a Claude Code session, choose `clipia` and sign in to your Clipia account in the browser. The sign-in stays valid for 180 days; you can revoke it earlier in the [Developer Console](/en/developer), "Connected apps" tab. Over OAuth the tool set can be narrower than with a key — for example, without `get_balance`.

## Remove or replace the key [#remove]

```bash
claude mcp remove clipia
```

To change the key, remove the server and add it again with the new key. A key revoked in the console stops working at once.

## If it doesn't connect [#troubleshooting]

- **`claude mcp list` doesn't show Connected.** Check the address `https://mcp.clipia.ai/mcp` and that the header starts with `Bearer clipia_`.
- **The server answers that the key is invalid.** The key was revoked or mistyped: create a new one in the [Developer Console](/en/developer).
- **A generation is refused because there is no subscription.** Live keys and OAuth need an active subscription; a `clipia_test_` key works without payment.
- **The tools don't show up in the session.** Claude Code reads the server list when a session starts: restart the session and check `/mcp`.

The full list of tools and their parameters is in [MCP tools](/en/docs/mcp/tools); other clients are in [Use Clipia with AI agents](/en/docs/mcp#connect). What Claude can generate this way — [Claude Image Generation](/en/mcp/claude-image-generation).
