For partners

AIRE MCP Server

Give your AI assistants read-only, permissioned access to AI Risk Explorer's incident databases through the Model Context Protocol.

https://airiskexplorer.com/api/mcp
View raw MarkdownRequest access

Copy these docs into your own LLM's context so it knows how to connect and which tools to use.

Overview

The AIRE MCP server gives AI assistants and research tools direct, read-only access to AI Risk Explorer datasets through the Model Context Protocol. Connect it to Claude, Cursor or your own agent and ask questions in plain language; the assistant searches, aggregates and cites AIRE records on your behalf.

  • Read-only. Nothing you send can change AIRE data.
  • Scoped per partner. Each API key grants specific datasets, so you only see the tools and tables your agreement covers.
  • Published records only. Records still under editorial review and internal working fields are never exposed.
  • Live. Results reflect the AIRE databases at the moment of the request.

This page is also available as plain Markdown at https://airiskexplorer.com/partners/docs.md. Paste it into your own LLM's context, or give it the URL, so it knows how to use the server.

Quickstart

Endpoint: https://airiskexplorer.com/api/mcp (Streamable HTTP transport, stateless).

1. Get an API key. Keys are issued by the AIRE team. Email info@airiskexplorer.com with your organization, use case and the datasets you need.

2. Connect your client.

Claude Code

bash
claude mcp add --transport http aire https://airiskexplorer.com/api/mcp \
  --header "Authorization: Bearer YOUR_API_KEY"

Claude Desktop

Claude Desktop launches local servers, so bridge to the remote endpoint with mcp-remote. Add this to claude_desktop_config.json and restart the app:

json
{
  "mcpServers": {
    "aire": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://airiskexplorer.com/api/mcp",
        "--header",
        "Authorization: Bearer ${AIRE_API_KEY}"
      ],
      "env": {
        "AIRE_API_KEY": "YOUR_API_KEY"
      }
    }
  }
}

Cursor, Windsurf, VS Code and other HTTP-capable clients

Most clients accept a URL plus headers in their MCP configuration file:

json
{
  "mcpServers": {
    "aire": {
      "url": "https://airiskexplorer.com/api/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_API_KEY"
      }
    }
  }
}

Python (official MCP SDK)

python
import asyncio
from mcp import ClientSession
from mcp.client.streamable_http import streamablehttp_client

async def main():
    headers = {"Authorization": "Bearer YOUR_API_KEY"}
    async with streamablehttp_client("https://airiskexplorer.com/api/mcp", headers=headers) as (read, write, _):
        async with ClientSession(read, write) as session:
            await session.initialize()
            result = await session.call_tool(
                "search_incidents",
                {"actor_origin": "North Korea", "date_from": "2025-01-01", "limit": 10},
            )
            print(result.content[0].text)

asyncio.run(main())

Raw HTTP

The server speaks JSON-RPC 2.0 over HTTP POST. Clients normally send initialize and tools/list first, but each request is independent, so a single tools/call also works:

bash
curl -s https://airiskexplorer.com/api/mcp \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/call",
    "params": {
      "name": "incident_stats",
      "arguments": { "group_by": "quarter", "risk_category": "Cyber Offense" }
    }
  }'

3. Try it. Ask your assistant something like “Which countries' actors used AI in cyber operations most in 2026, and how sophisticated were they?” or “Find documented cases of AI agents sabotaging their own evaluations.”

Authentication and permissions

Send your key on every request as a bearer token:

http
Authorization: Bearer YOUR_API_KEY
  • Datasets. A key grants one or more datasets. Tools for datasets outside your key are not listed, and their tables reject queries.
  • Raw SQL. The query_sql tool is enabled per key. Without it you still have the search, get and stats tools.
  • Expiry and revocation. Keys can carry an expiry date and can be revoked at any time. A revoked or expired key gets 401.
  • Discovery. Call describe_schema to see exactly which datasets, tables and columns your key can read.
  • Keep it secret. Treat the key like a password. Store it in an environment variable or secret manager rather than in shared prompts or code. If it leaks, ask us to rotate it.

Datasets

Threat incidents

AI-enabled malicious use: cyber offense, manipulation and influence operations, with actor, target, model and MITRE ATT&CK coding plus sophistication and impact scores.

Dataset idTables (schema mcp)Tools
threatsincidents, incident_sophistication_scores, incident_impact_scoressearch_incidents, get_incident, incident_stats

Agentic incidents

Documented cases of AI agents acting against intended control, such as deception, sabotage, reward hacking and constraint circumvention, with behaviour, containment and loss-of-control coding plus sophistication scores.

Dataset idTables (schema mcp)Tools
agentic_incidentsagentic_incidents, agentic_incident_sophistication_scoressearch_agentic_incidents, get_agentic_incident, agentic_incident_stats

