Skip to main content

Claude

Claude MCP Integration

Other Claude surfaces

This page covers Claude Desktop (OAuth) and Claude Code CLI (OAuth or a Timbr API key). For Claude.ai custom connectors, including the shared static token option, see the Claude.ai section of the OAuth guide. For the Claude Code extension for VS Code, see the Claude Code extension for VS Code section.

Claude Desktop​

Claude Desktop connects to remote MCP servers through custom connectors. Because the Timbr MCP server supports OAuth 2.0 with Dynamic Client Registration (DCR), Claude Desktop registers itself automatically - you only need to provide the server URL and sign in. For background on custom connectors, see the official documentation.

Setting up OAuth

Connecting through a custom connector uses MCP OAuth. For the full client and admin setup, follow the OAuth Setup guide.

Add a Custom Connector​

  1. Open Claude Desktop and go to Customize → Connectors.

  2. In the Connectors panel, click Add (top right).

    Connectors panel in Claude Desktop

  3. Fill in the connector details:

    • Name: a friendly name, e.g. Timbr Semantic Layer
    • Remote MCP server URL: https://<your_timbr_hostname>/timbr/api/mcp

    Configure the Timbr connector URL

  4. Click Add. Thanks to Dynamic Client Registration, Claude Desktop discovers the OAuth endpoints automatically - no Client ID or Client Secret is required.

  5. Click on Connect and you'll be redirected to your organization's identity provider to sign in.

    Sign in via your identity provider

Setting up OAuth

Make sure that you have the Redirect URI and the full MCP setup, follow the OAuth Setup guide for more information.

  1. After signing in, the connector is ready. Timbr's tools (query_data, ask_question, generate_sql, identify_concept, and more) become available in your Claude conversations.

    Timbr tools available in Claude Desktop

Dynamic Client Registration

Timbr implements Dynamic Client Registration, so Claude Desktop can register as an OAuth client on the fly. If your identity provider (e.g. Azure AD) doesn't natively support DCR, your IT admin can enable it on the server by setting MCP_OAUTH_DCR_ENABLED=true together with MCP_OAUTH_CLIENT_ID and MCP_OAUTH_CLIENT_SECRET. See the OAuth Setup guide for the complete provider configuration.

Claude Code CLI​

Claude Code is Anthropic's agentic coding tool that runs in your terminal. Once installed, you connect it to Timbr by registering the MCP server - either through OAuth (for interactive, personal use) or with a static API key (for shared or scripted environments).

Install Claude Code​

macOS, Linux, or WSL:

curl -fsSL https://claude.ai/install.sh | bash

Windows PowerShell:

irm https://claude.ai/install.ps1 | iex

After installation, confirm it works:

claude --version
Accounts

Claude Code requires a Pro, Max, Team, or Enterprise Claude.ai account. The free plan does not include Claude Code access.

Connect Timbr as an MCP Server​

There are two ways to connect Timbr to Claude Code depending on how you want to authenticate.

Option 1: OAuth​

Use this method when you want to sign in interactively through your organization's identity provider, the same way you would in Claude Desktop.

claude mcp add --scope user --transport http --callback-port 29352 timbr-mcp https://<your_timbr_env>/timbr/api/mcp
FlagMeaning
--scope userSaves the server to ~/.claude.json, making it available in all your projects on this machine. Without this flag the default scope is local - the connection is stored only for the current project.
--transport httpUses the Streamable HTTP transport, the recommended protocol for cloud-based MCP servers.
--callback-port 29352Fixes the OAuth redirect to port 29352. Timbr's OAuth configuration expects the callback URL http://localhost:29352/callback, so the port must match exactly. Omitting this flag lets Claude Code pick a random available port, which would cause the redirect URI check to fail.

After running the command, Claude Code opens a browser window. Sign in through your identity provider to complete the OAuth flow.

Setting up OAuth

The redirect URI http://localhost:29352/callback must be registered in your Timbr environment before this flow will work. Follow the OAuth Setup guide for the full configuration steps.

Option 2: Timbr API Key (for shared or scripted environments)​

Use this method when browser-based sign-in is not practical - for example, in a demo environment, a CI pipeline, or a shared machine.

claude mcp add --transport http timbr-mcp https://<your_timbr_env>/timbr/api/mcp/ --header "X-Api-Key: tk_b1a278...."
FlagMeaning
--transport httpSame as above - Streamable HTTP transport.
--header "X-Api-Key: ..."Attaches a static header to every request. Claude Code stores the value in its configuration and sends it automatically on each call. No OAuth flow is initiated.
(no --scope)Defaults to local scope - the connection is available only in the current project directory and is not shared across your other projects.

Replace tk_b1a278.... with a valid Timbr user token.

Verify the connection​

claude mcp list

Once connected, Timbr's tools - query_data, ask_question, generate_sql, identify_concept, and more - are available in every Claude Code session.