MCP Server Integration
Connect SOFE to any AI agent (Kiro, Claude, Cursor, Windsurf) via the Model Context Protocol. Your agent can query findings, costs, and remediation directly.
🌊 Endpoint: mcp.sofe.dev
6 tools • MCP Protocol 2024-11-05 • SSE transport
Quick Setup
Kiro CLI
Add to your ~/.kiro/agents/aws-mcp.json or project .kiro/settings/mcp.json:
{
"mcpServers": {
"sofe": {
"url": "https://mcp.sofe.dev/sse?key=sk_sofe_YOUR_KEY"
}
}
}Claude Code / Claude Desktop
{
"mcpServers": {
"sofe": {
"url": "https://mcp.sofe.dev/sse",
"headers": {
"X-SOFE-Key": "sk_sofe_YOUR_KEY"
}
}
}
}Cursor / Windsurf
Add to your MCP settings (Settings → MCP Servers → Add):
URL: https://mcp.sofe.dev/sse Header: X-SOFE-Key: sk_sofe_YOUR_KEY
Get Your API Key
- Go to platform.sofe.dev/keys
- Click "Generate New Key"
- Copy the
sk_sofe_...key (shown once) - Paste into your MCP config above
Available Tools
sofe_get_findingsGet FinOps findings from latest evaluation. Filter by severity or resource type.
sofe_get_costsGet AWS cost breakdown by service with monthly totals.
sofe_get_remediationGet exact AWS CLI commands to fix findings. Copy-paste ready.
sofe_compare_evaluationsCompare latest vs previous: new findings, fixed, trend.
sofe_get_insightsArchitecture insights: SPOFs, blast radius, relationships.
sofe_run_evaluationTrigger a new evaluation on connected AWS account (Pro only).
Example Usage
Once connected, ask your AI agent:
> "What are my critical AWS findings?" → Agent calls sofe_get_findings(severity="critical") → Returns real findings from your latest evaluation > "Give me commands to fix my Lambda issues" → Agent calls sofe_get_remediation(resource_type="lambda") → Returns copy-paste AWS CLI commands > "Is my account improving?" → Agent calls sofe_compare_evaluations() → Returns trend (IMPROVING/STABLE/DEGRADING)
Rate Limits
| Tier | Tool calls/day | Credits per call |
|---|---|---|
| Free | 10 | 1 |
| Pro | 1,000 | — |
| Enterprise | Unlimited | — |
Verify Connection
Test with curl:
# Health check
curl https://mcp.sofe.dev/health
# List tools
curl -X POST https://mcp.sofe.dev/messages?key=sk_sofe_YOUR_KEY \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"tools/list","params":{},"id":1}'💡 Tip: The MCP server uses the same API keys as api.sofe.dev. If your key works for evaluations, it works for MCP.