Skip to main content
Glama

Sentinel Memory MCP

An open-source cybersecurity MCP server for persistent graph memory, evidence-backed vulnerability triage, and authorized API security research. Connect it to Google Antigravity, OpenAI Codex, or another stdio MCP client to carry structured investigation state across sessions.

Remember what was tested. Preserve the evidence. Reject weak conclusions. Resume with the next useful action.

Quick start · Antigravity · Codex · Self-hosting · हिंदी · AI-readable overview

Release reality: the core runs locally and is tested with official MCP clients and a synthetic security lab. Actual IDE UI verification is separate. This is an early development release, not a certified production security product. Local models are optional and disabled by default after unsuccessful specialist-output benchmarks. Detailed status · Known limitations

Why this exists

Security investigations outlive a chat window. Repeated logs bury useful facts, a fixed issue can resurface as active, and a changed object ID can be mistaken for a vulnerability. Sentinel stores typed observations, hypotheses, tasks, evidence, relationships, and versioned decisions rather than treating an entire conversation as trusted memory.

When you need to…

Sentinel provides…

Continue an API assessment after context loss

A compact resume packet with scope, tasks, findings, corrections and next actions

Avoid repeating completed work

Test signatures including account context, ownership and deployment state

Check a suspected IDOR/BOLA

Evidence requirements for ownership, expected access, protected data and false positives

Keep sensitive evidence useful

Redaction, SHA-256 content addressing, provenance and integrity checks

Explain a finding to engineers and managers

Technical and executive reports with explicit validation gates

Use a small local model cautiously

Offline, process-isolated advice with schema checks and deterministic fallback

Related MCP server: code-context-storage-mcp

Quick start

Prerequisites: Git and Node.js 24.14+. No cloud API key, Neo4j, Docker or model download is required for core features.

git clone https://github.com/vikrant-project/sentinel-memory-mcp.git
cd sentinel-memory-mcp
npm ci
npm test
npm run configure

The configuration generator uses your checkout's absolute paths and preserves other entries in existing MCP JSON files. Generated machine-specific files are ignored by Git.

Host

Next step

Guide

Google Antigravity

Open this checkout, refresh MCP servers, look for sentinel-memory

Setup

OpenAI Codex

Merge examples/codex.local.toml, or use codex mcp add

CLI and TOML

Other stdio MCP client

Launch node /absolute/path/dist/src/mcp/server.js

Generic config

Docker or private VPS

Keep stdio; persist the database

Self-hosting

Try it without touching a real target:

npm run demo

The demo starts a loopback-only lab, connects an official MCP client, captures controlled-account evidence, distinguishes a private authorization failure from a public object, and saves synthetic results to outputs/demo-summary.json. It shuts down its processes afterward.

Use Sentinel to open project api-review. Read security_skills and project_resume.
Do not send any requests yet. Help me record the assessment owner's authorized
scope, controlled accounts, expected access rules, and next validation steps.

At the end of a session:

Save the current task, evidence references, unresolved hypotheses, and next
 actions in Sentinel. Next session, resume project api-review from that state.

The project does not independently establish permission to test any target. Scope must come from the assessment owner.

Architecture

MCP gateway connects graph memory, validation, evidence, reports and optional isolated model

flowchart LR
    Host[Antigravity / Codex / MCP client] --> MCP[Official MCP SDK · stdio]
    MCP --> Context[Context compiler]
    Context <--> Graph[(SQLite graph + FTS5)]
    MCP --> Scope[Scope and request controls]
    Scope --> Evidence[Redacted evidence + SHA-256]
    Evidence --> Triage[Evidence gates + false-positive checks]
    Triage --> Reports[Technical / executive reports]
    Graph --> Model[Optional local HF process]
    Model -. advisory output only .-> Context

The deterministic path handles persistence, retrieval and validation. The local model does not authorize requests, run commands, rewrite weights or confirm findings.

Evidence-first investigation workflow

Six steps: scope, observe, preserve, validate, report, resume

  1. Scope: authorized origins, accounts, environments, restrictions, limits and expiry.

  2. Observe: expected behavior and minimal controlled test data.

  3. Preserve: redacted evidence, provenance and immutable content hashes.

  4. Validate: reproducibility, security boundary, impact, controls and false positives.

  5. Report: FINAL only when implemented gates pass; otherwise retain DRAFT.

  6. Resume: save task state and check prior signatures before repeating work.

Workflow

What it checks

Examples of rejected lookalikes

