Skip to main content

MCP Authentication

API Key Format

MCP API keys use the mcp_ prefix:

mcp_<random_alphanumeric>

Requests to the MCP server carry the API key in the X-MCP-API-Key header:

curl -H "X-MCP-API-Key: mcp_..." https://api.zen-mesh.io/v1/mcp/health

Key Scopes

MCP keys support granular scopes. The default read-only surface grants:

ScopeTools
mcp:read:healthzen_get_health
mcp:read:endpointszen_list_endpoints
mcp:read:evidencezen_get_evidence
mcp:read:deliverieszen_get_delivery_status
mcp:read:planeszen_list_planes
mcp:read:logszen_show_logs
mcp:read:*All read-only tools

Admin tools (create_api_key, revoke_api_key) require mcp:admin:keys scope and are not available on the default surface.

TLS

All MCP traffic uses TLS 1.2+ with system root CA verification. InsecureSkipVerify is permanently blocked. For sandbox deployments with self-signed certificates, provide a custom CA via MCP_TLS_CA_CERT.