More AIRE datasets, such as risk assessments and evaluations, will be added over time. Existing keys keep working and gain access only when the AIRE team grants it.

Tools reference

Search and stats filters are optional, case-insensitive and match partially, so model: "claude" matches every Claude model. Search tools return compact rows with a total count; page with limit and offset, then fetch full records with the matching get tool.

describe_schema

List the datasets this API key can read and every view in them with columns, types and row counts, plus the live rubric versions. Available to: Every key.

Takes no parameters.

search_incidents

Search AI-enabled threat incidents (cyber offense, manipulation and other malicious use). All filters are optional, case-insensitive and partial-match. Returns compact rows with the live sophistication score; use get_incident for the full record. Available to: Keys with the Threat incidents dataset.

ParameterTypeRequiredDefaultNotes
querystringNoFree text matched against headline, description and impact.
risk_categorystringNoe.g. Cyber Offense, Manipulation.
actorstringNoThreat actor name, partial match.
actor_originstringNoCountry the actor operates from, partial match.
targeted_countrystringNo
targeted_sectorstringNo
modelstringNoAI model involved, e.g. Claude, ChatGPT, Gemini.
organizationstringNoOrganization named in the incident, e.g. the reporting AI lab.
mitre_tacticstringNo
taxonomy_categorystringNo
tierstringNoSophistication tier, e.g. Exploratory Use, Augmented Tactics, Autonomous Operations.
min_sophisticationnumberNoMinimum sophistication score S.
date_fromdateNoEarliest reporting_date. Format YYYY-MM-DD.
date_todateNoLatest reporting_date. Format YYYY-MM-DD.
sortenumNo"newest"One of newest, oldest, sophistication.
limitintegerNo25Between 1 and 100.
offsetintegerNo0Minimum 0.

get_incident

Fetch one threat incident by id with every field, its sophistication and impact scores, its parent and its child incidents. Available to: Keys with the Threat incidents dataset.

ParameterTypeRequiredDefaultNotes
iduuidYes

incident_stats

Count threat incidents grouped by one dimension, with average live sophistication score per group. Accepts the same filters as search_incidents. Array dimensions (actor, country, model…) count an incident once per value it lists. Available to: Keys with the Threat incidents dataset.

ParameterTypeRequiredDefaultNotes
group_byenumYesOne of year, quarter, month, tier, model_availability, risk_category, actor, actor_origin, targeted_country, targeted_sector, model, organization, mitre_tactic, taxonomy_category.
querystringNoFree text matched against headline, description and impact.
risk_categorystringNoe.g. Cyber Offense, Manipulation.
actorstringNoThreat actor name, partial match.
actor_originstringNoCountry the actor operates from, partial match.
targeted_countrystringNo
targeted_sectorstringNo
modelstringNoAI model involved, e.g. Claude, ChatGPT, Gemini.
organizationstringNoOrganization named in the incident, e.g. the reporting AI lab.
mitre_tacticstringNo
taxonomy_categorystringNo
tierstringNoSophistication tier, e.g. Exploratory Use, Augmented Tactics, Autonomous Operations.
min_sophisticationnumberNoMinimum sophistication score S.
date_fromdateNoEarliest reporting_date. Format YYYY-MM-DD.
date_todateNoLatest reporting_date. Format YYYY-MM-DD.

search_agentic_incidents

Search documented cases of AI agents behaving against intended control (deception, sabotage, reward hacking, self-exfiltration, constraint circumvention…). All filters are optional, case-insensitive and partial-match. Use get_agentic_incident for the full record. Available to: Keys with the Agentic incidents dataset.

ParameterTypeRequiredDefaultNotes
querystringNoFree text matched against title and summary.
behaviorstringNoMatched against primary and secondary behaviours, e.g. Deception, Sabotage.
developerstringNoModel developer, e.g. OpenAI, Anthropic.
modelstringNo
task_domainstringNo
elicitationstringNo
impact_realizedstringNo
autonomy_levelstringNo
min_sophisticationnumberNoMinimum sophistication score.
date_fromdateNoEarliest date_reported. Format YYYY-MM-DD.
date_todateNoLatest date_reported. Format YYYY-MM-DD.
sortenumNo"newest"One of newest, oldest, sophistication.
limitintegerNo25Between 1 and 100.
offsetintegerNo0Minimum 0.

get_agentic_incident

Fetch one agentic incident by its AIRE id (e.g. AIRE-AI-0210) or uuid, with every field and its scores. Available to: Keys with the Agentic incidents dataset.

ParameterTypeRequiredDefaultNotes
idstringYes

agentic_incident_stats

Count agentic incidents grouped by one dimension, with average live sophistication score per group. Accepts the same filters as search_agentic_incidents. Array dimensions count an incident once per value it lists. Available to: Keys with the Agentic incidents dataset.