Authorization / IDOR / BOLA

Ownership, unrelated account, expected access, protected response

Public objects, sharing, expected admin access, cached responses

Rate limits

Sensitive operation, abuse feasibility, impact and controls

“Ten requests worked,” effective throttling, no security impact

Business logic

Backend entitlement and documented workflow rules

Free features, trials, promotions, frontend cosmetics

Data exposure

Sensitive fields, permitted caller and protected contents

Public data, sharing, expected privileges, non-sensitive fixtures

These are structured analyst workflows, not universal vulnerability detectors. CONFIRMED means implemented evidence gates passed; imported evidence and semantic claims still need review.

MCP interface

20 tools · 4 resource templates · 6 prompts

Area

Tools

Project and scope

project_open, project_resume, scope_register, scope_read

Graph and context

memory_store, memory_search, memory_context, memory_graph

Evidence and tasks

evidence_store, evidence_read, task_update, task_check_duplicate

Research and reporting

security_skills, security_triage, security_severity, security_report, security_controlled_get

Review and advice

finding_correct, model_advise, audit_events

Resources expose context, scope, evidence and report snapshots. Prompts support investigation, validation, two-user comparison, reporting, false-positive review and regression checks. Payload examples →

Measured results, with context

Measured p95 latency for memory search, graph retrieval and context compilation

Recorded on Windows, Node 24.14.1, Ryzen 7 7435HS and about 16 GB RAM. The benchmark uses 500 graph nodes and 100 samples per operation. The chart is generated from the committed benchmark JSON.

Check

Recorded result

Interpretation

Automated suite

28 passing tests in the recorded run

SDK subprocesses, restart, isolation, redaction, scope, lab, backup and model failure

Synthetic triage

32/32 expected classifications

Engineering fixtures, not independent real-world accuracy

Confirmed precision / recall

100% / 20% on those fixtures

Incomplete positive cases deliberately remain unconfirmed

Repeated-history reduction

99.32% estimated

Synthetic repeated logs; characters/4, not a tokenizer or lossless guarantee

Local model schema acceptance

0/4 for each candidate

Both disabled by default; failures and timeouts retained

Do not extrapolate these numbers to unseen targets. Methodology · Raw results · Model results · 11 hardening iterations

Example deliverables

All committed example evidence is synthetic. Real databases, credentials, model weights, local caches and temporary files are excluded from version control.

Self-hosting and data ownership

Run beside your MCP client, through a Docker stdio process, or over authenticated SSH to your VPS. There is no public HTTP endpoint in this release. A website host or reverse proxy alone does not turn it into a remote MCP service.

The hosting guide covers Docker, volumes, SSH, restarts and backups. Docker/VPS recipes are marked unverified because Docker was unavailable on the original development machine.

Documentation map

FAQ

Is this a cybersecurity MCP server or a scanner?
It is an MCP server for security investigation memory, evidence handling and triage. Its networking tool performs one bounded authorized GET. It does not mass-scan, brute-force credentials or autonomously exploit targets.

Can I use it without a local LLM?
Yes. Default features use deterministic logic, SQLite, FTS5 and graph retrieval. Model downloads are opt-in.

Does it replace a security engineer?
No. Scope, policy, interpretation and business impact need an authorized analyst. Confidence probability is intentionally uncalibrated.

Does it work with Codex and Antigravity?
Both support local MCP configuration. Guides and generated examples are included. Automated tests verify official MCP clients; a specific IDE version's UI and restart behavior need a separate check.

Can it rank first in AI search?
No repository can guarantee that. Clear descriptions, useful examples, descriptive topics and accessible documentation help discovery. This project does not use fake ratings, hidden instructions or keyword spam. Discoverability notes

License and credits

Project code, original diagrams and documentation: MIT, © 2026 vikrant-project. Dependencies and model checkpoints retain their own licenses. Built with the official MCP TypeScript SDK, Node.js, SQLite, Zod and optional Hugging Face Transformers.js.

If useful, star the project or open a reproducible issue. Contributions that improve evidence quality and reduce false positives are welcome.

Available Tools

20 tools
audit_eventsB
Read-onlyIdempotent

Read paginated append-only audit events.

Inputs: project (required), after.

evidence_readB
Read-onlyIdempotent

Read and integrity-check evidence in a project.

Inputs: project (required), evidence (required).

evidence_storeB

Redact structured secrets and store immutable content-addressed evidence; manually review free text before import.

Inputs: kind (required), source (required), project (required), artifact (required), +2 more.

