Skip to content
MCP server
Registry

mcp-documentation-server MCP Server

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

mcp-documentation-server scores 64 (Good), licensed MIT and written in TypeScript. It installs as a local process. It declares 12 tools. Filed under Search, Knowledge. GitHub shows 346 stars. Package registries report about 263 downloads a week. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.

by andrea9293MITTypeScript346 stars
Trust score
64Good
Trust score 64 of 100, Good

Good trust

64 of 100 from six public signals. Nobody can buy a point.

  • Listed in the official MCP registry.
  • OSI-style license: mit.
How we score trust
Scorecard

License, quality and maintenance

How grades work
Trust breakdown

Where the 64 comes from

22 + 10 + 8 + 10 + 4 + 10 = 64. Each factor is capped, so no single signal can carry a listing.

Registry22 / 30

Active in the official MCP registry, plus a known vendor namespace.

Registry: 22 of 30 points.
Maintenance10 / 20

How recently the repository saw a commit or release.

Maintenance: 10 of 20 points.
Popularity8 / 20

GitHub stars and weekly downloads, on a log scale.

Popularity: 8 of 20 points.
License10 / 10

A clear, OSI-style open-source license.

License: 10 of 10 points.
Security4 / 10

Not archived, a secure install path, a pinned version.

Security: 4 of 10 points.
Docs10 / 10

A real summary, a README with depth, listed tools.

Docs: 10 of 10 points.

Install

Pick your client, copy the config, paste it in.

Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.

~/Library/Application Support/Claude/claude_desktop_config.json
{  "mcpServers": {    "andrea9293-mcp-documentation-server": {      "command": "npx",      "args": [        "-y",        "@andrea9293/mcp-documentation-server@1.15.3"      ]    }  }}

Environment variables

This server does not declare environment variables.

Tools12Tool docs quality grade C

All capabilities
  • Add a document (title, content, optional metadata)

  • Remove a document, its chunks, database entries, and associated files

  • Returns a window of chunks around a given chunk index

  • Retrieve the full content of a document by ID

  • Returns the Web UI URL (e.g. http://localhost:3080) โ€” useful to open the dashboard or to locate the uploads folder from the browser

  • Returns the absolute path to the uploads folder

  • List all documents with metadata and content preview

  • Lists files in the uploads folder with size and format info

  • Process all files in the uploads folder (chunking + embeddings)

  • Hybrid (full-text + vector) cross-document search

  • Semantic vector search within a specific document

  • ๐Ÿค– AI-powered search using Gemini (requires GEMINIAPIKEY)

About

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, .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

Star History Chart

Built with FastMCP, Orama, and TypeScript

Frequently asked questions

What is mcp-documentation-server MCP Server?

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

How do I install mcp-documentation-server MCP Server in Claude Desktop, Cursor, or VS Code?

Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. mcp-documentation-server MCP Server runs locally from the npm package @andrea9293/mcp-documentation-server with the command npx -y @andrea9293/mcp-documentation-server@1.15.3.

Is mcp-documentation-server MCP Server free and open source?

Yes. mcp-documentation-server MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.

Does mcp-documentation-server MCP Server support remote (HTTP) connections?

No remote endpoint is listed for mcp-documentation-server MCP Server. It runs locally on your machine over stdio, started by your MCP client.

What tools does mcp-documentation-server MCP Server provide?

mcp-documentation-server MCP Server provides 12 tools, including add_document, delete_document, get_context_window, and get_document. See the full tool list for descriptions and parameters.

How is mcp-documentation-server MCP Server's trust score calculated?

mcp-documentation-server MCP Server scores 64 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.

Reviews

No reviews yet

โ€”Be the first to review

5 star0 reviews at 5 stars
4 star0 reviews at 4 stars
3 star0 reviews at 3 stars
2 star0 reviews at 2 stars
1 star0 reviews at 1 stars

No published reviews yet. Used it? Tell the next person how it went.

Add badge to your README

Paste either snippet into the repository README. The image links to this listing.

Listed on MCPpedia

Top 5 MCP servers

Daily or weekly. Confirm by email, unsubscribe any time.

How often

Manage this listing

Claim this server