MCP Documentation Server

MCP serverSearch

This integration gives your AI a local document library with semantic search. Your AI can store, organize, and look up your project documentation by meaning instead of exact keywords, and everything stays on your own machine.

Unavailable. This server has no hosted endpoint yet, so Ahel can't serve it.

Add to setup to save this item as a reference. Ahel cannot run it, and signing in will not install it.

What your AI can do with it

  • Search your documents by meaning, not just exact keywords
  • Store and organize project documentation in one place
  • Keep all documents on your own machine
  • Find the right documentation while working on code
  • Retrieve the documents that best match what your AI is working on

Getting started

  1. Save this item in Your setup as a reference.
  2. Read the source or reference documentation for its setup requirements. Saving it here does not connect it to your AI.
  3. Check this page for availability before trying to install it through Ahel.

From the project's README

As published by andrea9293/mcp-documentation-server in README.md.

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

ToolDescription
add_documentAdd a document (title, content, optional metadata)
list_documentsList all documents with metadata and content preview
get_documentRetrieve the full content of a document by ID
delete_documentRemove a document, its chunks, database entries, and associated files

πŸ“ File Processing

ToolDescription
process_uploadsProcess all files in the uploads folder (chunking + embeddings)
get_uploads_pathReturns the absolute path to the uploads folder
list_uploads_filesLists files in the uploads folder with size and format info
get_ui_urlReturns the Web UI URL (e.g. http://localhost:3080) β€” useful to open the dashboard or to locate the uploads folder from the browser

πŸ” Search

ToolDescription
search_documentsSemantic vector search within a specific document
search_all_documentsHybrid (full-text + vector) cross-document search
get_context_windowReturns 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:

VariableDefaultDescription
MCP_BASE_DIR~/.mcp-documentation-serverBase directory for data storage
MCP_EMBEDDING_MODELXenova/all-MiniLM-L6-v2Embedding model name
GEMINI_API_KEYβ€”Google Gemini API key (enables search_documents_with_ai)
MCP_CACHE_ENABLEDtrueEnable/disable LRU embedding cache
START_WEB_UItrueSet to false to disable the built-in web interface
WEB_HOST127.0.0.1Bind address for the web UI (use 0.0.0.0 to expose on all interfaces)
WEB_PORT3080Port for the web UI
MCP_STREAMING_ENABLEDtrueEnable streaming reads for large files
MCP_STREAM_CHUNK_SIZE65536Streaming buffer size in bytes (64KB)
MCP_STREAM_FILE_SIZE_LIMIT10485760Threshold 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:

ModelDimensionsNotes
Xenova/all-MiniLM-L6-v2384Default β€” fast, good quality
Xenova/paraphrase-multilingual-mpnet-base-v2768Recommended β€” 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

Signals

GitHub stars
343
Forks
45
Last commit
Aug 2026
Weekly downloads
126
Weekly_downloads
90 weekly_downloads
Advanced
Delivery
mcp-documentation-server MCP server β†’ your Ahel connector (mcp.ahel.ai) β†’ your AI.
Item type
mcp-server
Key
io-github-andrea9293-mcp-documentation-server
Source
github.com/andrea9293/mcp-documentation-server