Skip to main content
Glama

⚔ lithium-kb: Structured Agent Knowledge Base & Neural Graph

npm version GitHub Packages GitHub Node.js Zero Dependencies MCP Compatible License: MIT

A high-performance structured project knowledge base generator, neural network memory visualizer, and Model Context Protocol (MCP) server for AI coding agents (Pi, Claude, Codex, Cursor, Windsurf).


šŸ“ Structured Knowledge Hierarchy

Whenever lithium-kb is run, it organizes project memory into dedicated, modular knowledge categories:

your-project/
ā”œā”€ā”€ .agent-kb/
│   ā”œā”€ā”€ architecture/
│   │   └── 1.overview.md          # Topology, entry points, service boundaries
│   ā”œā”€ā”€ debug/
│   │   ā”œā”€ā”€ 1.debug-quickstart.md  # Resolved incidents & root-cause postmortems
│   │   └── ...
│   ā”œā”€ā”€ tasks/
│   │   ā”œā”€ā”€ 1.task-initial-setup.md # Active sprint tasks & acceptance criteria
│   │   └── ...
│   └── features/
│       ā”œā”€ā”€ 1.feature-spec.md      # Detailed feature specifications
│       └── ...
└── PROJECT_KB.md                  # Compact global index (< 2KB)

Related MCP server: AIVectorMemory

⚔ Why Structured Knowledge Matters

  1. Surgical Token Efficiency: When an agent works on a bug or task, it reads only .agent-kb/tasks/N.<name>.md or .agent-kb/debug/N.<name>.md instead of blindly traversing thousands of codebase lines.

  2. Deterministic Context: Agents don't lose track of multi-step plans across sessions.

  3. Interactive Neural Visualizer: Observe live memory hits, dynamic impulse animations, and token savings as agents query knowledge nodes.

  4. Zero Dependencies: Pure Node.js standard library — zero install footprint, lightning fast.


šŸ“¦ Installation & Quickstart

šŸš€ 1-Command Setup (Auto-Configure All Agents & Editors)

Run this inside any project repository to initialize the knowledge structure and automatically configure MCP for Cursor, Claude Desktop, Windsurf, Zed, and VS Code (Cline / Roo Code):

npx @liulinnuha/lithium-kb init

Additional Commands

# Generate / Sync knowledge base (.agent-kb/ and PROJECT_KB.md)
npx @liulinnuha/lithium-kb

# Open Neural Graph Web UI (port 3030)
npx @liulinnuha/lithium-kb --ui

# Auto-watch for file changes and sync live
npx @liulinnuha/lithium-kb --watch

# Launch MCP stdio server manually
npx @liulinnuha/lithium-kb --mcp

Method 2: Global CLI Installation

Install globally on your machine to use lithium-kb anywhere:

npm install -g @liulinnuha/lithium-kb

# Then run anywhere:
lithium-kb --ui

šŸ”Œ Agent MCP Integration (Claude Desktop, Cursor, Pi)

Add this to your Claude Desktop config (claude_desktop_config.json) or Cursor MCP settings:

{
  "mcpServers": {
    "lithium-kb": {
      "command": "npx",
      "args": ["-y", "@liulinnuha/lithium-kb", "--mcp"]
    }
  }
}

šŸ“œ MCP Tools Exposed

Tool

Purpose

get_project_memory

Return compact architecture & symbol index (< 2KB).

read_knowledge_doc

Read targeted doc from .agent-kb/ (category, filename).

write_knowledge_doc

Persist new task note, debug postmortem, or feature spec.

query_symbol_map

Search exported functions, classes, and types across the repo.


šŸ“„ License

MIT Ā© Moch Ulin Nuha

A
license - permissive license
-
quality - not tested
B
maintenance

Maintenance

–Maintainers
–Response time
–Release cycle
–Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • F
    license
    -
    quality
    -
    maintenance
    An MCP server that provides persistent project context, workflow management, and knowledge capture for AI coding agents. It enables agents to maintain structured memory across sessions by tracking project profiles, conventions, skills, and technical debt.
    7
  • A
    license
    B
    quality
    B
    maintenance
    MCP server that provides cross-session persistent memory for AI coding assistants using local vector database and semantic search, enabling automatic recall of project context, issues, and tasks.
    9
    91
    Apache 2.0

View all related MCP servers

Related MCP Connectors

  • The project brain for AI coding agents — memory, decisions, sprints, knowledge base via MCP.

  • Persistent memory and cross-session learning for AI coding assistants (hosted remote MCP).

  • Your memory, everywhere AI goes. Build knowledge once, access it via MCP anywhere.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/liulinnuha/lithium-kb'

If you have feedback or need assistance with the MCP directory API, please join our Discord server