Documentation

Docs and learning

Local-first document management and semantic search for AI coding agents.

Your AI app calls the Documentation MCP server, which does the docs and learning work and sends the result back to the chat.

About Documentation

Documentation is a community MCP server from andrea9293, filed in our directory under docs and learning. Local-first document management and semantic search for AI coding agents.

Documentation runs on your own machine: your AI app starts it with the command npx -y @andrea9293/mcp-documentation-server@1.15.3 and talks to it over standard input and output.

Documentation is listed in the official MCP registry as io.github.andrea9293/mcp-documentation-server, version 1.15.3.

At a glance

Publisher
andrea9293 (community)
Runs
Locally on your machine
Install from
Node.js package on npm: @andrea9293/mcp-documentation-server
Written in
TypeScript
License
MIT
GitHub stars
347
Official MCP registry
io.github.andrea9293/mcp-documentation-server

How to set up Documentation

  1. Install Node.js on the machine that runs your AI app, because Documentation starts with npx and downloads its package on first run.
  2. Check the Documentation README for keys or settings; the registry lists none that Documentation requires.
  3. Add Documentation to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Documentation tools to confirm the connection.
  5. Run one read-only task with Documentation first, and keep your app asking before each tool call until the results look right.

Documentation compared with similar servers

  • OrchestKit Docs by yonatangross has fewer GitHub stars than Documentation (313 against 347); both are community servers, and OrchestKit Docs runs as a remote server and Documentation runs on your own machine.
  • Svelte by sveltejs has more GitHub stars than Documentation (350 against 347); both are community servers, and Svelte runs as a remote server and Documentation runs on your own machine.
  • Wikipedia by Rudra-ravi has fewer GitHub stars than Documentation (310 against 347); both are community servers, and both run locally.

Before you connect Documentation

  • Give Documentation its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Documentation tool call until you trust what it does with them.
  • Treat text that Documentation fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Documentation on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Documentation

How marketing and sales teams put Documentation to work, by company size. Pick the size closest to yours and start Documentation on one use case.

Small business

  • A small business can use Documentation to keep help docs and how-tos current, answering customer questions before they become tickets.
  • Owners can ask Documentation for up-to-date docs while setting up a tool, instead of trusting an old tutorial.
  • Documentation runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Marketing teams can connect Documentation so agents write from current product docs, keeping launch copy accurate.
  • Enablement teams can use Documentation to turn docs into training and battlecards sales actually uses.
  • Start Documentation on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprises can serve approved docs through Documentation, so every agent answers from the same source of truth.
  • Large orgs can use Documentation to keep documentation in sync across products and regions as features ship.
  • Documentation is a community server, so have security review the code and pin a version before Documentation touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Documentation README

From andrea9293/mcp-documentation-server on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

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, .pdf support
  • 📦 Published on the MCP Registry, installable via npx, no clone needed

Quick Start

{
  "mcpServers": {
    "documentation": {
      "command": "npx",
      "args": ["-y", "@andrea9293/mcp-documentation-server"]
    }
  }
}

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.

curl -s http://127.0.0.1:3080/api/config
curl -s http://127.0.0.1:3080/api/documents
curl -s -X POST http://127.0.0.1:3080/api/search-all \
  -H "Content-Type: application/json" \
  -d '{"query": "your search", "limit": 5}'

A ready-to-use skill is included at skills/documentation-server/SKILL.md, it teaches your agent every endpoint with examples. Install it:

