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

# How to connect with Claude

> How to configure Claude Desktop to connect to the Atoti MCP Server, including the `mcpServers` JSON configuration block, `mcp-remote` via `npx`, Base64 Basic Auth passkey generation, and tool discovery verification steps.

> [!NOTE]
>
> ### Atoti Intelligence SDK
>
> This is part of the Atoti Intelligence SDK offer.

This guide explains how to connect Claude Desktop to the Atoti MCP Server.

> [!TIP]
>
> ### OAuth 2.1 browser authentication
>
> If the Atoti Server has OAuth 2.1 enabled, recent versions of Claude Desktop and Claude Code drive
> the browser-based PKCE flow automatically, with no Basic-auth passkey or manual token handling
> required. Skip the `--header "Authorization: Basic {passkey}"` step below and point Claude
> directly at the server's `POST /mcp` URL. Two modes are available: [external IdP discovery
> (Okta, Entra ID, Auth0, Keycloak)](https://docs.activeviam.com/atoti-intelligence/6.2/developer-guide/mcp-server/setup/configure-oauth2-discovery.md) and
> [self-issued mode](https://docs.activeviam.com/atoti-intelligence/6.2/developer-guide/mcp-server/setup/configure-oauth2-self-issued.md), where the Atoti Server acts as its own
> authorization server.

> [!NOTE]
>
> The examples below use the Streamable HTTP transport at `POST /mcp`, which the starter configures by
> default. The older server-sent events transport at `/sse` is deprecated for removal in Spring AI
> 2.0.0; it is served only when the deployment sets `spring.ai.mcp.server.protocol=SSE`, and reaching
> it means pointing the client at `http://localhost:9090/sse` with `--transport sse-only`. See
> [MCP transport](https://docs.activeviam.com/atoti-intelligence/6.2/developer-guide/mcp-server/setup/configure-oauth2-self-issued.md#which-mcp-transport-does-self-issued-mode-use).

## Prerequisites

Before connecting Claude, ensure the following requirements are met:

* Atoti MCP Server is set up and running
* Claude Desktop is installed
* Access to Claude Desktop configuration file
* Atoti application credentials (username and password)

## How to configure Claude Desktop

Add the MCP Server configuration to the Claude Desktop config file. The location of this file depends on the operating system.

The following examples assume the application runs locally on port `9090`. Replace `9090` with the port on which the application is running.

### Option 1: Basic authentication

The following example uses HTTP Basic authentication. Replace `{passkey}` with a Base64-encoded string in the format `Base64(<login>:<password>)`.

```json theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}
{
  "mcpServers": {
    "my-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "http://localhost:9090/mcp",
        "--transport",
        "http-only",
        "--header",
        "Authorization: Basic {passkey}"
      ]
    }
  }
}
```

### Option 2: Bearer token authentication

The following example uses a long-lived JWT bearer token. Replace `<jwt>` with a token generated from the [MCP credentials page](https://docs.activeviam.com/atoti-intelligence/6.2/developer-guide/mcp-server/setup/mcp-credentials-page.md).

```json theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}
{
  "mcpServers": {
    "my-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "http://localhost:9090/mcp",
        "--transport",
        "http-only",
        "--header",
        "Authorization: Bearer <jwt>"
      ]
    }
  }
}
```

The bearer token approach avoids embedding credentials in the configuration file. The MCP credentials page must be enabled in the application before a token can be generated.

## How to generate the passkey

Replace `{passkey}` in the Basic authentication configuration with a Base64-encoded string.

Generate the passkey using the following format:

```
Base64(<login>:<password>)
```

Replace `<login>` and `<password>` with the Atoti application credentials.

## How to verify the connection

After configuring Claude Desktop, verify that the connection works:

1. Restart Claude Desktop
2. Check that Claude discovers the MCP Server tools

![Tool Discovery](https://mintcdn.com/activeviam/_nRu_vr7aRF8TBg3/atoti-intelligence/6.2/images/claude_tool_discovery.png?fit=max\&auto=format\&n=_nRu_vr7aRF8TBg3\&q=85\&s=a2cfe192be74f1c1fbe1570d5e355a32)

3. Test interaction with the Atoti Server by asking Claude to use the available tools

![Claude Answer 1](https://mintcdn.com/activeviam/_nRu_vr7aRF8TBg3/atoti-intelligence/6.2/images/claude_answer1.png?fit=max\&auto=format\&n=_nRu_vr7aRF8TBg3\&q=85\&s=ba2134bda6b0f79b42fa4305b7add2cc)

![Claude Answer 2](https://mintcdn.com/activeviam/_nRu_vr7aRF8TBg3/atoti-intelligence/6.2/images/claude_answer2.png?fit=max\&auto=format\&n=_nRu_vr7aRF8TBg3\&q=85\&s=5b38b799271ab3fca736cc1f353afd9a)

## Troubleshooting

If Claude does not discover the tools, check the following:

* The Atoti application is running and accessible
* The MCP Server endpoint is available at the configured URL
* The passkey is correctly formatted and encoded
* The Claude Desktop configuration file is valid JSON

## Related reading

After connecting Claude, explore additional capabilities:

* [How the Atoti MCP Server works](https://docs.activeviam.com/atoti-intelligence/6.2/developer-guide/mcp-server/setup/how-it-works.md) for the endpoint, the license tier, and how a client authenticates
* [Add custom tools](https://docs.activeviam.com/atoti-intelligence/6.2/developer-guide/mcp-server/custom-tools.md) to extend MCP Server functionality
