OmniHub
A local-first MCP server for personal memory management, enabling AI agents to store, search, and retrieve developer insights with offline semantic search and auto-categorization.
README
⚡ OmniHub (omnihub-cli)
<p align="center"> <img src="./assets/logo.png" alt="OmniHub Logo" width="200" /> </p>
A blazing fast, local-first, privacy-compliant personal memory hub and Model Context Protocol (MCP) server for developers.
OmniHub runs entirely on your local machine with a zero-network footprint. It eliminates external cloud dependencies, API keys, and network roundtrips by running specialized, highly optimized 4-bit quantized AI embedding pipelines directly inside an on-device WebAssembly environment.
🚀 Key Features
- 100% Offline AI Inference: Powered by an on-device WebAssembly ONNX runtime running
all-MiniLM-L6-v2. Your data never leaves your computer. - Blazing Fast Performance: Zero network latency. Sub-250ms semantic matching across your personal knowledge base.
- 70/30 Hybrid Search Engine: Combines 384-dimensional dense semantic vectors with localized high-frequency exact keyword extraction to ensure flawless recall accuracy.
- Local Heuristic Auto-Categorization: Automatically tags incoming logs into developer-centric groups (
tech_stack,bug_fix,architecture,meeting_notes,idea) using ultra-fast local keyword mapping. - Model Context Protocol (MCP) Support: Acts as a native MCP server out of the box. Connect it seamlessly to LLM clients like Claude Desktop, Cursor, or custom AI agents to give them long-term localized memory.
- Cryptographic Security: At-rest data storage is fully encrypted using robust local encryption standards, protecting your sensitive developer secrets.
📊 Performance & Scaling Benchmarks
OmniHub scales linearly on single-threaded CPU architectures. Tested extensively using hyperfine in an Apple Silicon environment, the local engine delivers massive efficiency upgrades compared to legacy cloud-dependent wrappers:
| Dataset Scale | Stored Memories | At-Rest DB Size | Search Latency (Mean) | User Perception |
|---|---|---|---|---|
| The Bootstrap | 100 entries | ~2.02 MB | 148.0 ms | Instantaneous |
| The Developer Sweet Spot | 1,000 entries | ~20.20 MB | 234.1 ms | Fluid / Real-time |
| The Power User Stress Test | 10,000 entries | ~202.03 MB | 1.005 s | Snappy Execution |
| Legacy Cloud Baseline | 10,000 entries | ~398.00 MB | 10.669 s | Workflow Blocker |
Why OmniHub 1.3.0 is 10x Faster:
- Dimensionality Reduction: Slicing vector widths from 768 down to 384 dimensions reduces linear algebra operations by 50% per row scan.
- Quantization Performance (
q4): Utilizing 4-bit quantized integers reduces the model memory footprint to a tiny 14MB, enabling the CPU to load weights straight into L1/L2 caches with minimal memory bandwidth throttling.
🛠️ Installation
Ensure you have Bun or Node.js installed on your system, then install the package globally via npm:
npm install -g omnihub-cli
💻 CLI Usage
1. Log a Memory
Add a quick note or code snippet. If you omit the inline content, OmniHub automatically launches your system's default editor (e.g., nano or vim).
# Explicitly pass a category
omnihub log "Configured Docker Compose with multi-stage build caching flags." --category tech_stack
# Let the local heuristic auto-categorize your note
omnihub log "Fixed a runtime exception thrown when passing invalid JWT claims."
# Output: 🤖 Auto-categorizing locally... [bug_fix]
2. Search Memories
Perform a hybrid keyword and dense vector semantic query across your encrypted data history.
omnihub search "docker cache"
3. Database Migration / Reset
If you are upgrading from legacy pre-1.3.0 environments using old cloud structures, clear your environment to match the new 384-dimensional vector database:
omnihub reset
🤖 Model Context Protocol (MCP) Integration
OmniHub functions perfectly as a local standard input/output (stdio) MCP server. You can configure LLM agents to automatically store and extract engineering insights on your behalf.
Claude Desktop Configuration
Add the following snippet to your configuration file (located at ~/Library/Application Support/Claude/claude_desktop_config.json on macOS or %APPDATA%\Claude\claude_desktop_config.json on Windows):
{
"mcpServers": {
"omnihub": {
"command": "omnihub",
"args": ["run", "apps/mcp-server/index.ts"]
}
}
}
Exposed MCP Tools
log_memory: Logs a structural memory, thought, or developer decision directly into your encrypted local cache (supports auto-categorization placeholders).search_context: Performs localized dense-vector semantic queries combined with structural parameters (limit,min_score, andcategoryfiltering).list_memories: Scans and outputs a clean, stripped sequence of recent logs (automatically omitting heavy raw vector dimensions for faster client-side parsing) with explicit category filters.edit_memory: Modifies the core content string or alters structural classification tags of an existing entry targeting a specific unique record ID.delete_memory: Safely drops an active unique tracking ID completely out of the local record array.export_memories: Compiles and marshals your entire structural knowledge base straight into a clean, portable standalone Markdown document stream.
🔒 Privacy & Architecture
OmniHub is uncompromised in its local-first approach.
- No Telemetry: Zero tracking analytics.
- No Cloud Syncing: No unexpected outbound payloads.
- Local Vectors: Embeddings are calculated strictly on your CPU using WebAssembly bindings.
- Security: Flat JSON store with cryptographically sound local read/write mechanisms.
📄 License
MIT © Malhar Sarang Bonde
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。