
A modular FastMCP server for interacting with Microsoft Graph API, supporting advanced queries for users, sign-in logs, MFA status, and privileged users.

A local-first security MCP server that verifies agent actions against your rules, anchors goals, logs actions, and grades sessions.
Carapace MCP Server is cataloged as an MCP server attributed to jdesl55. A local-first security MCP server that verifies agent actions against your rules, anchors goals, logs actions, and grades sessions. It is categorized under auth security. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.
能力定义尚未审核。未核验的采集内容不会作为可信接口展示。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for Carapace MCP Server are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
It generates a verification key every 30 minutes from a secret kept outside the agent's context, so a prompt injection cannot forge it.
It stores config, logs, the signing secret, and insights in a local ~/.carapace/ directory.
README.md · c30c80b5cd92 · 采集于 2026-11-13 13:56:30 UTC
保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。
当前显示最后一次成功采集的文档快照,请以来源页面为准。
Armor for your AI agent.
Carapace is a local-first security system for autonomous AI agents. It plugs into any MCP-compatible agent (OpenClaw, Claude Code, Codex, and others) and provides security verification, goal anchoring, drift detection, action logging, and session grading — all running on your machine with zero cloud dependencies.
Autonomous AI agents can take real actions: send emails, make purchases, delete files, browse the web. Two critical risks come with this power:
Prompt Injection - Malicious instructions hidden in emails, web pages, or documents trick your agent into executing actions you never authorized. CrowdStrike and Cisco have both published warnings about this happening to OpenClaw users.
Goal Drift - Your agent starts organizing your inbox, and three hours later it's browsing Reddit because it followed a chain of links and lost focus. No malice involved — just a lack of persistent grounding.
Carapace solves both.
Carapace runs as an MCP server on your machine. Your agent connects to it and calls its tools before, during, and after taking actions.
Security Checkpoint - Before any sensitive action (spending money, sending messages, deleting files), the agent checks with Carapace. You set the rules ("never spend more than $50," "never message these people"). Carapace blocks anything that violates your rules.
Rotating Key Anti-Hijacking - Every 30 minutes, Carapace generates a cryptographic verification key using a secret that never enters the agent's context window. The real agent has the key. A prompt injection can't forge it. Like a bouncer checking wristbands at a venue.
Goal Anchoring - Every 15 minutes, Carapace re-reads your goals, priorities, and constraints to the agent. It detects when the agent wanders off-task and flags drift before it becomes a problem.
Session Grading - At the end of each session, Carapace grades the agent's performance against your configured goals. Scores across goal alignment, security compliance, and constraint adherence. Generates actionable insights that feed back into the next session, making your agent sharper over time.
Carapace exposes 5 tools via the Model Context Protocol:
| Tool | Purpose |
|---|---|
carapace_verify | Security checkpoint. Validates actions against your rules, returns pass/block verdict with rotating key. |
carapace_anchor | Goal journal. Returns your goals, priorities, and constraints. Detects drift by comparing agent activity against configured categories. |
carapace_log | Action logger. Records what the agent did, flags unverified sensitive actions. |
carapace_status | Security posture summary. Health status, action counts, key rotation timing, drift level. |
carapace_review | Session grader. Analyzes all actions against goals, produces a scorecard with grades, highlights, and improvement insights. |
git clone https://github.com/jdesl55/carapace-mcp.git
cd carapace-mcp
npm install
npm run build
On first run, Carapace creates ~/.carapace/ with your config, database, and security secret.
Add to your OpenClaw MCP config (~/.config/openclaw/mcp.json):
{
"mcpServers": {
"carapace": {
"command": "node",
"args": ["/path/to/carapace-mcp/dist/index.js"]
}
}
}
npx @modelcontextprotocol/inspector node dist/index.js
All configuration lives in ~/.carapace/config.json. Edit it by hand or use the Carapace Dashboard for a visual interface.
{
"security": {
"keyRotationMinutes": 30,
"spendingLimits": {
"perAction": 50,
"daily": 200,
"warnAbove": 20
},
"contacts": {
"mode": "blocklist",
"blocked": ["scammer@evil.com"]
},
"domains": {
"mode": "blocklist",
"blocked": []
},
"blockedActions": [],
"customRules": []
},
"anchor": {
"refreshIntervalMinutes": 15,
"goals": ["Manage inbox and respond to important emails"],
"priorities": [{ "rank": 1, "text": "Never spend money without confirmation" }],
"constraints": ["Never share personal information with unknown contacts"],
"goalCategories": ["email", "calendar", "productivity"]
}
}
┌─────────────────┐ ┌──────────────────────┐ ┌─────────────────┐
│ AI Agent │────▶│ Carapace MCP Server │────▶│ ~/.carapace/ │
│ (OpenClaw) │◀────│ (local, stdio) │◀────│ config.json │
└─────────────────┘ └──────────────────────┘ │ logs.db │
│ .secret │
┌─────────────────┐ │ insights.md │
│ Dashboard │──────────────────────────────────▶│ │
│ (localhost) │◀──────────────────────────────────│ │
└─────────────────┘ └─────────────────┘
The MCP server and dashboard are completely decoupled. They communicate through shared local files — never directly. The dashboard writes config, the server reads it. The server writes logs, the dashboard reads them.
| File | Purpose | Written by | Read by |
|---|---|---|---|
~/.carapace/config.json | Security rules, goals, priorities | Dashboard | MCP Server |
~/.carapace/logs.db | Action log, session reviews | MCP Server | Dashboard |
~/.carapace/.secret | HMAC signing key (600 permissions) | MCP Server | MCP Server only |
~/.carapace/insights.md | Session learnings for agent improvement | MCP Server | Agent (at session start) |
Carapace creates a continuous improvement cycle for your agent:
carapace_review grades the session against your goalsinsights.mdinsights.md and incorporates the learningsThe agent doesn't need to remember or self-improve. Carapace observes from the outside and feeds structured instructions back in.
For a visual interface to configure rules, edit goals, monitor activity, and view performance scorecards, see the Carapace Dashboard.
@anthropic-ai/sdk)MIT
Carapace is a security tool. If you discover a vulnerability, please report it responsibly by opening a GitHub issue or contacting the maintainer directly.
The HMAC secret at ~/.carapace/.secret is created with 600 file permissions (owner read/write only). It never enters the agent's context window and is never transmitted over any network.
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for Carapace MCP Server from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/carapace-mcp)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。
尚无已审核的包 / 镜像标识,暂不展示下载统计。
Alternative and complementary servers in the same category

A modular FastMCP server for interacting with Microsoft Graph API, supporting advanced queries for users, sign-in logs, MFA status, and privileged users.

A Model Context Protocol (MCP) server that provides programmatic access to Keycloak administration functionality.

An MCP server for LLM-driven penetration testing that wraps Kali tools and adds scope enforcement, engagement tracking, and structured output.