NervaPack
Offline codebase knowledge graph: 91% token reduction vs naive RAG, plus cross-session agent memory.
Connector by ramdhavepreetam · GitHub account verified by the MCP Registry
Install
Works with Claude Code, Codex, VS Code, Cursor, Windsurf, Claude Desktop. Read the repository before you give any tool access to your data.
npx agentmarket install connector/ramdhavepreetam-nervapack
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this server can do and what it asks for, from its tool list and install config. Checked Oct 25, 2026.
- Tools
- 12 read · 4 write · 1 delete · 5 not yet classified
- Secrets
- None asked for
- Install scripts
- Not scanned yet
- Runs as
- Python package
Tools by what they do 22
Read from the source code; the running server may list different tools.
Read 12 · Look things up without changing anything.
exploregraph_statusmemory_aboutmemory_for_codememory_list_sessionsmemory_recallmemory_statsmemory_to_codememory_verify_stalenessmemory_whyqueryshow_savings
Write 4 · Create, change, send or run things.
memory_end_sessionmemory_importmemory_start_sessionmemory_store
Delete 1 · Delete, drop, revoke or wipe things.
memory_clear_session
Not yet classified 5 · We could not tell from the name and description.
impactmemory_forgetmemory_switch_namespacememory_timelinememory_verify
Files it touches
- Any path the agent passes to its tools
Tools (22)
Read from the source code; the running server may differ. Descriptions are the server’s own words; hidden characters are shown as [U+…].
exploreList entities (classes, functions, imports) in the knowledge graph. Useful for exploring what NervaPack has indexed — e.g. all classes, all functions in a specific file, or all markdown docs. Args: entity_type: Filter by type — "class", "function", "import", "markdown", or "file". Leave empty to list all. file_path: Filter to a specific file (partial match, e.g. "cli.py"). Leave empty to list across all files.
graph_statusReturn the current state of the NervaPack knowledge graph. Shows total node and edge counts broken down by type, which languages are present, and whether any files have been modified since the last ingest (i.e., whether `nervapack sync .` needs to be run). Use this to check if the graph is stale before relying on query results.
impactPerform impact analysis (reverse dependency search). Finds what depends on a given entity (e.g. who calls a function, who imports a file or class) by traversing the graph backwards. Args: target: Name of the entity (e.g. "my_function", "UserAuth", "auth.py"). max_hops: How many hops backwards to traverse (default 1).
memory_aboutReturn all current memories linked to a named entity. Args: entity: Entity name (case-insensitive, supports CamelCase → snake_case).
memory_clear_sessionTombstone or hard-purge all nodes belonging to a session. Args: session_id: The session node ID to clear. purge: If True, hard-delete. Default: tombstone.
memory_end_sessionClose the current session with an outcome summary and queue consolidation. Args: summary: One-paragraph summary of what was done in this session.
memory_for_codeReturn memories that TOUCH a given source file, optionally at a specific line. Args: file_path: Relative path to the source file (e.g. 'src/auth.py'). line: Optional line number to narrow results to overlapping ranges.
memory_forgetTombstone (soft-delete) or hard-purge memory nodes. Args: node_id: Specific node ID to forget. entity: Entity name — forget all nodes linked to this entity. before: ISO timestamp — forget all nodes recorded before this date. purge: If True, hard-delete (irreversible). Default: tombstone.
memory_importBulk-seed memory from a list of node specs. Each spec: {content, kind, confidence?, entities?, rationale?, alternatives_rejected?} Args: nodes: List of node specification dicts.
memory_list_sessionsList all sessions with node counts, newest first. Args: limit: Maximum number of sessions to return.
memory_recallRetrieve the most relevant memories for a query within a token budget. Args: query: Natural-language description of what to look for. budget_tokens: Hard token cap on the returned context block. kinds: Filter to specific node kinds (fact, decision, procedure, etc.). as_of: ISO timestamp or commit hash — retrieve memories as they were then. hops: Graph expansion hops (0–2). min_confidence: Exclude nodes below this confidence threshold. namespace: Read from this namespace without switching the active one.
memory_start_sessionOpen a named session. Returns the session ID and whether it was newly created. Args: name: Human-readable session name (e.g. "JWT auth refactor"). namespace: Switch to this namespace before opening the session.
memory_statsReturn node counts by kind, DB size, top entities by degree, and all namespaces. Args: namespace: If provided, show stats for this namespace instead of the active one.
memory_storePersist a new memory node. Args: content: The core knowledge to store. kind: One of fact, decision, procedure, preference, outcome, action. entities: Code entity names to link via ABOUT edges (auto-created if not found). confidence: How confident this memory is (0.0–1.0). rationale: Why this decision was made (stored in data, surfaced by memory_why). alternatives_rejected: Options that were considered and rejected. touches: File paths this memory directly relates to (TOUCHES edges).
memory_switch_namespaceSwitch the active namespace. Resets the active session. Args: namespace: Target namespace name.
Show 7 more tools
memory_timelineChronological trace of all memories matching a topic, including superseded ones. Args: topic: Search phrase. since: ISO timestamp — only show memories recorded after this date. as_of: ISO timestamp — show memories as they existed at this point in time.
memory_to_codeReturn code locations (file + line range) that a memory node TOUCHES. Args: memory_id: The memory node ID.
memory_verifyConfirm or refute a memory node, adjusting its confidence. Args: node_id: The node to verify. status: 'confirm' (confidence +0.1, capped at 1.0) or 'refute' (confidence ×0.5, closes valid_until).
memory_verify_stalenessScan TOUCHES edges and flag memories whose source file changed since they were stored. Args: queue: If True, write a staleness job to the review queue.
memory_whyExplain a decision: show rationale, rejected alternatives, and caused outcomes. Args: decision_ref: Node ID (d_...) or search phrase matching the decision content.
queryQuery the NervaPack knowledge graph for relevant code context. Performs a vector similarity search to find seed nodes, then runs a K-Hop BFS through the AST graph to collect related classes, functions, imports, and any documentation linked via EXPLAINS edges. Returns a compact Markdown block ready to use as LLM context. Use this before answering any question about the codebase. Args: prompt: Natural-language description of what you're looking for. max_hops: How many hops to traverse from seed nodes (default 1). Increase to 2 for broader context on complex queries.
show_savingsShow cumulative token savings across all NervaPack queries in this project. Returns a Markdown table summarising total queries, average token reduction, total tokens saved, and equivalent cost saved for GPT-4o and Claude Sonnet. Call this when the user asks how much context or cost NervaPack is saving, or to demonstrate NervaPack's efficiency to others.
Signals
- Stars
- 1
- Forks
- 0
- Open issues
- 0
- Weekly downloads
- 31
- Last commit
- Oct 5, 2026 (24 days ago)
- Last release
- Aug 5, 2026 (2 months ago)
- Last package publish
- Oct 5, 2026 (24 days ago)
From GitHub (fetched Oct 24, 2026) and the package registry.
Details
- Registry name
io.github.ramdhavepreetam/nervapack- Version
- 0.5.8
- Auth
- No auth
- Packages
- pypi nervapack
- License
- MIT
- Repository
- github.com/ramdhavepreetam/NervaPack
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
Cite this page
NervaPack MCP server. Agent Mart. https://agentmart.dev/connectors/ramdhavepreetam-nervapack (last updated 2026-10-24)