MCP GatewayAgentKeeper MCP server

AgentKeeper MCP Server

AgentKeeper MCP Server lets approved AI assistants query AgentKeeper evidence through a hosted, governed MCP endpoint. Use it when a SOC copilot, coding assistant, SOAR workflow, GRC assistant, or...

AgentKeeper MCP Server lets approved AI assistants query AgentKeeper evidence through a hosted, governed MCP endpoint. Use it when a SOC copilot, coding assistant, SOAR workflow, GRC assistant, or internal agent needs scoped access to AgentKeeper activity, investigations, workstation posture, Gateway posture, policy context, and audit-ready summaries.

This is not a generic connector and it is not the local MCP Gateway. Treat it like API access for AI clients: credentials live in Settings > MCP Server, every call is scoped, every result is redacted by default, and every request leaves an audit trail.

Only Owners and Admins can create, rotate, enable, disable, or review hosted AgentKeeper MCP Server clients. Developers and legacy Members cannot access the client management screen or client audit diagnostics.

Where this belongs

AgentKeeper has multiple MCP-related surfaces. They solve different jobs.

SurfaceUse it forLives in
AgentKeeper MCP ServerGiving AI assistants governed read access to AgentKeeper evidence and summariesSettings > MCP Server, /api/mcp, this page
MCP GatewayRouting and governing developer MCP tool traffic before it reaches upstream toolsMCP Gateway docs, Gateway dashboard, agentkeeper-mcp-gateway
Runtime Integration APISending runtime, hook, scan, gateway, MCP, and OTLP events into AgentKeeperRuntime Integration API
Webhooks and API ReferenceExporting events or integrating AgentKeeper data with external systemsTrust and reference docs

If you are configuring Claude Desktop, Cursor, or another client to route developer MCP tools through AgentKeeper, start with MCP Gateway. If you are giving an assistant access to AgentKeeper's own security evidence, stay here.

What ships now

CapabilityCurrent contract
TransportHosted Streamable HTTP at /api/mcp; no local server install
AuthenticationBearer service-account tokens created in Settings > MCP Server; OAuth protected-resource metadata is published for compatible clients
Default profilestandard redaction
Tool surfaceSecurity summary, activity, investigations, inventory, host posture, MCP Gateway posture, drift, and policy explanation
ResourcesOrganization security summary and redaction profile reference
PromptsActivity triage, evidence packet preparation, MCP drift review
AuditEvery call is bound to org, client, subject, request, method, redaction profile, and result hash
WritesGoverned investigation and evidence-export workflows only; destructive admin writes are excluded

Prompt evidence remains sealed in MCP responses. The hosted MCP Server does not expose a raw prompt unseal tool in this release; human dashboard unseal remains owner/admin-only with a required reason and audit log.

Setup in under 10 minutes

  1. Open Settings > MCP Server as an owner or admin.
  2. Create a service-account client.
  3. Keep standard redaction unless Security approves a narrower or deeper profile.
  4. Grant only the scopes the assistant needs.
  5. Store the visible-once ak_mcp_... token.
  6. Copy the MCP URL and config snippet into the client.
  7. Run the setup center test connection.
  8. Ask the assistant for a security summary or bounded activity search.

Client configuration

Use this shape for MCP clients that support remote Streamable HTTP servers.

{
  "mcpServers": {
    "agentkeeper": {
      "type": "http",
      "url": "https://agentkeeper.dev/api/mcp",
      "headers": {
        "Authorization": "Bearer ak_mcp_REPLACE_WITH_VISIBLE_ONCE_SECRET"
      }
    }
  }
}

Some clients use slightly different names for remote HTTP MCP servers. Keep the values the same: URL /api/mcp, header Authorization: Bearer ..., and protected-resource metadata URL /.well-known/oauth-protected-resource.

Claude Code

claude mcp add agentkeeper --transport http https://agentkeeper.dev/api/mcp \
  --header "Authorization: Bearer ak_mcp_REPLACE_WITH_VISIBLE_ONCE_SECRET"

Run claude mcp list or /mcp in Claude Code to confirm the server is registered.

Cursor

Add this to .cursor/mcp.json:

{
  "mcpServers": {
    "agentkeeper": {
      "url": "https://agentkeeper.dev/api/mcp",
      "headers": {
        "Authorization": "Bearer ak_mcp_REPLACE_WITH_VISIBLE_ONCE_SECRET"
      }
    }
  }
}

Restart Cursor after changing the file.

VS Code

Add this to .vscode/mcp.json:

