Skip to main content
Calseta includes a native Model Context Protocol (MCP) server that gives AI agents direct access to alert data, detection rules, enrichment results, context documents, workflows, and metrics — with zero custom client code.

What is MCP?

MCP is an open protocol that connects AI models to external data sources and tools. Instead of building custom API integrations, agents that support MCP can discover and use Calseta’s data automatically.

Architecture

The MCP server runs as a separate process on port 8001, connecting to the same PostgreSQL database as the REST API:
Your Agent (Claude, GPT, etc.)

    │ MCP Protocol (SSE transport)


Calseta MCP Server (port 8001)


PostgreSQL (shared with REST API)
The MCP server is a thin adapter over the same service layer as the REST API. It has no independent business logic — same data, same auth, different protocol.

Authentication

The MCP server uses the same API keys as the REST API. Pass the key in the request headers:
Authorization: Bearer cai_your_api_key
The same scopes apply. An MCP client with alerts:read can access alert resources but not execute workflows.

Resources vs Tools

ConceptPurposeAnalogy
ResourcesRead-only data accessGET endpoints
ToolsActions with side effectsPOST/PATCH endpoints

Resources (Read)

URIDescription
calseta://alertsList recent alerts
calseta://alerts/{uuid}Get a single alert with full details
calseta://alerts/{uuid}/activityActivity timeline for an alert
calseta://alerts/{uuid}/contextContext documents matched to an alert
calseta://detection-rulesList all detection rules
calseta://detection-rules/{uuid}Get a single detection rule
calseta://context-documentsList all context documents
calseta://context-documents/{uuid}Get a single context document
calseta://workflowsList active workflows
calseta://workflows/{uuid}Get a single workflow
calseta://enrichments/{type}/{value}Enrichment results for an indicator
calseta://metrics/summaryPlatform metrics summary

Tools (Write/Execute)

ToolDescription
post_alert_findingPost an analysis finding to an alert
update_alert_statusUpdate an alert’s investigation status
execute_workflowTrigger workflow execution
enrich_indicatorTrigger on-demand enrichment
search_alertsSearch alerts with filters
search_detection_rulesSearch detection rules

Token Optimization

MCP resources are designed for minimal token consumption:
  • Structured data — clean field names, no raw API dumps
  • Extracted enrichment — only the most relevant fields from each provider
  • Documentation included — detection rules and workflows include their documentation inline, so agents don’t need to make additional calls
  • No code in workflow resources — agents see documentation and metadata, not implementation

Framework Agnostic

The MCP server works with any MCP-compatible client:
  • Claude Desktop
  • Claude Code
  • Cursor
  • Custom MCP clients
  • Any tool implementing the MCP protocol
See MCP Setup for configuration instructions.