Model Context Protocol (MCP) is a standardized way to add extra context to LLMs via external data sources and tools. Simply put, with 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 easy as possible to set up and use, so you can integrate them into your applications quickly.Documentation Index
Fetch the complete documentation index at: https://developers.ambersearch.de/llms.txt
Use this file to discover all available pages before exploring further.
Getting Started
We have set up the MCP server to be accessible through a remote URL, so you can start using it right away, without needing to install anything locally. The server is available at:Authentication
The authentication for the MCP server is the same as for the public REST API. You will need to provide your API key or a jwt through the OAuth 2 flow in theAuthorization header of your requests with the Bearer scheme.
In addition to the normal OAuth2 flow where the client credentials get passed, the OAuth 2 flow for the MCP server includes discovery endpoints for the authorization server as referred to in the authorization manual.
MCP Client Integration
Step 1: OAuth discovery
In order to initiate an authorization flow it is required to discover its OAuth configuration. Given the MCP server URL (e.g., https://customerDomain.ambersearch.de/mcp), use a standard two-step discovery process:- Based on RFC 9470: Fetch Protected Resource Metadata to find which authorization server(s) protect this resource
- After retrieving the protected resource metadata the authorization server metadata endpoint can be extracted, based on RFC 8414
/mcp endpoint, the expected result from this handshake is a status code 401 and a WWW-Authenticate HTTP header with the resource metadata, refer to this.
Step 2: Initiate the OAuth 2 flow
After retrieving the authorization server metadata from the authorization server metadata endpoint, the client can initiate the authorization flow as referenced in the ambersearch OAuth 2 manual with eitherPKCE or client_secret.
Configuration
Most of the applications use the same configuration format for handling MCP servers. Here’s a sample configuration that you can use to set up your MCP client to connect to the AmberSearch MCP server:Tools
The AmberSearch MCP server provides the following tools:| Tool Name | Description |
|---|---|
search | Search for data across multiple data sources. |
web_search | Perform a web search using specified queries and parameters. |
get_document_metadata | Retrieve metadata for a specific document. |
- search - Search for data across multiple data sources.
query: The search term to look for (string, required)count: The number of results to return (number, optional)data_source: The data source to search in (string, optional)file_type: The type of files to search for (string, optional)last_modified_date: The time frame for the last modified date (string, optional)start_page: The page number to start from (number, optional)
- web_search - Perform a web search using the provided queries and parameters.
queries: A list of search queries (array of strings, required)count: The number of results to return (number, optional)sites: A list of specific sites to search within (array of strings, optional)timeout: The maximum time to wait for the search results in seconds (number, optional)
- get_document_metadata - Retrieve metadata for a specific document.
document_id: The unique identifier of the document (string, required)provide_text_attribute: Whether to include the document’s text content in the response (boolean, optional)

