About Shieldcortex
Shieldcortex is an MCP server published by Drakon-Systems-Ltd in the RAG category: memory security for AI agents. Scan native memory writes, gate tools on bound hosts, inspect what was stored. Not a second brain. Conduid read 32 tools from its source: audit_query, consolidate, defence_stats, detect_contradictions, end_session, export_memories and 26 more. It is published to npm as shieldcortex and starts with npx.
The repository has 25 stars and 2 forks, is licensed MIT, and its last commit was on 1 Dec 2026. The latest release is v5.10.5 (18 Oct 2026). It follows v5.10.4 (17 Oct 2026), and the 5 most recent releases go back to v5.10.1 (15 Oct 2026). It passes 4 of the 5 static checks Conduid ran on the repository; it does not pass No dynamic code execution. Its topics include ai-memory, ai-security, cybersecurity, knowledge-graph, langchain and llm-security.
Install
claude mcp add shieldcortex -- npx -y shieldcortexnpx -y shieldcortexgit clone https://github.com/Drakon-Systems-Ltd/ShieldCortexTools (32)
audit_queryQuery defence audit logs for forensic analysis| Parameter | Type | Description |
|---|---|---|
| endTime | string | ISO timestamp end |
| firewallResult | string | |
| limit | number | |
| operation | string | |
| source | string | Filter by source |
| startTime | string | ISO timestamp start |
consolidateRun memory consolidation (like brain sleep). Promotes STM to LTM, decays old memories. Use dryRun to preview.| Parameter | Type | Description |
|---|---|---|
| dryRun | boolean | Preview what would happen without doing it |
| force | boolean | Force consolidation |
defence_statsGet defence system statistics| Parameter | Type | Description |
|---|---|---|
| timeRange | string |
detect_contradictionsScan memories for potential contradictions. Finds memories that may contain conflicting information about the same topic, such as: - Different solutions to the same problem - Conflicting recommendations (use X vs don't use X) - Opposite decisions or preferences Contradictions are automatically detected during consolidation and linked; this tool checks for new contradictions at any time.| Parameter | Type | Description |
|---|---|---|
| category | string | Filter by category |
| limit | number | Maximum results to return |
| minScore | number | Minimum contradiction score (0-1, default 0.4) |
| project | string | Filter by project (omit for current project) |
end_sessionEnd session and trigger consolidation.| Parameter | Type | Description |
|---|---|---|
| sessionId * | number | Session ID |
| summary | string | Session summary |
export_memoriesExport memories as JSON for backup.| Parameter | Type | Description |
|---|---|---|
| project | string | Project scope. Auto-detected if not provided. Use "*" for all projects. |
forgetDelete memories. Use dryRun: true to preview, confirm: true for bulk.| Parameter | Type | Description |
|---|---|---|
| belowSalience | number | Delete below salience |
| category | string | Delete category |
| confirm | boolean | Confirm bulk delete |
| dryRun | boolean | Preview only |
| fromSource | string | Revoke-by-source: delete all memories written by this source ("type:identifier", or "type:*" for a whole type). Requires the trust-hierarchy revoke ACL (own the source or outrank it). Use project:"*" to revoke across all projects. |
| id | number | Memory ID to delete |
| olderThan | number | Delete older than N days |
| project | string | Project scope for deletion. Auto-detected if not provided. Use "*" for all projects. |
| query | string | Delete matching query |
get_contextGet relevant context from memory. THE KEY TOOL for maintaining context. Use at session start, after compaction, when switching tasks, or to recall project info. Returns: architecture decisions, patterns, pending items, recent activity.| Parameter | Type | Description |
|---|---|---|
| format | string | Output format. "raw" is a JSON document: stored text is untrusted data, flagged by its untrusted_data_notice field rather than a prose frame. |
| project | string | Project scope. Auto-detected if not provided. Use "*" for all projects. |
| query | string | Current task for relevant context |
get_memoryGet a specific memory by ID.| Parameter | Type | Description |
|---|---|---|
| id * | number | Memory ID |
get_projectShow current project scope and detection info.get_relatedGet memories related to a specific memory. Shows connections and relationships.| Parameter | Type | Description |
|---|---|---|
| id * | number | Memory ID to find relationships for |
graph_entitiesList known entities in the knowledge graph, optionally filtered by type.| Parameter | Type | Description |
|---|---|---|
| limit | number | Max results (default 50) |
| minMentions | number | Minimum memory references (default 1) |
| type | string | Filter by entity type (person, tool, concept, file, language, service, pattern) |
graph_explainExplain the relationship between two entities by finding paths connecting them in the knowledge graph.| Parameter | Type | Description |
|---|---|---|
| from * | string | Source entity name |
| maxDepth | number | Max path length (default 4) |
| to * | string | Target entity name |
graph_queryTraverse the knowledge graph from an entity. Returns each reachable entity once, at its shallowest depth, with the edge that first reached it (BFS spanning tree — parallel edges between the same pair are not enumerated).| Parameter | Type | Description |
|---|---|---|
| depth | number | Max traversal depth (default 2) |
| entity * | string | Entity name to start from |
| predicates | array | Filter by predicate types |
import_memoriesImport memories from JSON.| Parameter | Type | Description |
|---|---|---|
| data * | string | JSON data |
iron_dome_activateActivate Iron Dome with a profile. Profiles: school (GDPR strict), enterprise (financial protection), personal (lighter touch), paranoid (everything requires approval).| Parameter | Type | Description |
|---|---|---|
| profile | string | Security profile to activate |
iron_dome_checkCheck if an action is allowed (gateway + action gate). Use this before performing external actions like sending emails or deleting files.| Parameter | Type | Description |
|---|---|---|
| action * | string | The action type to check (e.g. "send_email", "delete_file", "api_call") |
| channel | string | The instruction channel (e.g. "terminal", "telegram", "email") |
iron_dome_emergency_stopEmergency kill switch — immediately locks down ALL agent operations. Use when you detect suspicious activity. Reversible via iron_dome_resume.iron_dome_resumeResume agent operations after kill switch investigation. Only use after confirming the threat has been addressed.| Parameter | Type | Description |
|---|---|---|
| reason * | string | Why operations are being resumed (required for audit trail) |
iron_dome_scanScan text for prompt injection patterns. Returns detections with category, severity, and matched text.| Parameter | Type | Description |
|---|---|---|
| text * | string | The text to scan for injection patterns |
iron_dome_statusCheck if Iron Dome is active and show kill switch state. Shows config summary including profile, trusted channels, and approval rules.link_memoriesCreate a relationship link between two memories.| Parameter | Type | Description |
|---|---|---|
| relationship * | string | Type of relationship |
| sourceId * | number | Source memory ID |
| strength | number | Relationship strength (0-1) |
| targetId * | number | Target memory ID |
memory_statsGet memory statistics.| Parameter | Type | Description |
|---|---|---|
| project | string | Project scope. Auto-detected if not provided. Use "*" for all projects. |
quarantine_reviewReview and manage quarantined memories| Parameter | Type | Description |
|---|---|---|
| action * | string | |
| notes | string | |
| quarantineId | number | ID for approve/reject |
| sourceIdentifier | string | Source identifier for batch approve (e.g. "user-spawned>task-1") |
recallSearch and retrieve memories. Use this to: - Find relevant context ("What do I know about auth?") - Get recent activity ("What did we work on?") - Find decisions ("What architecture decisions were made?") Modes: search (query-based), recent (by time), important (by salience)| Parameter | Type | Description |
|---|---|---|
| category | string | Filter by category |
| includeDecayed | boolean | Include decayed memories |
| includeGlobal | boolean | Include global memories in search results (default: true) |
| limit | number | Max results |
| mode | string | Recall mode |
| project | string | Project scope. Auto-detected if not provided. Use "*" for all projects. |
| query | string | Search query |
| tags | array | Filter by tags |
| type | string | Filter by type |
rememberStore information in memory for later recall. Use this to remember: - Architecture decisions ("We're using PostgreSQL for the database") - Code patterns ("The auth flow uses JWT tokens") - User preferences ("Always use TypeScript strict mode") - Error resolutions ("Fixed by updating the dependency") - Project context ("This is a React + Node.js project") - Important notes ("Remember to test the edge cases") The system automatically detects importance, categorizes, and manages storage. Content is scanned through the defence pipeline before storage. Suspicious content may be quarantined.| Parameter | Type | Description |
|---|---|---|
| category | string | Category (auto-detected if not provided) |
| content * | string | Detailed content |
| importance | string | Override automatic salience |
| project | string | Project scope. Auto-detected from working directory if not provided. Use "*" for global. |
| scope | string | Memory scope: project (default) or global (cross-project) |
| tags | array | Tags for categorization |
| title * | string | Short title for the memory |
| transferable | boolean | Whether this memory can be transferred to other projects |
| type | string | Memory type (auto-determined if not provided) |
scan_memoriesScan existing memories for signs of poisoning| Parameter | Type | Description |
|---|---|---|
| limit | number | Max memories to scan |
| project | string | Scan specific project |
scan_skillScan an agent instruction file (skill, hook, rules) for threats. Supports Claude Code (SKILL.md), OpenClaw (HOOK.md, handler.js), Cursor (.cursorrules), Windsurf (.windsurfrules), Cline (.clinerules), GitHub Copilot, Aider, Continue.| Parameter | Type | Description |
|---|---|---|
| content * | string | The skill/instruction file content to scan |
| format | string | File format (auto-detected if omitted) |
| mode | string | Defence mode (default: balanced) |
| name | string | Skill name for the report |
scan_tool_responseScan a tool response for injection attacks and credential leaks. Use this to verify responses from external MCP servers before trusting their content. Runs injection detection (40+ patterns) and credential leak scanning (25+ providers).set_projectSwitch active project context. Use "${GLOBAL_PROJECT_SENTINEL}" for global/all projects.| Parameter | Type | Description |
|---|---|---|
| project * | string | Project name, or "${GLOBAL_PROJECT_SENTINEL}" for global scope |
start_sessionStart a new coding session. Returns relevant context.| Parameter | Type | Description |
|---|---|---|
| project | string | Project scope. Auto-detected if not provided. Use "*" for global. |
threat_graphQuery the threat graph — the security event graph projected from the defence audit ledgers. Views: sources (per-source counters), source (one source with its triggered patterns + recent events), events (recent notable events), campaigns (coordinated-attack clusters), allowances (operator auto-release grants), conflicts (relation-channel disputes awaiting review). Responses are row- and byte-capped with an explicit truncated flag.| Parameter | Type | Description |
|---|---|---|
| key | string | Source key for view 'source', e.g. 'agent:build-bot' |
| limit | number | Max rows (default 50, hard cap 200) |
| project | string | Filter events by originating project |
| since | string | ISO timestamp — only rows seen at/after this |
| view * | string | What to list |
Security checks
- ✓README presentThe repository's README runs to about 1.6K words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedA lockfile pins dependency versions.
- !No dynamic code executionScanned 655 source files and found 77 calls to eval or shell execution, in dashboard/src/lib/pro-previews.ts, src/audit/dependency-scanner.ts and src/cli/approve-provenance.ts among others. Review how tool inputs reach them before granting credentials.
1 check has not been run yet.
Releases
README
The repository's README runs to about 1.6K words, fetched a month ago. The original in the repository is authoritative.
Read full README