Connect your AI agent
InfraScan Cloud runs a read-only MCP server. Connect Claude Code, Cursor or another MCP client, and your agent can read your findings and their fixes, then make the change in your Terraform or code. Agents get no access to your AWS accounts.
The server
- Address: https://infrascan.soldevelo.com/cloud/api/mcp
- Transport: Streamable HTTP
- Authentication: an API token in an Authorization: Bearer header
1. Create a token
In InfraScan Cloud, open Settings → AI agents and create a token. Owners and admins can create up to 10 per organization. The token is shown once, and you can revoke it at any time. Settings then shows the commands below with your token filled in.
2. Add the server to your agent
Claude Code
Run in a terminal:
claude mcp add --scope user --transport http infrascan https://infrascan.soldevelo.com/cloud/api/mcp --header "Authorization: Bearer <token>"
--scope user makes InfraScan available in every folder; without it, Claude Code only loads it in the folder you ran the command in.
Cursor and other clients
Add this to the client's MCP configuration file:
{
"mcpServers": {
"infrascan": {
"type": "http",
"url": "https://infrascan.soldevelo.com/cloud/api/mcp",
"headers": {
"Authorization": "Bearer <token>"
}
}
}
}
What your agent can do
- list_targets: your AWS accounts and repositories, with grades, open findings and potential monthly savings.
- list_findings: findings from the latest scans, most severe first, filtered by account or repository, pillar, severity, status or words.
- get_finding: one finding in full: where it is, why it matters, the evidence and the fix as console steps, an AWS CLI command and Terraform.
- get_scan_summary: a scan's grades and what caps them, savings, and what changed since the scan before.
What a token can't do
- Start scans, change findings or reach your AWS accounts. Every tool only reads, and none returns more than the dashboard shows.
- Open any other part of InfraScan Cloud's API: a token works only for the MCP server.
Keep the token in the client's configuration, not in a chat with the agent. Anyone who has it can read your organization's findings until you revoke it.
If it doesn't work
- 401 Unauthorized: the token is mistyped or revoked. Check the header, or create a new token.
- The tools answer that they need a token: the client sends no Authorization header. Add the server again with the header, as above.
- Claude Code doesn't see InfraScan in another folder: the server was added without --scope user. Add it again with the command above.