Install Claude
Install ChatGPT
Install Cursor
What your agent can do
Every tool is read-only. Your agent can search and read, and it cannot create, change, or delete anything in your account. Because every detection carries a taxonomy category, your agent can ask precise questions instead of keyword-matching. Categories are hierarchical, somalware/* covers
every malware family path while malware/infostealer stays narrow.
Your agent writes the InfraQL. You can ask in plain language and read the query
it ran.
Before you start
You need an Infrawatch API key. Create one in API access and give it the scopes the work needs:search.view for search, reports.view for reporting,
and the relevant esi.*.view scopes for project data.
The endpoint is:
X-API-Key header the REST API uses. That is the
only accepted form. Bearer tokens are not accepted.
Claude
- Claude Code
- Claude apps
.mcp.json that reads the key
from the environment instead of embedding it:ChatGPT and Codex
- Codex CLI
- ChatGPT
Add the server to Do not use
~/.codex/config.toml. env_http_headers points at the
environment variable holding your key, so the key itself stays out of the
file:bearer_token_env_var. It sends Authorization: Bearer, which
this endpoint does not accept.Cursor
<your-api-key>
in the generated entry with your key. Or add it to ~/.cursor/mcp.json by hand:
Try it
Once connected, ask in plain language.Triage an alert
Red teaming
Scope an engagement from the outside, exactly as an attacker would see it. Nothing here touches the target: it is all prior observation.Red team work stays within your authorisation. Infrawatch reports what it has
already observed from the public internet, so scoping an engagement never
sends traffic to the target.
Hunt
Billing
MCP is billed as ordinary API usage. There is no separate MCP plan, no per-seat charge, and no premium rate.
A tool call is an API request, metered exactly as if you had called the
endpoint yourself with
curl. It counts against the same monthly quota, obeys
the same rate limits, and is subject to the same scopes on the same key.
That makes usage easy to predict: one question that takes your agent five
searches costs five API requests. To watch it live, ask your agent for your
current usage. It reports your quota and remaining balance, and that check is
itself free.
Because everything runs on your key’s existing scopes, an agent can never
reach data you could not reach yourself. Narrow the key’s scopes to narrow
what your agent can see.
When something goes wrong
Your agent sees the API’s own error, so it can usually explain and correct itself.
If no tools appear at all, check that the URL is exactly
https://api.infrawatch.com/mcp/v1 and that your header name is X-API-Key.
Create an API key
Scopes, headers, and error handling for the underlying API.
Learn InfraQL
Read and adapt the queries your agent runs.