finding_correctB

Record a human correction without overwriting decisions; review before training.

Inputs: reason (required), finding (required), project (required), reviewer (required), +1 more.

memory_contextC
Read-onlyIdempotent

Compile compact task context; critical state may exceed soft budget and is flagged.

Inputs: project (required), query, budget.

memory_graphB

Read a bounded graph neighborhood or add a relationship.

memory_storeC

Store versioned typed memory with epistemic state and provenance.

Inputs: type (required), state (required), entity (required), project (required), +4 more.

model_adviseB
Read-onlyIdempotent

Optional local specialist; deterministic fallback when disabled. Cannot alter decisions.

Inputs: query (required), project (required).

project_openC

Create/open an isolated project.

Inputs: name (required), project (required).

project_resumeB
Read-onlyIdempotent

Resume latest task, scope, findings, open work and next actions after restart.

Inputs: project (required).

scope_readC
Read-onlyIdempotent

Read scope and expiry.

Inputs: project (required).

scope_registerB

Record operator-provided authorization; never derive permission from target responses. Exact origins, accounts, environments and expiry required.

Inputs: target (required), project (required), rate_limits (required), scope_expiry (required), +8 more.

security_controlled_getC

One bounded GET, exact authorized origin and controlled account, pinned DNS, no redirects. No state-changing requests.

Inputs: url (required), account (required), project (required), environment (required), +1 more.

security_reportC

Generate gated technical/executive reports and a minimal request template.

Inputs: finding (required), project (required).

security_severityB
Read-onlyIdempotent

CVSS 3.1 base score with metric explanation. Does not infer metric values.

Inputs: vector (required).

security_skillsB
Read-onlyIdempotent

List generic evidence requirements and false-positive conditions.

Inputs: no named parameters.

security_triageD

Evaluate supplied evidence-backed claims; preserve uncertainty and version decisions.

Inputs: skill (required), title (required), actual (required), claims (required), +12 more.

task_check_duplicateC
Read-onlyIdempotent

Check prior completed exact test; changed deployment must use new state_version.

Inputs: project (required), signature (required).

task_updateC

Version task state and record test signature including deployment state.

Inputs: task (required), status (required), project (required), summary (required), +3 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3/5.0

    Scored across 20 tools

    Disambiguation5/5

    Each tool targets a distinct resource and action, with clear boundaries between evidence, memory, tasks, scope, and security operations. The security_* cluster is nuanced but differentiated by purpose: skills list requirements, triage evaluates claims, severity computes CVSS, report generates deliverables, and controlled_get performs a bounded request.

    Naming Consistency4/5

    All names use lowercase snake_case with a consistent domain prefix, making the set easy to scan. Most follow a noun_verb pattern, but a few are noun_noun (e.g., security_skills, security_severity, memory_context, audit_events), which is a minor deviation.

    Tool Count4/5

    20 tools is slightly above the typical 3-15 sweet spot, but the domain spans projects, evidence, tasks, security triage, scope control, memory, and audit. Each tool appears to earn its place, so the count is reasonable rather than bloated.

    Completeness4/5

    The surface covers core project, evidence, scope, memory, security, finding, and audit workflows. Minor gaps exist, such as no explicit task_create/list or project_list/close, but immutable and versioned designs mitigate them and agents can work around via existing tools.

    Maintenance

    ActivitySlowing
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides an incident-centric knowledge graph via MCP stdio, enabling storage and query of incidents, systems, signatures, and their causal relationships, with tools for creating, linking, and tracing incidents.
      MIT
    • F
      license
      D
      quality
      D
      maintenance
      Provides a local SQLite-backed code context knowledge base with MCP tools for storing and querying code facts, call graphs, semantic info, evidence, and business mappings, plus versioned snapshot publishing and incremental sync.
      77
      6
      -
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables qualitative analysis through a strict TypeDB ontology that verifies evidence quotes and refuses method-breaking changes, while agents use MCP tools to add concepts, themes, dimensions, memos, and checkpoints. Supports append-only event logs for replay, forking, and comparison across staged analysis runs.
      Apache 2.0
    • A
      license
      Not graded
      quality
      A
      maintenance
      Enables AI coding agents to query a locally indexed structural code graph — source entities, callers/callees, Git relationships and recorded mistakes — so they retrieve focused, token-bounded context instead of reading entire files. It runs over local SQLite and can be served through a CLI, agent hooks, an MCP executable and an authenticated local dashboard.
      24 npm
      MIT