1. Conduid
  2. RAG
  3. Shieldcortex
MCP server · RAG

Shieldcortex

Memory security for AI agents. Scan native memory writes, gate tools on bound hosts, inspect what was stored. Not a second brain.

62Good

Scored 20 hours ago · breakdown

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 Code
claude mcp add shieldcortex -- npx -y shieldcortex
npx
npx -y shieldcortex
From source
git clone https://github.com/Drakon-Systems-Ltd/ShieldCortex

Tools (32)

audit_queryQuery defence audit logs for forensic analysis
ParameterTypeDescription
endTimestringISO timestamp end
firewallResultstring
limitnumber
operationstring
sourcestringFilter by source
startTimestringISO timestamp start
consolidateRun memory consolidation (like brain sleep). Promotes STM to LTM, decays old memories. Use dryRun to preview.
ParameterTypeDescription
dryRunbooleanPreview what would happen without doing it
forcebooleanForce consolidation
defence_statsGet defence system statistics
ParameterTypeDescription
timeRangestring
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.
ParameterTypeDescription
categorystringFilter by category
limitnumberMaximum results to return
minScorenumberMinimum contradiction score (0-1, default 0.4)
projectstringFilter by project (omit for current project)
end_sessionEnd session and trigger consolidation.
ParameterTypeDescription
sessionId *numberSession ID
summarystringSession summary
export_memoriesExport memories as JSON for backup.
ParameterTypeDescription
projectstringProject scope. Auto-detected if not provided. Use "*" for all projects.
forgetDelete memories. Use dryRun: true to preview, confirm: true for bulk.
ParameterTypeDescription
belowSaliencenumberDelete below salience
categorystringDelete category
confirmbooleanConfirm bulk delete
dryRunbooleanPreview only
fromSourcestringRevoke-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.
idnumberMemory ID to delete
olderThannumberDelete older than N days
projectstringProject scope for deletion. Auto-detected if not provided. Use "*" for all projects.
querystringDelete 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.
ParameterTypeDescription
formatstringOutput format. "raw" is a JSON document: stored text is untrusted data, flagged by its untrusted_data_notice field rather than a prose frame.
projectstringProject scope. Auto-detected if not provided. Use "*" for all projects.
querystringCurrent task for relevant context
get_memoryGet a specific memory by ID.
ParameterTypeDescription
id *numberMemory ID
get_projectShow current project scope and detection info.
get_relatedGet memories related to a specific memory. Shows connections and relationships.
ParameterTypeDescription
id *numberMemory ID to find relationships for
graph_entitiesList known entities in the knowledge graph, optionally filtered by type.
ParameterTypeDescription
limitnumberMax results (default 50)
minMentionsnumberMinimum memory references (default 1)
typestringFilter 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.
ParameterTypeDescription
from *stringSource entity name
maxDepthnumberMax path length (default 4)
to *stringTarget 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).
ParameterTypeDescription
depthnumberMax traversal depth (default 2)
entity *stringEntity name to start from
predicatesarrayFilter by predicate types
import_memoriesImport memories from JSON.
ParameterTypeDescription
data *stringJSON data
iron_dome_activateActivate Iron Dome with a profile. Profiles: school (GDPR strict), enterprise (financial protection), personal (lighter touch), paranoid (everything requires approval).
ParameterTypeDescription
profilestringSecurity 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.
ParameterTypeDescription
action *stringThe action type to check (e.g. "send_email", "delete_file", "api_call")
channelstringThe 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.
ParameterTypeDescription
reason *stringWhy operations are being resumed (required for audit trail)
iron_dome_scanScan text for prompt injection patterns. Returns detections with category, severity, and matched text.
ParameterTypeDescription
text *stringThe 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.
ParameterTypeDescription
relationship *stringType of relationship
sourceId *numberSource memory ID
strengthnumberRelationship strength (0-1)
targetId *numberTarget memory ID
memory_statsGet memory statistics.
ParameterTypeDescription
projectstringProject scope. Auto-detected if not provided. Use "*" for all projects.
quarantine_reviewReview and manage quarantined memories
ParameterTypeDescription
action *string
notesstring
quarantineIdnumberID for approve/reject
sourceIdentifierstringSource 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)
ParameterTypeDescription
categorystringFilter by category
includeDecayedbooleanInclude decayed memories
includeGlobalbooleanInclude global memories in search results (default: true)
limitnumberMax results
modestringRecall mode
projectstringProject scope. Auto-detected if not provided. Use "*" for all projects.
querystringSearch query
tagsarrayFilter by tags
typestringFilter 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.
ParameterTypeDescription
categorystringCategory (auto-detected if not provided)
content *stringDetailed content
importancestringOverride automatic salience
projectstringProject scope. Auto-detected from working directory if not provided. Use "*" for global.
scopestringMemory scope: project (default) or global (cross-project)
tagsarrayTags for categorization
title *stringShort title for the memory
transferablebooleanWhether this memory can be transferred to other projects
typestringMemory type (auto-determined if not provided)
scan_memoriesScan existing memories for signs of poisoning
ParameterTypeDescription
limitnumberMax memories to scan
projectstringScan 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.
ParameterTypeDescription
content *stringThe skill/instruction file content to scan
formatstringFile format (auto-detected if omitted)
modestringDefence mode (default: balanced)
namestringSkill 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.
ParameterTypeDescription
project *stringProject name, or "${GLOBAL_PROJECT_SENTINEL}" for global scope
start_sessionStart a new coding session. Returns relevant context.
ParameterTypeDescription
projectstringProject 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.
ParameterTypeDescription
keystringSource key for view 'source', e.g. 'agent:build-bot'
limitnumberMax rows (default 50, hard cap 200)
projectstringFilter events by originating project
sincestringISO timestamp — only rows seen at/after this
view *stringWhat 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

