# MCP Documentation Server

> Manage documents and search them semantically for AI coding agents.

- **URL**: https://followmcp.com/en/servers/mcp-documentation-server
- **Category**: Dev Tools
- **Origin**: Community
- **Stars**: 347
- **FMRS Score**: 53/100 (Grade D)
- **Source**: https://github.com/andrea9293/mcp-documentation-server
- **Transports**: stdio (local process)
- **Runtimes**: Node.js
- **Auth**: Optional API key

## Overview
MCP Documentation Server is a local-first document management and search server for AI coding agents. It supports document management, file uploads, chunking, and semantic search, with a web interface and REST API. Search can use local embeddings; Gemini AI search is also available when a Gemini API key is configured.

## Best for
- Users who want a local document knowledge base that AI coding agents can search.
- Use cases that need local embedding search, with optional Gemini AI search.

## Not for
- Use cases that require a hosted cloud service or an external database service.
- Users who need file formats or client compatibility guarantees not documented in the source.

## Required permissions
- Needs to read and write data under MCP_BASE_DIR; the default is ~/.mcp-documentation-server.
- Processing uploads requires access to TXT, Markdown, or PDF files in the uploads folder.
- The Web UI uses local address 127.0.0.1 and port 3080 by default; its host and port can be configured.
- Gemini AI search requires a user-provided GEMINI_API_KEY.

## Risks
- Changing the embedding model requires re-adding all documents, because embeddings from different models are incompatible.
- Setting WEB_HOST to 0.0.0.0 binds the Web UI to all network interfaces.
- Gemini AI search requires an API key; the source does not describe key handling or data processing for remote calls.

## Client config (JSON)
```json
{"mcpServers":{"documentation":{"command":"npx","args":["-y","@andrea9293/mcp-documentation-server"]}}}
```

## Tools (12)
- `add_document`: Add a document with a title, content, and optional metadata.
- `list_documents`: List documents with metadata and content previews.
- `get_document`: Retrieve a document's full content by ID.
- `delete_document`: Delete a document, its chunks, database entries, and associated files.
- `process_uploads`: Process files in the uploads folder, including chunking and embedding generation.
- `get_uploads_path`: Return the absolute path to the uploads folder.
- `list_uploads_files`: List files in the uploads folder with size and format information.
- `get_ui_url`: Return the Web UI URL.
- `search_documents`: Run semantic vector search within a specified document.
- `search_all_documents`: Run hybrid full-text and vector search across documents.
- `get_context_window`: Return chunks surrounding a specified chunk index.
- `search_documents_with_ai`: Search with Gemini AI; requires GEMINI_API_KEY.
