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

# AirMDR MCP Server

> Connect Claude, ChatGPT, Gemini, Cursor and other AI assistants to AirMDR so they can work with your cases, alerts, dashboards and investigations.

> [card] Audience
>
> All AirMDR users. Admins can also connect with an API token.

> [card] What
>
> Connect your AI assistant to AirMDR through the Model Context Protocol (MCP).

> [card] Why It Matters
>
> Triage cases, review alerts and build reports in plain language, with your own AirMDR permissions.

## Overview

The AirMDR MCP server lets AI assistants work with your AirMDR data through the [Model Context Protocol](https://modelcontextprotocol.io) (MCP). Once connected, you can ask an assistant to triage cases, summarize alerts, explain an investigation, build dashboards or draft a weekly security report.

> [!NOTE]
>
> The assistant acts **as you**. It sees only what your AirMDR account can see, in the organizations you have access to, and every change it makes is checked against your role by AirMDR, exactly as if you made it in the app.

### Pre-requisites

> [!TIP]
>
> * An active [AirMDR](https://app.airmdr.com) account.
> * An AI assistant that supports remote MCP servers: Claude, Claude Code, ChatGPT, Gemini, Gemini CLI, Gemini Enterprise, Cursor, or any other MCP client.
> * To connect with an API token instead of signing in: the **Admin** or **Super Admin** role.

### Connection Details

| Field | Value |
| :- | :- |
| **MCP server URL** | `https://app.airmdr.com/mcp` |
| **Transport** | Streamable HTTP (remote MCP server) |
| **Authentication** | OAuth sign-in (all users) or AirMDR API token (admins) |

### Choose How to Connect

| Method | Who can use it | Access | Best for |
| :- | :- | :- | :- |
| **OAuth sign-in** (recommended) | Every AirMDR user | You choose **Read only** or **Read and make changes** when you sign in | Claude, ChatGPT, Gemini, Cursor and most users |
| **API token** | Admins and Super Admins | Read and write, with the token owner's permissions | Claude Code, Cursor, Gemini CLI, scripts and the Claude API |

## ✨ Connect with OAuth (All Users)

**1. Add AirMDR to your AI assistant**

Open the section for your assistant and follow the steps.

> [accordion] Claude (claude.ai and Claude desktop)
>
> 1. Open **Settings → Connectors**.
>
> 2. Click **Add custom connector**.
>
> 3. Enter a name (e.g., `AirMDR`) and the URL `https://app.airmdr.com/mcp`.
>
> 4. Leave **Advanced settings** empty and click **Add**.
>
> 5. Click **Connect** next to the AirMDR connector.
>
> 6. In a new chat, open the tools menu and make sure **AirMDR** is turned on.
>
> > [!NOTE]
> >
> > On Claude Team and Enterprise plans, an **Owner** adds the connector once in **Organization settings → Connectors**. Each member then clicks **Connect** and signs in with their own AirMDR account.

> [accordion] Claude Code
>
> 1. Run the following command:
>
>    ```bash theme={null}
>    claude mcp add --transport http airmdr https://app.airmdr.com/mcp
>    ```
>
>    Add `--scope user` to make it available in every project.
> 2. Start Claude Code and type `/mcp`.
> 3. Select **airmdr** and choose **Authenticate**. Your browser opens the AirMDR sign-in page.

> [accordion] ChatGPT
>
> 1. Open **Settings → Apps & Connectors → Advanced settings** and turn on **Developer mode**.
>
> 2. In **Settings → Apps & Connectors**, click **Create**.
>
> 3. Enter a name (e.g., `AirMDR`) and the MCP server URL `https://app.airmdr.com/mcp`.
>
> 4. Set **Authentication** to **OAuth**.
>
> 5. Confirm you trust the application and click **Create**.
>
> 6. In a chat, enable **AirMDR** from the tools menu.
>
> > [!NOTE]
> >
> > Menu names and availability vary by ChatGPT plan. On Business and Enterprise workspaces, a workspace admin may need to allow custom connectors first.

> [accordion] Gemini (gemini.google.com)
>
> 1. In the left navigation pane, click **Customise**.
> 2. Open the **Connectors** tab and click **+ Custom**.
> 3. Enter the MCP server URL `https://app.airmdr.com/mcp`.
> 4. Leave **Client ID** and **Client secret** under **Additional settings** empty.
> 5. Click **Next**.

> [accordion] Cursor
>
> 1. Add the following to `~/.cursor/mcp.json` (all projects) or `.cursor/mcp.json` (one project):
>
>    ```json theme={null}
>    {
>      "mcpServers": {
>        "airmdr": {
>          "url": "https://app.airmdr.com/mcp"
>        }
>      }
>    }
>    ```
> 2. Open **Cursor Settings → MCP**.
> 3. Next to **airmdr**, click **Login** (or **Needs login**).

> [accordion] Gemini CLI
>
> 1. Add the server to `~/.gemini/settings.json`:
>
>    ```json theme={null}
>    {
>      "mcpServers": {
>        "airmdr": {
>          "httpUrl": "https://app.airmdr.com/mcp"
>        }
>      }
>    }
>    ```
> 2. Start Gemini CLI. It opens the AirMDR sign-in page the first time it uses the server, or run `/mcp auth airmdr` to sign in.

> [accordion] Gemini Enterprise (admin setup)
>
> A Gemini Enterprise admin sets this up once for the organization. Each user then authorizes with their own AirMDR account.
>
> 1. Get client credentials by running the following command once:
>
>    ```bash theme={null}
>    curl -s https://app.airmdr.com/mcp/register \
>      -H 'Content-Type: application/json' \
>      -d '{
>        "client_name": "Gemini Enterprise",
>        "token_endpoint_auth_method": "client_secret_post",
>        "redirect_uris": ["https://vertexaisearch.cloud.google.com/oauth-redirect"],
>        "grant_types": ["authorization_code", "refresh_token"],
>        "response_types": ["code"]
>      }'
>    ```
>
>    > [!WARNING]
>    >
>    > Copy the `client_id` and `client_secret` from the response and store them securely (e.g., a secrets manager). Treat the client secret like a password.
> 2. In the Google Cloud console, go to **Gemini Enterprise → Data stores → Create data store** and choose **Custom MCP Server**.
> 3. Fill in:
>
>    | Field | Value |
>    | :- | :- |
>    | MCP server URL | `https://app.airmdr.com/mcp` |
>    | Authorization URL | `https://app.airmdr.com/mcp/authorize` |
>    | Token URL | `https://app.airmdr.com/mcp/token` |
>    | Authorization URL parameters | `&resource=https://app.airmdr.com/mcp` |
>    | Scopes | `airmdr:read airmdr:write` |
>    | Client ID and Client secret | From step 1 |
>    | Enable PKCE Support | On |
>    | Use HTTP Basic Authentication | Off |
> 4. Add the data store to your Gemini Enterprise app. Each user clicks **Authorize** once and signs in to AirMDR.

> [accordion] Other MCP clients
>
> Any MCP client that supports remote servers with OAuth can connect. Point it at `https://app.airmdr.com/mcp`; the client discovers the sign-in endpoints and registers itself automatically.
>
> > [!NOTE]
> >
> > If your client reports that its redirect URI isn't allowed, connect with an API token (see below) instead, or contact AirMDR support to have the client added.

**2. Sign in to AirMDR**

1. Your assistant opens the AirMDR sign-in page.
2. Sign in with your password or SSO.

   > [!NOTE]
   >
   > If you're already signed in to app.airmdr.com in that browser, this step is skipped.

**3. Review the request and choose access**

1. Check the consent page. It shows the application asking for access, its address, and the AirMDR organization and user it will act as.
2. Choose the access level:
   * **Read only**: the assistant can search and read, but can't change anything.
   * **Read and make changes**: the assistant can also comment on and update cases, start investigations and manage dashboards, within your role's permissions.
3. Click **Allow**. You return to your assistant, connected.

   > [!TIP]
   >
   > To switch between **Read only** and **Read and make changes**, disconnect the connector and connect it again.

**4. Verify the connection**

Ask your assistant:

```text theme={null}
Use the AirMDR whoami tool.
```

> [!TIP]
>
> It replies with your AirMDR organization (and any child organizations you can access), the tool areas available, and whether write tools are turned on for this connection.

> [!NOTE]
>
> Your connection lasts as long as your AirMDR session. It renews while you use it, for up to **7 days**, after which the assistant asks you to sign in again (usually one click). Signing out of AirMDR, or an admin deactivating your account, also ends access.

## 🔐 Connect with an API Token (Admins)

Admins can connect with an AirMDR API token instead of signing in, from clients that let you set a request header.

> [!WARNING]
>
> An API token connection has **read and write** access with the token owner's permissions, and it doesn't expire with a browser session. Keep the token in a secrets manager or environment variable, never in a shared file or repository.

**1. Generate an API token**

Create a token in **Admin dashboard → API Tokens**.

> [!NOTE]
>
> Refer to 🔗 [**How to generate an AirMDR API Token**](https://docs.airmdr.com/api-reference/apitoken.md)

**2. Add the token to your client**

Send the token as a bearer token in the `Authorization` header. Open the section for your client:

> [accordion] Claude Code
>
> ```bash theme={null}
> claude mcp add --transport http airmdr https://app.airmdr.com/mcp \
>   --header "Authorization: Bearer YOUR_API_TOKEN"
> ```

> [accordion] Cursor
>
> In `~/.cursor/mcp.json`:
>
> ```json theme={null}
> {
>   "mcpServers": {
>     "airmdr": {
>       "url": "https://app.airmdr.com/mcp",
>       "headers": {
>         "Authorization": "Bearer YOUR_API_TOKEN"
>       }
>     }
>   }
> }
> ```

> [accordion] Gemini CLI
>
> In `~/.gemini/settings.json`:
>
> ```json theme={null}
> {
>   "mcpServers": {
>     "airmdr": {
>       "httpUrl": "https://app.airmdr.com/mcp",
>       "headers": {
>         "Authorization": "Bearer YOUR_API_TOKEN"
>       }
>     }
>   }
> }
> ```

> [accordion] Claude API
>
> Use the MCP connector in the Messages API to give Claude the AirMDR tools in your own application:
>
> ```bash theme={null}
> curl https://api.anthropic.com/v1/messages \
>   -H "x-api-key: $ANTHROPIC_API_KEY" \
>   -H "anthropic-version: 2023-06-01" \
>   -H "anthropic-beta: mcp-client-2025-11-20" \
>   -H "content-type: application/json" \
>   -d '{
>     "model": "claude-opus-5-5",
>     "max_tokens": 4096,
>     "mcp_servers": [{
>       "type": "url",
>       "url": "https://app.airmdr.com/mcp",
>       "name": "airmdr",
>       "authorization_token": "'"$AIRMDR_API_TOKEN"'"
>     }],
>     "tools": [{ "type": "mcp_toolset", "mcp_server_name": "airmdr" }],
>     "messages": [{ "role": "user", "content": "Summarize my open critical cases." }]
>   }'
> ```

> [accordion] Other MCP clients
>
> Use the URL `https://app.airmdr.com/mcp` and the header:
>
> ```text theme={null}
> Authorization: Bearer YOUR_API_TOKEN
> ```

> [!NOTE]
>
> Claude (web and desktop), ChatGPT and Gemini don't let you set custom headers on connectors, so they always use OAuth.

**3. Verify the connection**

Ask your assistant: `Use the AirMDR whoami tool.`

## 🧰 What the Assistant Can Do

Read tools are available on every connection. Write tools appear only on connections with **Read and make changes** access, or an API token.

| Area | Read | Write |
| :- | :- | :- |
| **Account** | Who you're signed in as, users and groups | — |
| **Cases** | Search cases, case details, timeline, comments, watchers, findings and evidence, action items, attachments, case fields, case scores, snapshots and versions | Add comments; update status, severity, assignee and other fields; manage watchers; link cases; save case views; bulk update (previews first, up to 50 cases); reinvestigate |
| **Alerts** | Search alerts, alert details, alert sources, suppression settings, webhooks | Start an investigation on an alert |
| **Dashboards & Reports** | List dashboards, read any built-in or custom dashboard, security reports, report recipients | Create, update, clone and delete dashboards; add or remove widgets; schedule or email a dashboard |
| **Investigations & Knowledge** | Investigation traces, playbooks, facts, investigation notes, lists, allowlist, organization context | — |
| **Detection** | Detection coverage, detections, log sources | — |
| **Platform** | Integrations, remote agents, audit log | Ask Darryl, the AirMDR AI analyst |

> [!NOTE]
>
> Built-in dashboards you can read: Overview, SOC Performance, Executive, Case Analytics, Case Quality, Investigation Credits, Alert Budget, Detection, Automation, Integrations and Cost Trim.

### 💡 Example Prompts

> [accordion] Triage and cases
>
> * "Show my open critical and high cases from the last 7 days, newest first."
> * "Summarize case 1234: what happened, the key evidence, and what's still open."
> * "Which cases have been open longest without an update?"
> * "Add a comment to case 1234 saying we've reset the user's password, and set it to In Progress."

> [accordion] Alerts and investigations
>
> * "What were the noisiest alert sources this week?"
> * "Walk me through how AirMDR investigated the latest alert on host FIN-LAPTOP-22."
> * "Are any alerts currently suppressed? Why?"

> [accordion] Dashboards and reporting
>
> * "Give me an executive summary of the last 30 days from the Executive dashboard."
> * "Create a dashboard called 'Weekly SOC review' with case volume by severity, mean time to resolve, and top alert sources."
> * "Email the Weekly SOC review dashboard to me every Monday morning."

> [accordion] Coverage and platform
>
> * "Which log sources are we missing compared to our detection coverage?"
> * "List integrations that are failing or disconnected."
> * "Who changed case settings in the audit log this week?"

## 🔒 Security & Limits

* **Your permissions, your organization.** Every request runs with your AirMDR identity and role. The assistant can't see organizations you don't have access to, or do anything you couldn't do in the app.
* **You choose write access.** OAuth connections are read only unless you pick **Read and make changes** at sign-in.
* **Confirmation for risky actions.** Tools that use investigation credits (investigating an alert, reinvestigating a case, asking Darryl), delete something or send email are marked as destructive, so assistants ask you before running them. Bulk case updates show a preview first.
* **Secrets stay hidden.** Values that look like keys, tokens, passwords or webhook URLs, and fields marked secret, are redacted before the assistant sees them.
* **Email stays inside your organization.** Dashboard emails and schedules can only go to active users in your AirMDR organization.
* **Rate limit.** Each user can make about 120 tool calls per minute. Above that, calls are rejected until the minute is up.
* **Audit trail.** Every tool call is logged with the tool name, user, organization and outcome. Argument values and credentials are never logged.

> [!NOTE]
>
> What you share with an assistant is also handled under that assistant provider's terms and your agreement with them. Check your organization's AI policy before connecting.

## Disconnect

| Client | How to remove AirMDR |
| :- | :- |
| **Claude** | **Settings → Connectors**, open AirMDR, then **Disconnect** or **Remove** |
| **Claude Code** | `claude mcp remove airmdr` (add `--scope user` if you added it that way) |
| **ChatGPT** | **Settings → Apps & Connectors**, open AirMDR, then **Disconnect** or **Delete** |
| **Gemini** | **Customise → Connectors**, open AirMDR, then remove it |
| **Cursor** | Delete the `airmdr` entry from `mcp.json`, or turn it off in **Cursor Settings → MCP** |
| **Gemini CLI** | Delete the `airmdr` entry from `settings.json` |
| **Gemini Enterprise** | An admin deletes the data store |

> [!TIP]
>
> To revoke an API token, delete it in **Admin dashboard → API Tokens** using the **Delete** option under ACTION. The token stops working within 5 minutes.

## Troubleshooting

> [accordion] The assistant says it isn't authorized, or asks me to sign in again
>
> Your AirMDR session ended: you signed out, it passed 7 days, or your account changed. Reconnect the connector (in Claude Code, `/mcp` → **airmdr** → **Authenticate**).

> [accordion] Write tools are missing
>
> You connected with **Read only**. Disconnect and connect again, then choose **Read and make changes**. If write tools still don't appear, your AirMDR role may not allow that change.

> [accordion] An action fails with a permission error
>
> The assistant has your permissions, no more. Ask an AirMDR admin if you need a different role.

> [accordion] Redirect URI not allowed
>
> Your client isn't on the list of supported OAuth clients yet. Connect with an API token if you're an admin, or contact AirMDR support.

> [accordion] The API token is rejected
>
> Make sure the header is exactly `Authorization: Bearer YOUR_API_TOKEN`, with no quotes or extra spaces, and that the token hasn't been deleted. Only tokens created in **Admin dashboard → API Tokens** work.

> [accordion] Too many requests
>
> You passed about 120 tool calls in a minute. Wait a moment and try again, or ask the assistant to fetch fewer items at once.

> [accordion] The assistant can't find a case or alert I can see in the app
>
> Check that you signed in to the right AirMDR organization (the consent page shows it), and give the case number or a narrower time range.

## FAQ

> [accordion] Does it work with SSO?
>
> Yes. OAuth uses the normal AirMDR sign-in page, so password and SSO logins both work.

> [accordion] Do I need to install anything?
>
> No. The server is hosted by AirMDR at `https://app.airmdr.com/mcp`. You only add the URL to your assistant.

> [accordion] Can every user connect, or only admins?
>
> Every AirMDR user can connect with OAuth. Only admins can create the API tokens used by the token method.

> [accordion] Does the assistant use investigation credits?
>
> Only when you ask it to start or rerun an investigation, or to ask Darryl. Those tools ask for confirmation first. Reading cases, alerts and dashboards doesn't use credits.


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