lithium-kb

lithium-kb

MCP server that provides a structured project knowledge base for AI coding agents, enabling project memory management, targeted document retrieval, and symbol map queries to improve token efficiency and context persistence.

Category
访问服务器

README

⚡ 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 clean, modular knowledge categories:

your-project/
├── .lithium-kb/
│   ├── architecture/
│   │   └── overview.md             # Topology, entry points, service boundaries
│   ├── debug/
│   │   ├── quickstart-diagnostics.md # Resolved incidents & root-cause postmortems
│   │   └── ...
│   ├── tasks/
│   │   ├── initial-setup.md        # Active sprint tasks & acceptance criteria
│   │   ├── explorer-ui.md
│   │   └── ...
│   └── features/
│       ├── core-specs.md           # Detailed feature specifications
│       └── ...
├── .agentrules                     # Explicit AI agent navigation directives
└── PROJECT_KB.md                   # Compact global index (< 2KB)

⚡ Why Structured Knowledge Matters

  1. Surgical Token Efficiency: When an agent works on a bug or task, it reads only .lithium-kb/tasks/<name>.md or .lithium-kb/debug/<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:
    • File Explorer Sidebar: Collapsible category trees with directory rails, item count badges, and expand/collapse quick actions.
    • Real-Time Impulses: 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

Or run via interactive curl installer:

curl -fsSL https://raw.githubusercontent.com/liulinnuha/lithium-kb/main/bin/install.sh | bash

🛠️ CLI Commands

# Generate / Sync knowledge base (.lithium-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

# Clean MCP configurations & legacy references from all IDEs
npx @liulinnuha/lithium-kb uninstall

# Completely purge MCP configurations and local .lithium-kb/ files
npx @liulinnuha/lithium-kb uninstall --purge

# Run interactive 1-line uninstaller wizard
curl -fsSL https://raw.githubusercontent.com/liulinnuha/lithium-kb/main/bin/uninstall.sh | bash

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 .lithium-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

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选