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

# Claude Code

> Add the Nebuly MCP Server to Claude Code from your terminal

Claude Code connects to Nebuly from your terminal. Each person sets it up for themselves.

## Who does what

Each person adds Nebuly in their own Claude Code. Nobody on your team has to set it up for you.

## Before you start

* A Nebuly account with MCP access.
* The [Claude CLI](https://code.claude.com/docs/en/quickstart/) installed.
* Your MCP server URL, shown in the tabs below.

> [tab] SaaS
>
> Use this URL:
>
> ```text theme={null}
> https://mcp.nebuly.com/mcp
> ```
>
> > [!NOTE]
> >
> > If your SaaS account uses a custom authentication URL, ask your Nebuly representative for MCP access. Then use `https://<YOUR_AUTH_URL>/mcp`.

> [tab] Self-hosted
>
> Ask your Nebuly representative to enable MCP access for your deployment. Then use this URL:
>
> ```text theme={null}
> https://<YOUR_AUTH_URL>/mcp
> ```
>
> Replace `<YOUR_AUTH_URL>` with the address of your deployment.

## Set it up

**1. Add the server**

Run this command in your terminal. Replace `<NEBULY_MCP_URL>` with your URL from the tabs above.

```bash theme={null}
claude mcp add --scope user --transport http nebuly-mcp <NEBULY_MCP_URL>
```

The `--scope user` flag makes Nebuly available in all your projects.

**2. Sign in**

Start Claude Code, then run `/mcp`. Select `nebuly-mcp` and choose Authenticate. Sign in with your Nebuly account in the browser that opens.

**3. Test the connection**

Run this to check that `nebuly-mcp` shows as connected:

```bash theme={null}
claude mcp list
```

Then ask Claude Code this. It should answer with your Nebuly projects.

```text theme={null}
List the Nebuly projects I can access.
```

## Troubleshooting

* **`nebuly-mcp` doesn't show as connected.** Run `/mcp` again and choose Authenticate. Sign in with the Nebuly account you use in the UI.
* **The command is not found.** The Claude CLI isn't installed or isn't on your path. Install it and open a new terminal.
* **Self-hosted server doesn't connect.** Check that your MCP URL is correct and that you have MCP access enabled for your deployment.

For more on managing MCP servers in Claude Code, see the [Claude Code documentation](https://code.claude.com/docs/en/mcp).

> [card] [All MCP agents](https://docs.nebuly.com/documentation/nebuly-ai/mcp-server)
>
> Go back to the MCP Server overview and pick another agent.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.