{
  "servers": {
    "agentkeeper": {
      "type": "http",
      "url": "https://agentkeeper.dev/api/mcp",
      "headers": {
        "Authorization": "Bearer ak_mcp_REPLACE_WITH_VISIBLE_ONCE_SECRET"
      }
    }
  }
}

Windsurf

Add this to ~/.codeium/windsurf/mcp_config.json:

{
  "mcpServers": {
    "agentkeeper": {
      "serverUrl": "https://agentkeeper.dev/api/mcp",
      "headers": {
        "Authorization": "Bearer ak_mcp_REPLACE_WITH_VISIBLE_ONCE_SECRET"
      }
    }
  }
}

Restart the client after editing its MCP config.

Questions to try

Start with prompts that force the assistant to cite result scope before making claims.

  • "Ask AgentKeeper for a security summary for the last 24 hours. Include the redaction profile, omissions, and links."
  • "Search AgentKeeper activity for blocked or warned MCP activity today, then summarize the top investigative questions."
  • "Prepare an investigation brief for the highest-severity open alert, including timeline, host posture, policy decision, and omitted data."
  • "Compare MCP Gateway drift and list unmanaged or runtime-only MCP servers with affected hosts."
  • "Create an audit-ready evidence packet for this customer question, but do not include raw prompts or tool payloads."

Scopes

ScopePurpose
activity:readSearch and summarize AgentKeeper activity
investigations:readInvestigation search, briefs, timelines, and related context
investigations:writeGoverned investigation acknowledgement, comments, and exception requests
inventory:readWorkstation inventory, identity, runtime, and posture retrieval
gateway:readMCP Gateway posture, drift, server, and tool context
policies:readPolicy decision explanation and rule context
evidence:exportBounded evidence export jobs and durable export resources
audit:readClient usage diagnostics and support review

Denied calls return the required scopes and the scopes the client actually has, so admins can understand the exact permission gap before changing credentials.

Write scopes do not unlock destructive administration. The v1 governed write surface is limited to investigation acknowledgement, assignment, comments, exception requests, and export requests. Policy edits, deletes, unblock actions, raw evidence reveal, client administration, and broad mutation tools are excluded.

Redaction profiles

ProfileUse forBehavior
minimalBroad assistants and executive summariesSmall evidence slices, capped strings, deeper object fields omitted
standardDefault read profileRedacts raw prompts, tool input/output, payload bodies, secrets, tokens, webhooks, and credentials
forensicApproved incident responseDeeper fields and larger evidence caps, still audited and bounded

Every tool response includes:

{
  "schema_version": "agentkeeper.mcp.v1",
  "result_id": "...",
  "org_id": "...",
  "source": "agentkeeper.activity",
  "time_window": { "from": "...", "to": "..." },
  "redaction_profile": "standard",
  "result_cap": 50,
  "next_cursor": "...",
  "links": [],
  "summary": {},
  "evidence": [],
  "redactions": {
    "profile": "standard",
    "redacted": 4,
    "omitted": 0,
    "capped": 2,
    "notes": []
  },
  "omissions": []
}

The assistant should cite result_id, time window, redaction profile, omissions, and console links whenever it prepares an incident summary or audit packet.

Response contract

AgentKeeper returns model-readable evidence, not chat-shaped prose. Each response should make it obvious what was searched, what was capped, what was redacted, and where a human can verify the source.

FieldWhy it matters
schema_versionLets clients and prompts handle future contract changes safely
result_idStable handle for support, audit, and assistant citations
time_windowPrevents assistants from overclaiming beyond the bounded search
redaction_profileShows which exposure policy shaped the result
result_cap and next_cursorMakes pagination and truncation explicit
linksGives humans console drill-down without exposing raw data in chat
redactions and omissionsForces summaries to disclose what was removed or withheld

Tools

