NEXUS Context
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
NEXUS Context (nexus-context)
Zero-dependency local context & evidence layer in Node.js 24+ (node:sqlite + native FTS5) for verifiable token reduction, deterministic evidence selection with expandable originals, and project-scoped versioned agent memory via MCP (stdio) and CLI.
What It Solves
Deterministic reduction with provenance (
select/expand): Filters bulky logs (including numeric HTTP status codes such as503without relying on the wordERROR), compacts and projects JSON while preserving critical values, counts, and pagination metadata, slices code by line range, and stores recoverable originals (ev_...) with TTL, per-project LRU quotas, source-change detection (sourceModified), and prior secret redaction.Versioned memory and compact resume (
memory/checkpoint): Strictly isolates records byprojectId, tracks active decisions, rejected approaches with rationale, optimistic concurrency control (expectedRevision), idempotency (eventId), explicit historical queries, transactional forgetting across tables + FTS5 + blobs, and a resume card capped at ~500 tokens with branch/HEAD drift warnings.Ultra-lean MCP server (
stdioJSON-RPC 2.0): Exposes 3 tools (nexus_evidence,nexus_memory,nexus_record) to minimize catalog overhead, protects prompt caching with on-demand retrieval, and requires human approval (candidate->active) by default.Honest metrics: Separates filtered bytes, local token estimates, re-queries, and
p50/p95latency, explicitly noting that actual billing cost depends on official provider telemetry.
Related MCP server: @centr-ai/mcp
Prerequisites & Quick Start
Requires Node.js >= 24.0.0 (for built-in node:sqlite and FTS5 support).
# Filter logs for HTTP 503 with 3 context lines
node bin/nexus-context.js select --project my-app --file .\app.log --status 503 --context-lines 3 --max-tokens 300
# Expand the original content of a returned evidence item
node bin/nexus-context.js expand ev_<id> --project my-app --start-line 120 --end-line 150
# Record a decision and query active project memory
node bin/nexus-context.js memory record --project my-app --kind decision --title "Use SQLite FTS5" --content "Local lexical search without external services" --source "ADR-004"
node bin/nexus-context.js memory query --project my-app --query "FTS5"
# Save and resume a task checkpoint (<= 500 estimated tokens)
node bin/nexus-context.js checkpoint save --project my-app --task t-1 --objective "Fix 503" --pending "Validate retry"
node bin/nexus-context.js checkpoint resume --project my-app --task t-1
# Generate ready-to-use MCP client config (invokes node directly with bin/nexus-context-mcp.js, no cmd.exe)
node bin/nexus-context.js install-config openbot --project my-app
node bin/nexus-context.js install-config codex --project my-app
node bin/nexus-context.js install-config claude-code --project my-app
node bin/nexus-context.js install-config gemini-cli --project my-appWindows Security: Configs generated by
install-configinvokenode.exedirectly withbin/nexus-context-mcp.js(withoutcmd.exeor.cmdwrappers), mitigating CVE-2024-24576,&command injection, and%VAR%expansion. When passing untrusted or arbitrary content to the CLI, preferstdinor direct invocation vianode bin/nexus-context.js.
Documentation & Contract
Technical contract: CONTRACT.md
Integration guide (OpenBot, Codex CLI, Claude Code, Gemini CLI): docs/INTEGRATION.md
Benchmark & validation reports: Benchmark v1 · Core Engine Validation
Tests & Benchmarks
npm run check
npm test
node benchmarks/validate-report.js
node benchmarks/run-benchmark.jsLicense
MIT — Emerson Almeida (@deusbr).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Stateless agentic tools over MCP: concept extraction, long-context, knowledge graph, planning.
Cross-tool persistent memory and context for AI assistants over MCP.
Multiple MCP tools, persistent graph memory, token-saving data pointers, and more.
Evidence-backed project memory and checkpoints for AI coding agents.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceDeterministic context compression for MCP agents, reducing token usage via 11 tools for prompts, history, shell output, file deltas, and code navigation without ML or GPU.9MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI coding agents to retrieve token-budgeted project context, search code symbols, look up definitions, and access project memory and cross-project learnings through local MCP tools. It reduces redundant exploration by supplying the smallest useful context from a deterministic, local-first index.MIT
- AlicenseNot gradedqualityCmaintenanceProvides coding agents with structured planning, persistent project memory, automated verification, and safety permission controls through MCP tools, enabling better planning, context retention, self-checking, and guarded execution.MIT

artificial-memoryofficial
AlicenseNot gradedqualityBmaintenanceEnables AI agents to persist, recall, expand, trace, and inspect durable memories with provenance through MCP tools.MIT