> For the complete documentation index, see [llms.txt](https://docs.subsalt.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.subsalt.io/retrieving-data/mcp/connecting-a-client.md). Agents can also search and read this documentation through its [MCP server](https://docs.subsalt.io/~gitbook/mcp).

# Connecting a client

## Connecting a client

The Subsalt MCP server speaks the **Streamable HTTP** transport and authenticates with **OAuth 2.0**. Supported clients must send the required OAuth client ID. Sign-in happens in your browser against your normal Subsalt identity provider — the same login you use for the portal, including SSO — so there is no separate API key to manage.

#### Endpoint

Point your client at your deployment's MCP endpoint:

```
https://mcp.<your-subsalt-domain>/mcp
```

{% hint style="info" %}
Your exact endpoint hostname is specific to your deployment. If you're not sure what it is, ask your Subsalt administrator or check the **Connection details** in the Subsalt portal.
{% endhint %}

The first time a client connects, it opens a browser window for sign-in and authorization. Your client stores and refreshes the resulting token. If a session expires, sign in again. This uses standard OAuth 2.0 discovery ([RFC 9728](https://datatracker.ietf.org/doc/html/rfc9728)).

***

#### Claude Code

Add the server from the command line, then authenticate:

```bash
claude mcp add --transport http --client-id subsalt-mcp subsalt https://mcp.<your-subsalt-domain>/mcp
```

Run `/mcp` inside Claude Code to complete the browser sign-in and confirm the connection is live.

{% hint style="warning" %}
The MCP endpoint requires OAuth and the `subsalt-mcp` client ID. Clients that cannot configure this client ID are not currently supported.
{% endhint %}

***

#### Verifying the connection

Once connected, ask your agent to call the **`instructions`** tool. It returns a short getting-started guide and lists the databases available to you — a quick confirmation that authentication succeeded and that your access is what you expect. From there, follow the standard workflow.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.subsalt.io/retrieving-data/mcp/connecting-a-client.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
