Knowledge MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Knowledge MCP Serversearch my knowledge base for TypeScript best practices"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
π§ Knowledge MCP Server
The High-Performance, Local-First Second Brain & Knowledge Base for AI Agents
English β’ TiαΊΏng Viα»t β’ Roadmap β’ Setup Guide
π‘ What is Knowledge MCP?
Knowledge MCP Server is a blazing-fast, local-first Knowledge Management & Retrieval-Augmented Generation (RAG) system exposed via the open Model Context Protocol (MCP) standard.
It empowers AI coding assistants and autonomous agents (Antigravity IDE / CLI, Claude Code, Cursor, ChatGPT / Codex, Windsurf) to seamlessly search, read, create, and maintain your personal or enterprise knowledge vault with zero cloud dependencies and zero data leakage.
βββββββββββββββββββ Streamable HTTP ββββββββββββββββββββββββββββββββββββββββ
β AI Assistants β ββββββββββββββββββββββββββ> β Knowledge MCP Server β
β (Antigravity / β β ββββββββββββββββββββββββββββββββββββ β
β Claude / Cursorβ <ββββββββββββββββββββββββββ β β Hybrid Search (BM25 + Vector) β β
βββββββββββββββββββ β β Anthropic Contextual Retrieval β β
β β Heading-Aware Markdown Chunker β β
β β Native SQLite FTS5 (Zero C++ bld)β β
β ββββββββββββββββββββββββββββββββββββ β
ββββββββββββββββββββββββββββββββββββββββRelated MCP server: obsidian-mcp
β¨ Key Highlights
β‘ Native SQLite & FTS5 (Zero C++ Build Hell): Built on Node.js native
node:sqlite(DatabaseSync). Starts in milliseconds without compilation errors on Windows, macOS, or Linux.π― Hybrid Search with RRF (k=60): Combines exact keyword matching (SQLite FTS5 BM25) with semantic understanding (Dense Vector Cosine Similarity) using Reciprocal Rank Fusion for pinpoint technical accuracy.
π§© Heading-Aware Markdown Chunking: Intelligently parses document structure along
H1 > H2 > H3hierarchy, preserving YAML Frontmatter metadata (gray-matter) without breaking context.𧬠Anthropic Contextual Retrieval: Generates succinct context annotations for each chunk before embedding, drastically reducing ambiguity and retrieval hallucinations.
π Incremental Ingestion (SHA256 Diffing): Reindexes only modified chunks, saving computing power and embedding latency.
β‘ 1-Click All-in-One Setup (
setup-and-run.bat): Automated setup script that prepares environment, builds, indexes, configures Antigravity rules, and starts the server in 30 seconds.π‘οΈ Autonomous Agent Policy: Built-in rules and tool descriptions that prompt agents to automatically search your knowledge vault before answering technical queries.
π Feature Comparison Matrix
Feature | π§ Knowledge MCP | π Google NotebookLM | π€ Mem0 | π Obsidian MCP |
Primary Execution | Direct IDE Integration | Web App Tab | Cloud/Python SDK | Obsidian Desktop App |
Privacy & Security | 100% Local / On-Prem | Google Cloud | Cloud / SaaS | Local |
Read & Write Memory | Yes (Bi-directional) | Read-Only | Yes | Yes |
Search Architecture | BM25 + Vector RRF | Vector / Context Window | Graph + Vector | Regex / Plaintext |
Technical Symbol Search | Pinpoint (FTS5 exact) | Fuzzy | Semantic only | Basic |
Contextual Retrieval | Yes (Anthropic style) | No | No | No |
Windows Installation | Zero C++ Build (Native) | Cloud | Needs C++ toolchains | Needs Obsidian Plugins |
Protocol Support | MCP Streamable HTTP | Proprietary UI | Custom API / MCP | Local REST / MCP |
ποΈ System Architecture
graph TD
subgraph "AI Clients"
AG[Antigravity IDE / CLI]
CC[Claude Code / Desktop]
CX[Codex / Cursor / Others]
end
subgraph "Knowledge MCP Server (:3900)"
AUTH[Bearer Auth Middleware]
HTTP[Streamable HTTP Transport - /mcp]
TOOLS[MCP Tools Registry - 8 Tools]
subgraph "Core Intelligence Engines"
HYBRID[Hybrid Search Engine - RRF k=60]
INGEST[Incremental Ingestion Pipeline]
CHUNKER[Heading-Aware Markdown Chunker]
EMBED[Vector Embedder - 9router / Ollama / OpenAI]
CTX[Anthropic Contextualizer]
end
subgraph "Local Storage Layer"
DB[(SQLite Database - knowledge.db)]
FTS[FTS5 BM25 Full-Text Index]
VEC[Float32 Vector BLOBs]
VAULT[Vault Files - data/raw/*.md]
end
end
AG -->|HTTP POST /mcp| AUTH
CC -->|HTTP POST /mcp| AUTH
CX -->|HTTP POST /mcp| AUTH
AUTH --> HTTP --> TOOLS
TOOLS --> HYBRID
TOOLS --> INGEST
HYBRID --> FTS
HYBRID --> VEC
INGEST --> CHUNKER --> CTX --> EMBED
INGEST --> DB
INGEST --> VAULTπ Quick Start (30 Seconds)
Option 1: 1-Click All-in-One Launcher (Windows)
Double-click setup-and-run.bat at the root of the project:
.\setup-and-run.batThe script automatically verifies Node.js, connects to your embedding gateway (e.g. 9router/Ollama), builds TypeScript, indexes your vault, registers Antigravity MCP configs, and launches the server!
Option 2: Manual Step-by-Step Setup
Clone the repository:
git clone https://github.com/your-username/knowledge-mcp.git cd knowledge-mcpInstall dependencies:
npm installConfigure environment (
.env):cp .env.example .envSample
.envconfiguration:VAULT_DIR=./data/raw DB_PATH=./db/knowledge.db PORT=3900 # Embedding (Ollama or 9router OpenAI-compatible endpoint) EMBEDDING_BASE_URL=http://localhost:11434/v1 EMBEDDING_MODEL=nomic-embed-text EMBEDDING_API_KEY=ollama EMBEDDING_DIM=768 # Anthropic Contextual Retrieval (Optional) CONTEXTUAL_RETRIEVAL_ENABLED=false CHAT_BASE_URL=https://api.openai.com/v1 CHAT_MODEL=gpt-4o-mini CHAT_API_KEY=your-key # Authentication (Optional for remote deployments) MCP_AUTH_TOKEN=Index your knowledge documents: Drop your Markdown files into
data/raw/and run:npm run reindexStart the MCP server:
npm run build npm startServer endpoint:
http://localhost:3900/mcp| Health check:http://localhost:3900/health.
π οΈ MCP Tool Reference
Knowledge MCP exposes 8 production-ready tools:
Tool Name | Parameters | Description |
|
| Recommended primary tool. Assembles top relevant chunks into an LLM-ready Markdown block with sources. |
|
| Hybrid full-text (BM25) + dense vector search via Reciprocal Rank Fusion (RRF k=60). |
|
| Exact keyword and phrase search via SQLite FTS5. |
|
| Semantic cosine similarity vector search. |
|
| Read full content of a specific note file (path-traversal protected). |
|
| List all notes in the vault with optional directory prefix filter. |
|
| Create a new note file and instantly auto-reindex it into SQLite. |
|
| Append content to an existing note and instantly auto-reindex it. |
π Connecting to AI Clients
1. Antigravity IDE / CLI
Add to ~/.gemini/config/mcp_config.json:
{
"mcpServers": {
"knowledge-vault": {
"serverUrl": "http://localhost:3900/mcp"
}
}
}2. Claude Code & Claude Desktop
Add to .mcp.json or claude_desktop_config.json:
{
"mcpServers": {
"knowledge-vault": {
"type": "streamable-http",
"url": "http://localhost:3900/mcp"
}
}
}3. Cursor & VS Code
Under IDE Settings > Features > MCP:
Name:
knowledge-vaultType:
Streamable HTTP/SSEURL:
http://localhost:3900/mcp
π§ͺ Testing
Run comprehensive unit and integration tests:
# Run all test suites (DB, Chunker, Search, MCP Server)
npm run test:allπΊοΈ Roadmap
Check out our ROADMAP.md for upcoming milestones:
β‘ Phase 1: Real-Time Live File Watcher (
chokidar).βοΈ Phase 2: Surgical Note Editing (
update_section,patch_frontmatter).π Phase 3: Multi-Format Parsing (PDF, Word, Excel).
π― Phase 4: Cross-Encoder Re-Ranking Pipeline.
π₯οΈ Phase 5: Local Web Dashboard & RAG Playground.
π License & Contribution
Distributed under the MIT License. Contributions, issues, and feature requests are welcome!
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
AI research library. Save, organise and reuse notes and webpages as clean markdown context.
Persistent memory and knowledge graphs for AI agents. Hybrid search, context checkpoints, and more.
Persistent memory and knowledge management for AI agents with semantic search and 50+ tools.
Personal wiki and memory layer for AI assistants. Persistent, structured memory across sessions.
Related MCP Servers
- FlicenseAqualityDmaintenanceEnables AI assistants to manage a personal markdown-based knowledge base with natural language interactions. Supports creating, searching, updating, and organizing notes across categories like people, recipes, meetings, and procedures.111
- FlicenseNot gradedqualityCmaintenanceEnables semantic search and note management for Obsidian vaults via the Model Context Protocol, allowing LLMs to search, read, and index notes, PDFs, and web pages locally.
- AlicenseNot gradedqualityDmaintenanceEnables AI to manage Obsidian notes, including creation, reading, updating, deletion, full-text search, listing with filtering, sorting, and metadata extraction via the Model Context Protocol.18MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to manage Markdown notes via the Model Context Protocol, supporting creation, editing, searching, and conflict detection.MIT
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/congtuuit/knowledge-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server