> For the complete documentation index, see [llms.txt](https://docs.balkan.id/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.balkan.id/balkanid-mcp/installation-and-setup/claude-desktop.md). Agents can also search and read this documentation through its [MCP server](https://docs.balkan.id/~gitbook/mcp).

# Claude Desktop

Connect Claude to BalkanID MCP from [Claude Desktop](https://claude.ai/download) or [Claude.ai](https://claude.ai).

BalkanID is listed in the Claude Directory: [**BalkanID in the Claude Directory**](https://claude.ai/directory/balkanid). Installing from the listing is the recommended path. You do not need to enter a server URL.

**Recommended:** have your **organization owner** add BalkanID for the whole organization on Claude Team / Enterprise (see [Enterprise Rollout](https://docs.balkan.id/balkanid-mcp/enterprise-rollout.md)). Personal setup is supported when your plan allows it, but is **at your own risk** and must follow your company's AI and data policies.

Use a **custom connector** only when your organization does not allow directory connectors, and **`mcp-remote`** in Claude Desktop's config file only when no connector path is available.

### Choose your path

| Path                                              | When to use                                                         | Auth             |
| ------------------------------------------------- | ------------------------------------------------------------------- | ---------------- |
| **Claude Directory — organization** (recommended) | Your Claude organization owner adds BalkanID for everyone           | OAuth            |
| **Claude Directory — personal**                   | Individual Claude account; confirm this is allowed by your employer | OAuth            |
| **Custom connector**                              | Directory connectors are not available to your organization         | OAuth            |
| **Claude Desktop + `mcp-remote`**                 | No connector path available; developer fallback only                | OAuth or API key |

### One-click (OAuth) — Claude Directory (recommended)

BalkanID uses Claude's remote MCP connector flow. Installing from the directory listing needs no URL and no local config.

For employees at a company with Claude Team or Enterprise, **we recommend the organization path below** — not a personal connector or developer config on a work machine.

#### Organization accounts (recommended)

On Claude **Team / Enterprise**, an **organization owner** adds BalkanID for the organization. This keeps rollout, access, and audit aligned with company policy.

1. Open [BalkanID in the Claude Directory](https://claude.ai/directory/balkanid). You can also open it from the [MCP UI](https://mcp.balkanid.app): in **OAuth Connectors**, click **Connect to Claude**.
2. Click **Connect for your team**.
3. Complete BalkanID sign-in, pick your **tenant**, and grant consent.
4. Each member then opens **Customize → Connectors** in Claude, finds BalkanID, connects, and completes their own BalkanID sign-in.

{% hint style="warning" %}
If you are **not** a Claude organization owner, ask your owner to add BalkanID (see [Enterprise Rollout](https://docs.balkan.id/balkanid-mcp/enterprise-rollout.md)). Do **not** use personal or developer setup on a work account unless your company explicitly allows it.
{% endhint %}

#### Personal accounts

Use this only on a **personal** Claude account, or when your employer has confirmed that individual connector setup is permitted.

{% hint style="warning" %}
Personal or self-service connector setup is **at your own risk**. You are responsible for complying with your organization's policies on AI tools, identity data, and third-party integrations. BalkanID recommends **org-wide deployment by an owner** whenever you access a **company BalkanID tenant**.
{% endhint %}

1. Open [BalkanID in the Claude Directory](https://claude.ai/directory/balkanid), or click **Connect to Claude** in the **OAuth Connectors** section of the [MCP UI](https://mcp.balkanid.app).
2. Connect BalkanID.
3. Complete BalkanID sign-in, pick your **tenant**, and grant consent.
4. Confirm BalkanID appears among your connected tools in Claude.

{% hint style="info" %}
OAuth currently requires **both Read and Write** scopes at consent. See [Authentication and Permissions](https://docs.balkan.id/balkanid-mcp/authentication-and-permissions.md).
{% endhint %}

### Custom connector — OAuth (fallback)

Use this only when your organization does not allow connectors from the Claude Directory.

1. In Claude, open [connectors](https://claude.ai/customize/connectors) and add a custom connector. On Team / Enterprise, an organization owner does this from the organization's connector settings.
2. Set the connector URL to `https://mcp.balkanid.app/server/mcp`.
3. Complete BalkanID sign-in, pick your **tenant**, and grant consent.

### Claude Desktop — `mcp-remote` (when connector is unavailable)

Use this path only when you cannot add or use a connector — for example while waiting for your owner to add BalkanID — or when you need a **Read-only** API key.

{% hint style="warning" %}
Developer / **`mcp-remote`** setup (Settings → Developer, editing `claude_desktop_config.json`) is a **fallback**, not the recommended production path. It is **at your own risk** and must be **explicitly allowed** under your company's AI, security, and data-handling policies. BalkanID recommends **org-wide connector deployment** for access to a company tenant.
{% endhint %}

Claude Desktop does not support one-click HTTP install. It runs a local [`mcp-remote`](https://www.npmjs.com/package/mcp-remote) helper (via `npx`) and reads `claude_desktop_config.json`.

#### Prerequisites

* [Node.js 18+](https://nodejs.org/) on the machine running Claude Desktop (Claude runs `npx`; `mcp-remote` may download on first connect)

#### 1. Open Developer settings and the MCP config file

1. In Claude Desktop, open **Settings** → **Developer**.
2. If you have never used MCP, turn on **Developer mode** (or **MCP**) so the app can use a config file.
3. Click **Edit Config**. Claude opens `claude_desktop_config.json` in your default editor.

   If the file does not exist yet, enabling Developer mode creates it. You can also edit the file manually:

   * macOS: `~/Library/Application Support/Claude/claude_desktop_config.json`
   * Windows: `%APPDATA%\Claude\claude_desktop_config.json`

#### 2. OAuth via `mcp-remote` (no API token in the file)

Paste a **full config** if the file is new or empty. If you already have other MCP servers, add a new entry inside `mcpServers` (comma-separated from existing entries):

```json
{
  "mcpServers": {
    "BalkanID MCP Server": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://mcp.balkanid.app/server/mcp",
        "--transport",
        "http-only"
      ]
    }
  }
}
```

No `Authorization` header is required — `mcp-remote` runs the OAuth flow in a browser on first connect.

#### 3. Restart Claude and sign in

1. Save `claude_desktop_config.json`.
2. Fully quit Claude Desktop and open it again.
3. On first connect, complete BalkanID sign-in, pick your **tenant**, and grant consent in the browser window.
4. Confirm the MCP (hammer) icon appears near the chat input.

#### API key via `mcp-remote` (Read-only or OAuth unavailable)

Use an API key when OAuth via `mcp-remote` fails, or when you need **Read-only** access.

**Guided setup from the MCP UI**

1. Create an API key in the [MCP UI](https://mcp.balkanid.app) (see [Installation and Setup](https://docs.balkan.id/balkanid-mcp/installation-and-setup.md)).
2. Open **Connect → Connect to Claude** (Claude Desktop modal).
3. Use **Copy full config** (new setup) or **Copy server entry** (merge into an existing `mcpServers` block).
4. In Claude Desktop, open **Settings → Developer → Edit Config** and paste the JSON.
5. Save, fully quit and reopen Claude Desktop.

**Manual configuration (fallback)**

```json
{
  "mcpServers": {
    "BalkanID MCP Server": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://mcp.balkanid.app/server/mcp",
        "--transport",
        "http-only",
        "--header",
        "Authorization:${BALKANID_MCP_AUTH_HEADER}"
      ],
      "env": {
        "BALKANID_MCP_AUTH_HEADER": "Bearer YOUR_TOKEN_HERE"
      }
    }
  }
}
```

### Verify

Ask Claude: “Call whoami on BalkanID MCP.” You should see your email and tenant ID.

### Disable or remove

**Per conversation:** use the **+** button → **Connectors** in the chat composer and toggle BalkanID off. This only affects the current conversation and does not change your saved configuration.

**Disconnect (revoke access, keep the connector configured):** open **Customize → Connectors** (or, for Team/Enterprise, **Organization settings → Connectors**), find BalkanID, and select **Disconnect**. This revokes access immediately but leaves the connector entry in place so you can reconnect later.

**Block write tools (keep the connector read-only):** open **Customize → Connectors**, select BalkanID, and under **Tool permissions** set the write tools to **Blocked**. On Claude Team / Enterprise, an organization Owner can do this for everyone on the organization connector. See [Authentication and Permissions](https://docs.balkan.id/balkanid-mcp/authentication-and-permissions.md#restrict-write-actions-in-your-ai-client).

**Remove entirely:** from the same **Connectors** page, remove the BalkanID connector.

**`mcp-remote` config:** delete the `BalkanID MCP Server` entry from `claude_desktop_config.json`, save, and fully quit and reopen Claude Desktop.

### Official documentation

Anthropic documentation for connectors:

* [BalkanID in the Claude Directory](https://claude.ai/directory/balkanid) — the BalkanID listing
* [Connector verification](https://claude.com/docs/connectors/verification) — what Community and Verified connectors mean
* [Get started with custom connectors using remote MCP](https://support.claude.com/en/articles/11175166-get-started-with-custom-connectors-using-remote-mcp) — Claude Help Center
* [Third party connectors with remote MCP](https://claude.com/docs/connectors/custom/remote-mcp) — Claude Docs
* [Use connectors to extend Claude's capabilities](https://support.claude.com/en/articles/11176164-use-connectors-to-extend-claude-s-capabilities) — Claude Help Center (tool permissions)


---

# 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.balkan.id/balkanid-mcp/installation-and-setup/claude-desktop.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.