ToolWhat it does
agentkeeper_get_security_summaryReturns recent activity volume, open investigation count, workstation count, MCP Gateway event count, links, and newest redacted events
agentkeeper_search_activitySearches bounded activity with query, time window, verdicts, sources, cursor pagination, and caps
agentkeeper_activity_summaryProduces a compact SOC/GRC brief with notable events and next investigative questions
agentkeeper_search_investigationsSearches investigation alerts by query, status, severity, actor, host, MCP server, and MCP tool
agentkeeper_prepare_investigation_briefBuilds an investigation brief with timeline, host posture, related investigations, policy context, MCP context, omissions, and next questions
agentkeeper_search_inventoryReturns workstation posture labels for managed, stale, sandboxed, Runtime Shield-active, Cowork-active, and MCP Gateway-covered hosts
agentkeeper_get_host_postureRetrieves one workstation with identity, runtime, scan, shield, Cowork, gateway, and recent MCP event context
agentkeeper_search_mcp_gateway_postureSearches gateways and discovered MCP servers with mode, version, connected clients, connected servers, stale state, and server catalog
agentkeeper_compare_mcp_driftCompares discovered servers, runtime events, policies, affected hosts, runtime-only servers, and unapproved runtime servers
agentkeeper_explain_policy_decisionExplains a Shield, MCP, or investigation decision with matched rule, outcome language, evidence, omissions, and console links
agentkeeper_acknowledge_investigationMoves an investigation to review and records an audited MCP-scoped analyst note
agentkeeper_comment_investigationRecords an audited analyst comment on an investigation without resolving or mutating policy state
agentkeeper_assign_investigationAssigns an investigation to a human owner by email or user id with an audited MCP-scoped workflow note
agentkeeper_request_exceptionCreates a governed exception request only when the existing policy eligibility gate allows it
agentkeeper_request_evidence_exportCreates a bounded export job and returns a durable agentkeeper://exports/<id> resource URI

Tool descriptions are intentionally model-readable. They explain the required scopes, bounded windows, caps, and how to use links for console drill-down.

Resources

ResourceWhat it returns
agentkeeper://org/security-summaryCurrent redacted security summary for the organization
agentkeeper://catalog/redaction-profilesMinimal, standard, and forensic profile behavior
agentkeeper://exports/recentRecent evidence export jobs for the current MCP client
agentkeeper://exports/<id>Status and metadata for one export job returned by agentkeeper_request_evidence_export

Large evidence windows should use export resources instead of streaming rows through a chat transcript. Export jobs are bounded, expiring, client-bound, and audited.

Prompts

PromptBest use
agentkeeper_triage_activitySuspicious agent activity, blocked command, prompt injection, or MCP tool review
agentkeeper_prepare_evidence_packetCustomer trust, audit, GRC, or incident review packet
agentkeeper_review_mcp_driftInstalled vs runtime MCP drift, unmanaged servers, deprecated tools, and affected hosts

Prompts do not perform hidden actions. They give the assistant a disciplined workflow that starts with redaction, omissions, and time windows before making claims.

Admin review before enabling a client

Before credentials are used, review the client like an API key with an AI-specific blast radius.

Review itemWhat good looks like
OwnerHuman or service principal is named and accountable
ScopesOnly the assistant's job scopes are enabled
Redactionstandard is default; forensic has security approval
NetworkAllowed IPs or environment restrictions are set when available
Rate limitsHigh-volume workflows have explicit caps and support contacts
Test transcriptSetup center shows initialize, list, and one bounded tool call
Audit pathAdmins know where to inspect request ID, session hash, and denied-scope diagnostics

Support diagnostics

Support can diagnose a request with:

  • Client ID
  • Org ID
  • Request ID
  • Session hash
  • Audit event ID
  • Protocol method
  • Tool, resource, or prompt name
  • Redaction profile and counts
  • Denied scope
  • Rate-limit state
  • Timestamp and user agent

Security model

Read access excludes destructive admin actions, raw profile exposure by default, unbounded analytics scans, and policy mutation. Large exports should return jobs and durable resource links rather than streaming huge windows through MCP.

The highest-risk classes are cross-org access, token leakage, redaction leaks, unbounded queries, and client compatibility drift. Treat those as launch gates, not polish.

Troubleshooting

SymptomCheck
401 from /api/mcpToken missing, expired, revoked, or copied with extra whitespace
403 from /api/mcpClient disabled or scope denied
Tool is visible but call is deniedCreate a new client with the required scope, or keep the current narrower client for least privilege
Assistant output overclaimsTell it to cite redactions, omissions, and time_window before conclusions
No events returnedNarrow query, extend the bounded window, or confirm Activity has matching events
Tools do not appear in the clientConfirm the server URL is exactly /api/mcp, restart the client, and check the setup center test transcript
You expected MCP tool routing or blockingUse MCP Gateway; MCP Server is for assistant access to AgentKeeper evidence
You need headless automationUse a service-account MCP client with the smallest scope set and a named owner

Product benchmark

The setup experience should feel like the best modern hosted MCP servers: obvious endpoint, no local install, copyable client snippets, practical prompts to try, clear authentication guidance, live test transcript, and client-specific troubleshooting. AgentKeeper's differentiator is the security layer around the evidence: redaction by default, policy context, auditability, durable links, transparent permission explanations, and enterprise-safe summaries.