Skip to main content
Model Context Protocol (MCP) is a standardized way to add extra context to LLMs via external data sources and tools. Simply put, by using various MCP servers, you can have your LLM interact with your GitLab, search the web, find places on a map, and more. MCP servers are designed to be as easy as possible to set up and use, so you can integrate them into your applications quickly.

Getting Started

The amber MCP server is accessible through a remote URL (Streamable HTTP transport), so you can start using it right away without installing anything locally. The server is available at:

Authentication

Authentication for the MCP server works the same way as for the public REST API. Send either an API key or an OAuth 2.0 access token in the Authorization header with the Bearer scheme:
  • API key — personal key created by users with the Developer role under Settings → Technical → API Access Keys. See API Key Authentication.
  • OAuth 2.0 — recommended for MCP clients such as Claude that sign users in interactively. An administrator creates an OAuth client under Settings → Products → API Access; one client can be used for both the REST API and the MCP server. See the OAuth 2.0 documentation.
Your amber workspace must be on a paid plan (not a free trial) whose license plan has not expired; otherwise requests are rejected. Unlike the REST API (which returns 403), the MCP server answers such requests with 401 and error="invalid_token", the same as for an invalid token.

Connecting Claude

  1. As an administrator, open Settings → Products → API Access and choose From Template → Claude in the OAuth2 Clients for the API/MCP section. This creates a client with Claude’s redirect URIs pre-filled.
  2. Copy the Client ID and Client Secret (the secret is only shown once).
  3. In Claude, add a custom connector with the URL https://customerDomain.ambersearch.de/mcp and enter the client ID and client secret in the connector’s advanced settings.
  4. Connect — you will be redirected to amber to sign in.

MCP Client Integration

MCP clients that support the MCP authorization specification can discover amber’s OAuth configuration automatically.

Step 1: OAuth discovery

Given the MCP server URL (https://customerDomain.ambersearch.de/mcp), discovery is a two-step process:
  1. Fetch the Protected Resource Metadata (RFC 9728) to find the authorization server that protects the MCP server.
  2. Fetch the Authorization Server Metadata (RFC 8414) of that authorization server to learn the OAuth endpoints.
An unauthenticated request to /mcp returns status 401 with a WWW-Authenticate header pointing to the protected resource metadata, as described in the MCP specification.
Response without a token: 401 Unauthorized with an empty body and the header:
Response with an invalid or expired token: 401 Unauthorized
Response headers (invalid or expired token):
Next, fetch the protected resource metadata:
Response:
The authorization server’s issuer is https://customerDomain.ambersearch.de/api, so per RFC 8414 its metadata is available at:
See Discovery Endpoints for the full response.

Step 2: Initiate the OAuth 2 flow

With the authorization server metadata, the client runs the authorization code flow described in the OAuth 2.0 documentation, using the client ID of an OAuth client created in the API Access settings — either as a public client with PKCE, or as a confidential client with client_secret.
Dynamic client registration is not available to MCP clients: the registration_endpoint advertised in the metadata requires administrator authentication. Configure your MCP client with the client ID (and secret) created in the API Access settings.

Configuration

Most applications use the same configuration format for MCP servers. If your MCP client does not support the OAuth flow, you can pass an API key or an access token directly as a header:

Tools

The amber MCP server provides the following tools: Detailed descriptions of the tools and their parameters are as follows:
  • search - Search for data across multiple data sources. Only documents the authenticated user is allowed to access are returned.
    • query: The search term to look for (string, required)
    • count: The number of results to return (integer, optional, default 50)
    • data_source: The data source to search in (string, optional, default allDataSources). One of allDataSources, confluence, jira, gitlab, sharepoint_online, outlook, windowsshares, other
    • file_type: The type of files to search for (string, optional, default allFileTypes). One of allFileTypes, pdf, word, powerpoint, excel, email, directory, html, txt, compressed, image, message, task, issue, wiki, news, page, onenote, comment, other
    • last_modified_date: The time frame for the last modified date (string, optional, default allTimes). One of allTimes, threeday, week, month, threemonth, year, fiveyear, or a custom range in the format YYYY-MM-DDThh:mm:ss.sssZ_YYYY-MM-DDThh:mm:ss.sssZ
    • start_page: The page number to start from (integer, optional, default 0)
  • web_search - Perform a web search using the provided queries and parameters. Uses the web search mode configured for your amber instance. Web search must be enabled for your amber instance and the user must have access to amberAI.
    • queries: A list of search queries (array of strings, required, at least one query)
    • count: The number of results to return per query (integer, optional, default 10)
    • sites: A list of specific sites to search within (array of strings, optional). If omitted, all sites are searched
    • timeout: The maximum time to wait for the search results in seconds (integer, optional, default 10)
  • get_document_metadata - Retrieve metadata for a specific document.
    • document_id: The unique identifier of the document, as returned in the id field of search results (string, required)
    • provide_text_attribute: Whether to include the document’s text content in the response (boolean, optional, default false)
The tools return the same data as the corresponding REST API endpoints: Search full text, Web search and Get document metadata.