Skip to main content

Audience

All AirMDR users. Admins can also connect with an API token.

What

Connect your AI assistant to AirMDR through the Model Context Protocol (MCP).

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 (MCP). Once connected, you can ask an assistant to triage cases, summarize alerts, explain an investigation, build dashboards or draft a weekly security report.
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

  • An active AirMDR 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

Choose How to Connect

✨ Connect with OAuth (All Users)

1

Add AirMDR to your AI assistant

Open the section for your assistant and follow the steps.
  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.
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.
  1. Run the following command:
    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.
  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.
Menu names and availability vary by ChatGPT plan. On Business and Enterprise workspaces, a workspace admin may need to allow custom connectors first.
  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.
  1. Add the following to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (one project):
  2. Open Cursor Settings → MCP.
  3. Next to airmdr, click Login (or Needs login).
  1. Add the server to ~/.gemini/settings.json:
  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.
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:
    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:
  4. Add the data store to your Gemini Enterprise app. Each user clicks Authorize once and signs in to AirMDR.
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.
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.
    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.
    To switch between Read only and Read and make changes, disconnect the connector and connect it again.
4

Verify the connection

Ask your assistant:
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.
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.
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.
2

Add the token to your client

Send the token as a bearer token in the Authorization header. Open the section for your client:
In ~/.cursor/mcp.json:
In ~/.gemini/settings.json:
Use the MCP connector in the Messages API to give Claude the AirMDR tools in your own application:
Use the URL https://app.airmdr.com/mcp and the header:
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.
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

  • “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.”
  • “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?”
  • “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.”
  • “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.
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

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

Your AirMDR session ended: you signed out, it passed 7 days, or your account changed. Reconnect the connector (in Claude Code, /mcp → airmdr → Authenticate).
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.
The assistant has your permissions, no more. Ask an AirMDR admin if you need a different role.
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.
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.
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.
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

Yes. OAuth uses the normal AirMDR sign-in page, so password and SSO logins both work.
No. The server is hosted by AirMDR at https://app.airmdr.com/mcp. You only add the URL to your assistant.
Every AirMDR user can connect with OAuth. Only admins can create the API tokens used by the token method.
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.