ParameterTypeRequiredDefaultNotes
group_byenumYesOne of year, quarter, month, primary_behavior, elicitation, impact_realized, autonomy_level, model_stage, evidence_basis, containment_failure, secondary_behavior, developer, deployer, model, task_domain, capability_tag, loc_capability, loc_propensity.
querystringNoFree text matched against title and summary.
behaviorstringNoMatched against primary and secondary behaviours, e.g. Deception, Sabotage.
developerstringNoModel developer, e.g. OpenAI, Anthropic.
modelstringNo
task_domainstringNo
elicitationstringNo
impact_realizedstringNo
autonomy_levelstringNo
min_sophisticationnumberNoMinimum sophistication score.
date_fromdateNoEarliest date_reported. Format YYYY-MM-DD.
date_todateNoLatest date_reported. Format YYYY-MM-DD.

query_sql

Run one read-only PostgreSQL SELECT against the views in schema mcp (call describe_schema first). Unqualified names resolve to mcp. Runs in a read-only transaction with an 8 second timeout and returns at most 1000 rows. Available to: Keys with raw SQL enabled.

ParameterTypeRequiredDefaultNotes
sqlstringYesA single SELECT or WITH … SELECT statement.
max_rowsintegerNo200Between 1 and 1000.

Raw SQL

Keys with raw SQL enabled can run any single read-only PostgreSQL SELECT (including WITH queries) against the tables in schema mcp. Unqualified table names resolve to mcp.

  • One statement per call. INSERT, UPDATE, DDL and multiple statements are rejected.
  • Queries time out after 8 seconds and return at most 1,000 rows (default 200, set with max_rows). The response says when rows were cut off.
  • Array columns such as actors_origin, risk_cats and model_name are PostgreSQL text[]. Use unnest(), = ANY(column) or column && ARRAY[...].
  • Join scores on incident_id (threats) or agentic_incident_id (agentic) and filter on the live rubric_version shown below to avoid double counting older rubric runs.
  • Tables outside your key's datasets raise a permission error rather than returning empty results.
sql
-- Threat incidents per quarter and origin, with the live sophistication score
SELECT to_char(i.reporting_date, 'YYYY-"Q"Q') AS quarter,
       origin,
       count(*) AS incidents,
       round(avg(s.s), 1) AS avg_sophistication
FROM incidents i
CROSS JOIN LATERAL unnest(i.actors_origin) AS origin
LEFT JOIN incident_sophistication_scores s
  ON s.incident_id = i.id AND s.rubric_version = 'v1'
WHERE i.reporting_date >= '2025-01-01'
GROUP BY 1, 2
ORDER BY 1, 3 DESC;

-- Agentic incidents where a model tried to evade oversight in deployment
SELECT aire_incident_id, incident_title, date_reported, model_name, source_link
FROM agentic_incidents
WHERE primary_behavior ILIKE '%oversight%'
  AND initial_setting ILIKE '%deploy%'
ORDER BY date_reported DESC;

Data notes

TopicDetails
Threat sophisticationScore s sums autonomy (a), adaptivity (p), dependence (g), operational stage coverage (v) and capability depth (c), and maps to a tier from Exploratory Use to Autonomous Operations. Live rubric: v1.
Threat impactincident_impact_scores codes harm types, scale, financial loss and NCISS-style functional, information and recoverability impact.
Agentic scoresThree dimensions: sophistication (sum of the soph_* components, max 29), control subversion (ctrl_raw, sum of ctrl_o, ctrl_d and ctrl_i, max 25) and realised impact (impact_e effect reached and impact_g magnitude, reported as a profile rather than summed). score_vector packs all three into one string. Live rubric: revised-2026-09.
Datesreporting_date and date_reported are when the incident was first publicly reported, not when it happened.
Related threatsThreat incidents can have a parent_id; get_incident returns the parent and any children.
Unknown valuesUnknown in actor origin and similar fields means the source did not attribute it. Empty arrays mean the field was not coded.

When you publish work using AIRE data, cite AI Risk Explorer and link the original source of each incident (the link or source_link field).

Limits and errors

ResponseMeaning
HTTP 401Missing, invalid, expired or revoked API key.
HTTP 405Only POST is supported. The server is stateless and does not open SSE streams.
HTTP 503The database is temporarily unavailable. Retry with backoff.
Tool result with isError: trueThe request reached the database but failed, for example a SQL error, a timeout or a dataset your key lacks. The message explains why.

Search tools return up to 100 rows per call and stats tools up to 200 groups. Please keep automated polling modest; contact us if you need bulk exports.

Support

For access, new datasets, higher limits or problems, email info@airiskexplorer.com.