
Mcp Documentation Server
io.github.andrea9293Published by GitHub account andrea9293v1.15.3Updated Oct 25, 2026
Local-first document management and semantic search for AI coding agents
Overview
A local-first documentation server that lets an AI assistant store documents, process uploaded files, and run hybrid semantic search over them, with a built-in
- What you can do
- Add, list, read and delete documents in a local knowledge base, with metadata and content previews. Process files dropped into the uploads folder (.txt, .md, .pdf) into chunks with embeddings, and inspect the uploads path and file list. Run semantic vector search inside one document, hybrid full-text plus vector search across all documents, and fetch context windows around matching chunks. Optionally run Gemini-powered AI search when an API key is configured. A web dashboard on port 3080 offers the same browse, upload, search and delete operations, and every tool is also exposed as a REST API.
- When to use it
- Useful when you want an assistant to build and query a private, offline documentation or knowledge base from local files, without cloud databases or vendor accounts. Fits coding agents that need to search project docs, notes or PDFs and pull surrounding context.
- Requirements
- Runs locally via npx (Node.js). No account or API key is required; all environment variables are optional. GEMINI_API_KEY enables AI search. MCP_BASE_DIR sets the data directory, and the web UI binds to 127.0.0.1:3080 by default. Embedding models are downloaded on first use (roughly 80–420 MB).
Installation
In SourceWeft
- Open Mcp Documentation Server in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
[MCP Registry] [npm version] [GitHub Stars] [License: MIT] [Ask DeepWiki]
[Donate with PayPal] ["Buy Me A Coffee"]
MCP Documentation Server
Local-first document management and semantic search for AI coding agents. No external databases, no cloud APIs, no vendor lock-in.
Unlike other MCP servers that are CLI-only, this one ships with a full web dashboard — browse, search, upload, and manage your knowledge base from your browser. Every MCP tool is also exposed as a REST API, giving AI agents a lean, schema-free interface.
- 🏠 Runs fully offline — Orama vector DB with local AI embeddings (Transformers.js)
- 🌐 Built-in Web UI — starts automatically on port 3080 alongside the MCP server
- 🔍 Hybrid search — full-text + vector similarity with parent-child chunking
- 🤖 Optional AI search — Google Gemini for advanced document analysis (bring your own key)
- 📁 Drag & drop uploads —
.txt,.md,.pdfsupport - 📦 Published on the MCP Registry — installable via npx, no clone needed
Quick Start
Open your browser at http://localhost:3080 — the web UI starts automatically.
🤖 Agent Skill (REST API) — recommended for AI agents
Every MCP tool is also accessible via the REST API on http://127.0.0.1:3080/api/. This is the recommended way to interact from AI agents (Claude Code, OpenCode, Gemini CLI, Cursor) because it avoids loading MCP tool schemas into the conversation context — only the response JSON enters.
A ready-to-use skill is included at skills/documentation-server/SKILL.md — it teaches your agent every endpoint with examples. Install it:
Basic workflow
- Add documents using
add_documentor place.txt/.md/.pdffiles in the uploads folder and callprocess_uploads. - Search across everything with
search_all_documents, or within a single document withsearch_documents. - Use
get_context_windowto fetch neighboring chunks and give the LLM broader context.
Web UI
The web interface starts automatically on port 3080 when the MCP server launches. From the web UI you can:
- 📊 Dashboard — overview of all documents and stats
- 📄 Documents — browse, view, and delete documents
- ➕ Add Document — create documents with title, content, and metadata
- 🔍 Search All — semantic search across all documents
- 🎯 Search in Doc — search within a specific document
- 🤖 AI Search — Gemini-powered analysis (if
GEMINI_API_KEYis set) - 📁 Upload Files — drag & drop files and process them into the knowledge base
- 🪟 Context Window — explore chunks around a specific index
Configure an MCP client
Minimal
With environment variables (all optional)
All environment variables are optional. Without GEMINI_API_KEY, only the local embedding-based search tools are available.
MCP Tools
The server registers the following tools (all validated with Zod schemas):
📄 Document Management
📁 File Processing
🔍 Search
Configuration
Configure via environment variables or a .env file in the project root:
Storage layout
Embedding Models
Set via MCP_EMBEDDING_MODEL:
Models are downloaded on first use (~80–420 MB). The vector dimension is determined automatically from the provider.
⚠️ Important: Changing the embedding model requires re-adding all documents — embeddings from different models are incompatible. The Orama database is recreated automatically when the dimension changes.
Architecture
- OramaStore manages three Orama instances: one for document metadata/content, one for child chunks with vector embeddings, and one for parent chunks (context sections). All are persisted to binary files on disk and restored on startup.
- IntelligentChunker implements the Parent-Child Chunking pattern: documents are first split into large parent chunks that preserve full context (sections, paragraphs), then each parent is further split into small child chunks for precise vector search. At query time, results are deduplicated by parent so that the LLM receives both the matched fragment and the broader context.
- EmbeddingProvider lazily loads a Transformers.js model for local inference — no API calls needed.
Development
Contributing
- Fork the repository
- Create a feature branch:
git checkout -b feature/name - Follow Conventional Commits for messages
- Open a pull request
License
MIT — see LICENSE
Support
- 📖 Documentation
- 🐛 Report Issues
- 💬 MCP Community
- 🤖 Google AI Studio — get a Gemini API key
Star History
Source: README.md at commit 9a75899
Tools
0Version history
1- v1.15.3LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts
