> ## Documentation Index
> Fetch the complete documentation index at: https://docs.omnilinker.pl/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect an AI assistant

> Let an AI assistant read your products, prices, stock and orders through Omnilinker's MCP endpoint, with a key that can only read.

Omnilinker answers the Model Context Protocol (MCP), which AI assistants use to call tools. An assistant connected
with an **AI assistant** API key can look up your products, prices, competitor offers, stock and orders, and answer
questions about them. It can only read: no tool changes anything in Omnilinker.

> [!NOTE]
>
> AI assistant access is switched on per organization. Until it is on for yours, **AI assistant** is not offered when
> you create a key. Ask Omnilinker support to switch it on.

## What the assistant can do

| Tool | What it reads | Access it needs |
| - | - | - |
| `search_products` | Finds products by part of the SKU, EAN, name or brand name. | **Catalog** › **Product** |
| `get_product` | One product, by its id or exact SKU: identity, selling prices at every price level, purchase cost, VAT rate, unit, tags, dimensions and weight. | **Catalog** › **Product** |
| `list_price_levels` | Your price levels, with their currency and who sets their prices. | **Catalog** › **Price levels** |
| `get_price_history` | How a product's own selling prices changed, and who changed them. | **Catalog** › **Product** |
| `get_product_stock` | A product's stock in each warehouse, with the ERP's figures where an ERP manages or reports them. | **Inventory Management** › **Stock Items**, with inventory switched on |
| `get_product_market` | Where a product stands against competitors: the lowest, median and highest offer and the cheapest merchants. | **Pricing Intelligence** › **Product Overview Management** |
| `search_orders` | Orders, newest first, filtered by status, payment, date, order number or product. | **Ordering** › **Orders**, with orders switched on |
| `get_order` | One order with its lines, totals, payment, status and delivery method. | **Ordering** › **Orders**, with orders switched on |