npx skills add https://github.com/andrea9293/mcp-documentation-server --skill documentation-server
Basic workflow
  1. Add documents using add_document or place .txt / .md / .pdf files in the uploads folder and call process_uploads.
  2. Search across everything with search_all_documents, or within a single document with search_documents.
  3. Use get_context_window to 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_KEY is 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
{
  "mcpServers": {
    "documentation": {
      "command": "npx",
      "args": ["-y", "@andrea9293/mcp-documentation-server"]
    }
  }
}
With environment variables (all optional)
{
  "mcpServers": {
    "documentation": {
      "command": "npx",
      "args": ["-y", "@andrea9293/mcp-documentation-server"],
      "env": {
        "MCP_BASE_DIR": "/path/to/workspace",
        "GEMINI_API_KEY": "your-api-key-here",
        "MCP_EMBEDDING_MODEL": "Xenova/all-MiniLM-L6-v2",
        "START_WEB_UI": "true",
        "WEB_HOST": "127.0.0.1",
        "WEB_PORT": "3080"
      }
    }
  }
}

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
Tool Description
add_document Add a document (title, content, optional metadata)
list_documents List all documents with metadata and content preview
get_document Retrieve the full content of a document by ID
delete_document Remove a document, its chunks, database entries, and associated files
📁 File Processing
Tool Description
process_uploads Process all files in the uploads folder (chunking + embeddings)
get_uploads_path Returns the absolute path to the uploads folder
list_uploads_files Lists files in the uploads folder with size and format info
get_ui_url Returns the Web UI URL (e.g. http://localhost:3080), useful to open the dashboard or to locate the uploads folder from the browser
🔍 Search
Tool Description
search_documents Semantic vector search within a specific document
search_all_documents Hybrid (full-text + vector) cross-document search
get_context_window Returns a window of chunks around a given chunk index
search_documents_with_ai 🤖 AI-powered search using Gemini (requires GEMINI_API_KEY)

Configuration

Configure via environment variables or a .env file in the project root:

Variable Default Description
MCP_BASE_DIR ~/.mcp-documentation-server Base directory for data storage
MCP_EMBEDDING_MODEL Xenova/all-MiniLM-L6-v2 Embedding model name
GEMINI_API_KEY , Google Gemini API key (enables search_documents_with_ai)
MCP_CACHE_ENABLED true Enable/disable LRU embedding cache
START_WEB_UI true Set to false to disable the built-in web interface
WEB_HOST 127.0.0.1 Bind address for the web UI (use 0.0.0.0 to expose on all interfaces)
WEB_PORT 3080 Port for the web UI
MCP_STREAMING_ENABLED true Enable streaming reads for large files
MCP_STREAM_CHUNK_SIZE 65536 Streaming buffer size in bytes (64KB)
MCP_STREAM_FILE_SIZE_LIMIT 10485760 Threshold to switch to streaming (10MB)
Storage layout
~/.mcp-documentation-server/     # Or custom path via MCP_BASE_DIR
├── data/
│   ├── orama-chunks.msp         # Orama vector DB (child chunks + embeddings)
│   ├── orama-docs.msp           # Orama document DB (full content + metadata)
│   ├── orama-parents.msp        # Orama parent chunks DB (context sections)
│   ├── migration-complete.flag   # Written after legacy JSON migration
│   └── *.md                     # Markdown copies of documents
└── uploads/                     # Drop .txt, .md, .pdf files here
Embedding Models

Set via MCP_EMBEDDING_MODEL:

Model Dimensions Notes
Xenova/all-MiniLM-L6-v2 384 Default, fast, good quality
Xenova/paraphrase-multilingual-mpnet-base-v2 768 Recommended, best quality, multilingual

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

Server (FastMCP, stdio)
  ├─ Web UI (Express, port 3080)
  │    └─ REST API → DocumentManager
  └─ MCP Tools
       └─ DocumentManager
            ├─ OramaStore, Orama vector DB (chunks DB + docs DB + parents DB), persistence, migration
            ├─ IntelligentChunker, Parent-child chunking (code, markdown, text, PDF)
            ├─ EmbeddingProvider, Local embeddings via @xenova/transformers
            │    └─ EmbeddingCache, LRU in-memory cache
            └─ GeminiSearchService, Optional AI search via Google Gemini
  • 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

git clone https://github.com/andrea9293/mcp-documentation-server.git
cd mcp-documentation-server
npm install
npm run dev       # FastMCP dev mode with hot reload
npm run build     # TypeScript compilation
npm run inspect   # FastMCP web UI for interactive tool testing
npm start         # Direct tsx execution (MCP server + web UI)
npm run web       # Run only the web UI (development)
npm run web:build # Run only the web UI (compiled)

Contributing

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature/name
  3. Follow Conventional Commits for messages
  4. Open a pull request

License

MIT, see LICENSE

Support

Star History

Built with FastMCP, Orama, and TypeScript

Questions about Documentation

What is the Documentation MCP server?

Local-first document management and semantic search for AI coding agents. Documentation is maintained by andrea9293 on GitHub at andrea9293/mcp-documentation-server, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Documentation MCP server?

Add Documentation to your AI app's MCP config with the command npx -y @andrea9293/mcp-documentation-server@1.15.3. In Claude Code, run claude mcp add --transport stdio documentation-server -- npx -y @andrea9293/mcp-documentation-server@1.15.3. To run Documentation this way you need Node.js installed.

Does Documentation need an API key?

The registry lists no required keys for Documentation. Check the Documentation README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is Documentation an official MCP server?

No. Documentation is a community server maintained by andrea9293. Community servers can be excellent; read the code and the open issues before you give Documentation access to company data.

What license is Documentation under?

Documentation is released under the MIT license, according to its GitHub repository. The license covers the code of Documentation; the service it connects to has its own terms.