Connecting CTEM data to AI agents over MCP: asking an AI about your own attack surface
PentaTrail Team···8 min read

Contents
"What's the most dangerous vulnerability we have right now?" "Which hosts appeared last week?" You can ask an AI in plain language instead of clicking through a dashboard.
The answers come from your own current attack surface data. What follows covers the mechanism, what it can do, and how the guardrails carry over.
Appendix: the tools, and how to start
Table 1: Read tools
| Tool | What comes back |
|---|---|
ctem_list_domains |
Monitored domains and their observation state; the place to start |
ctem_get_domain_overview |
Asset counts, open counts by threat level, recent change |
ctem_list_assets |
Asset list (hosts, IPs, URLs, ports, technologies, buckets and more) |
ctem_list_findings |
Findings, highest threat level first; open only by default |
ctem_get_finding |
One finding in detail, with detection history |
ctem_get_prioritization |
Risk bands, affected hosts, owners, attack-path chokepoints |
ctem_list_groups |
Groups, members, and contract owners. Omit the domain to retrieve host information and summaries across the contract. |
ctem_list_tasks |
Remediation tasks and counts by status |
ctem_get_mail_settings |
View remediation reminder recipients, delivery preferences, and assigned hosts. |
Table 2: Write tools
| Tool | What it does |
|---|---|
ctem_manage_domain |
Add a monitored domain, remove one |
ctem_manage_group |
Create, change and delete groups, assign hosts, add and remove users |
ctem_manage_task |
Mark a task as needing no action, or undo a "no action needed" decision |
ctem_manage_exclusions |
Exclude assets from monitoring, or bring them back |
ctem_manage_business_impact |
Set asset importance to Important, Standard, or Limited, or switch back to AI-based assessment. |
ctem_manage_mail_settings |
Change remediation reminder frequency, language, and the contract's time zone. |
The three steps to start
- Register
https://api.pentatrail.co/mcpwith your AI agent as a remote server. - When the tool starts connecting, a browser opens; read what the connection permits and approve it.
- Ask "what's the highest-priority vulnerability on our domain?"
Visualize your attack surface with PentaTrail CTEM/ASM
From discovery to remediation — all powered by the CTEM framework.