v5.10.5v5.10.5 · 18 Oct 2026What's Changed fix(lock): an ownership check during a holder's own copy-restoration no longer revokes it (#819) by @TARSDrakon in https://github.com/Drakon-Systems-Ltd/ShieldCortex/pull/820 fix(quarantine): approving a re-held item no…
v5.10.4v5.10.4 · 17 Oct 2026What's Changed fix(database): a displaced startup-lock holder revokes ownership at its next check (#813) by @CASE-Drakon in https://github.com/Drakon-Systems-Ltd/ShieldCortex/pull/814 fix(lock): keep ownership after no-hard-link…
v5.10.3v5.10.3 · 16 Oct 2026What's Changed fix(xray): never replace a findings store that could not be read (#801) by @TARSDrakon in https://github.com/Drakon-Systems-Ltd/ShieldCortex/pull/803 fix(cli): terminal-safe JSON for remaining --json and SARIF outputs (#798)…
v5.10.2v5.10.2 · 16 Oct 2026What's Changed fix(ledger): refuse project changes on chained defence_audit rows (#674 part 1) by @TARSDrakon in https://github.com/Drakon-Systems-Ltd/ShieldCortex/pull/796 fix(cli): sanitise native remediation and re-run lines in…
v5.10.1v5.10.1 · 15 Oct 2026What's Changed test(iron-dome): replace the #86-redos 50 ms budget with a warmed 8x scaling differential (#770) by @CASE-Drakon in https://github.com/Drakon-Systems-Ltd/ShieldCortex/pull/772 fix(service): non-zero exit when the service…

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
Questions

About Shieldcortex

How do I install Shieldcortex?

In Claude Code, run claude mcp add shieldcortex -- npx -y shieldcortex. Other MCP clients take the command after "--" in their server configuration.

Is Shieldcortex safe to use with an AI agent?

Its trust score is 62 out of 100 (good). It passes 4 of the 5 static checks Conduid ran on the repository; it does not pass No dynamic code execution. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Shieldcortex still maintained?

Yes — the latest release is v5.10.5 (18 Oct 2026), and the last commit was yesterday. The repository has 25 stars and 60 open issues.

What tools does Shieldcortex provide?

Conduid read 32 tools from the source: audit_query, consolidate, defence_stats, detect_contradictions, end_session, export_memories, forget, get_context and 24 more. 28 of them publish their parameters, listed under Tools above.

What license is Shieldcortex released under?

The repository declares the MIT license. That applies to the latest release, v5.10.5, as well.