**Access it needs** is the line under **Customize access…** (or **Change access** on the key's row) that the tool
appears with. "With … switched on" names a module that must also be switched on for your organization.

What the assistant never gets:

* **Buyers' personal data.** The order tools leave out names, contact details, addresses, invoice data and notes, and
  offer no search by buyer.
* **Anything outside the key's access.** The assistant sees only the tools whose access its key holds, and only for
  the modules your organization uses.
* **Anything you cannot see yourself.** Like every key, an AI assistant key acts as the person who created it, limited
  to what that person can do.

## Create the key

**1. Start a new key**

Open **API keys** from the main menu and click **New API key**. Under **What will use it?**, choose **AI
assistant**.

**2. Name it and choose when it expires**

Enter a **Name** that says which assistant uses it, for example "Claude — pricing questions". Choose when it
**Expires**.

**3. Check what it can read**

**What it can do** lists the access the template gives. **Customize access…** offers only what an AI assistant key
may have: reading products, price levels, the product overview of Pricing Intelligence, orders and stock. Take away
what the assistant should not read.

**4. Create the key and copy it**

Click **Create key**, then **Copy**. Under **Use it**, the dialog has a tab for each assistant (**Claude**, **Claude
Desktop**, **Claude Code**, **Codex** and **Other**) with its set-up and the address of the MCP endpoint, for example
`https://api.omnilinker.pl/mcp`. Your key is not in the set-up: paste it where `<your-api-key>` stands. Codex reads it
from the `OMNILINKER_API_KEY` environment variable instead. Keep the key and the address: you need them in the next
step.

An AI assistant key works on the MCP endpoint and nowhere else. Anywhere else, Omnilinker treats the caller as not
signed in, so every call that needs a sign-in is refused with `401`. The endpoint refuses every other key with `403`.
For scripts and integrations, create a key from another template. See [API keys](https://docs.omnilinker.pl/administration/api-keys.md).

## Add Omnilinker to the assistant

Every assistant needs the same three things:

* **Transport**: Streamable HTTP (sometimes called "HTTP").
* **URL**: the address from **Use it**.
* **Header**: `X-Api-Key` with your key as its value.

Omnilinker reads the key only from the `X-Api-Key` header (or `Api-Key`). It never reads a key from the URL, because
addresses end up in logs. So an assistant that can connect only with an OAuth sign-in, an `Authorization: Bearer`
token or a key in the URL cannot connect yet. Today that rules out ChatGPT's chat app.

The assistant's provider receives what the assistant reads from Omnilinker, as it does with anything else you share in
a chat. Their terms apply to it.

> [tab] Claude
>
> Claude on the web, in the desktop app and on mobile uses the same connectors. Add Omnilinker once as a **custom
> connector**. Custom connectors with an API key need the **Request headers** section in the **Add custom connector**
> dialog. That section is in beta, and Anthropic offers it to some organizations only. If your dialog does not have
> it, use the **Claude Desktop** or **Claude Code** tab instead.
>
> **1. Open the connectors**
>
> On a Free, Pro or Max plan, open the [connectors](https://claude.ai/customize/connectors) in Claude, select
> **Add**, then **Add custom connector**. On a Team or Enterprise plan, an Owner opens **Organization settings** > **Connectors**, selects
> **Add**, then **Custom**, and chooses **Web** if asked.
>
> **2. Enter the name and the URL**
>
> Enter `Omnilinker` as the name and the address from **Use it** as the URL. Click **Continue** if the dialog
> shows it.
>
> **3. Choose No sign-in and add the key**
>
> Under **Authentication**, choose **No sign-in**. Open **Request headers**, choose `x-api-key` from the list,
> paste your key as the value and mark it **Required**. Leave **Transport** as it is.
>
> **4. Add the connector**
>
> Click **Add**. In a chat, turn the connector on from the **+** menu, then ask, for example, "Which of my
> products are priced above the market median?"
>
> > [!WARNING]
> >
> > On a Team or Enterprise plan, the key in the request header is shared: every member who uses the connector reads
> > Omnilinker as the person who created the key. Create the key as someone whose access is right for all of them,
> > and take away what they should not read with **Customize access…**.
>
> Claude cannot change the key after you add the connector. To rotate it, remove the connector and add it again.

> [tab] Claude Desktop
>
> If your **Add custom connector** dialog has no **Request headers** section, Claude Desktop can still connect
> through `mcp-remote`, an open-source bridge that runs on your computer and adds the header for Claude. It needs
> Node.js 18 or later.
>
> **1. Open the configuration file**
>
> In Claude Desktop, open **Settings** > **Developer** and click **Edit Config**. This opens
> `claude_desktop_config.json`.
>
> **2. Add Omnilinker**
>
> Add this entry under `mcpServers`, with the address from **Use it** and your key:
>
> ```json theme={null}
> {
>   "mcpServers": {
>     "omnilinker": {
>       "command": "npx",
>       "args": [
>         "-y",
>         "mcp-remote",
>         "https://api.omnilinker.pl/mcp",
>         "--transport",
>         "http-only",
>         "--header",
>         "X-Api-Key:${OMNILINKER_API_KEY}"
>       ],
>       "env": { "OMNILINKER_API_KEY": "<your-api-key>" }
>     }
>   }
> }
> ```
>
> Keep `X-Api-Key:${OMNILINKER_API_KEY}` without a space after the colon: on Windows, Claude Desktop breaks
> arguments at spaces.
>
> **3. Restart Claude Desktop**
>
> Quit Claude Desktop completely and start it again. Omnilinker's tools appear under the **+** menu of a chat.
>
> The key is stored in plain text in that file. Keep the file to yourself.

> [tab] Claude Code
>
> Run this in a terminal, with the address from **Use it**:
>
> ```bash theme={null}
> claude mcp add --transport http omnilinker https://api.omnilinker.pl/mcp --header "X-Api-Key: <your-api-key>"
> ```
>
> Check it with `claude mcp get omnilinker`, or `/mcp` inside Claude Code. To share the setting with your team
> without sharing the key, add it to the project's `.mcp.json` with the key in an environment variable that each
> person sets:
>
> ```json theme={null}
> {
>   "mcpServers": {
>     "omnilinker": {
>       "type": "http",
>       "url": "https://api.omnilinker.pl/mcp",
>       "headers": { "X-Api-Key": "${OMNILINKER_API_KEY}" }
>     }
>   }
> }
> ```

> [tab] ChatGPT
>
> ChatGPT's chat app cannot connect yet. Its custom MCP servers sign in with OAuth or with no authentication, and
> have no field for an API key or a header. Omnilinker does not take OAuth sign-ins for AI assistants yet.
>
> OpenAI's tools for developers do send headers. Use the **Codex** or **OpenAI API** tab.

> [tab] Codex
>
> Add this to `~/.codex/config.toml`, with the address from **Use it**:
>
> ```toml theme={null}
> [mcp_servers.omnilinker]
> url = "https://api.omnilinker.pl/mcp"
> env_http_headers = { "X-Api-Key" = "OMNILINKER_API_KEY" }
> ```
>
> Then set the environment variable `OMNILINKER_API_KEY` to your key before you start Codex. Codex reads the header's
> value from it, so the key stays out of the file.

> [tab] OpenAI API
>
> In the Responses API, add Omnilinker as a remote MCP tool and pass the key in `headers`:
>
> ```json theme={null}
> {
>   "type": "mcp",
>   "server_label": "omnilinker",
>   "server_url": "https://api.omnilinker.pl/mcp",
>   "headers": { "X-Api-Key": "<your-api-key>" }
> }
> ```
>
> Send the key with every request: the API does not keep it. Every Omnilinker tool only reads, so you can set
> `"require_approval": "never"` if your application does not need to approve each call.

> [tab] Other assistants
>
> An assistant that lets you set a header on a remote MCP server can connect. Many take a JSON entry like this one;
> the exact shape depends on the assistant, so check its documentation.
>
> ```json theme={null}
> {
>   "mcpServers": {
>     "omnilinker": {
>       "type": "http",
>       "url": "https://api.omnilinker.pl/mcp",
>       "headers": { "X-Api-Key": "<your-api-key>" }
>     }
>   }
> }
> ```
>
> An assistant that runs MCP servers only on your computer can use `mcp-remote`, as in the **Claude Desktop** tab.

## Limits

* **Requests**: 120 a minute per key. Above that, the endpoint answers `429` with a `Retry-After` header.
* **Lists**: at most 25 rows per call; the assistant pages through longer lists.
* **Logging**: each call is logged with the tool, the key and the outcome, never with what was asked or answered.

## Troubleshooting

> [accordion] AI assistant is not offered under What will use it?
>
> AI assistant access is not switched on for your organization. Ask Omnilinker support to switch it on.

> [accordion] The assistant gets 401
>
> The key is missing, mistyped, deactivated, expired or deleted. Check that the header is `X-Api-Key`, and the key's
> status on **API keys**.

> [accordion] The assistant gets 403
>
> The key is not an AI assistant key: it was made from another template. Create a key with **AI assistant** under
> **What will use it?**.

> [accordion] The assistant gets 404
>
> AI assistant access was switched off for your organization, or the address is wrong. Use the address from **Use
> it**.

> [accordion] The assistant lists fewer tools than this page
>
> The key lacks the access those tools need, or the module is not switched on for your organization. **Access it
> needs** in [What the assistant can do](#what-the-assistant-can-do) names the access for each tool. Add it with
> **Change access** on the key's row.

> [accordion] A tool answers that it is not allowed
>
> The key's owner no longer holds a permission the tool needs. Ask an administrator for it, or remove the access from
> the key.

> [card] [API keys](https://docs.omnilinker.pl/administration/api-keys.md)
>
> Create, rotate and remove keys.

> [card] [Authentication](https://docs.omnilinker.pl/developers/authentication.md)
>
> How keys work for scripts and integrations.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.