MCP Documentation Server
Lets your AI agent store your own documents and search them by meaning, all on your own machine.
344 stars on GitHubby andrea9293License MITUpdated 3 months ago
How to install
This MCP is local: it runs on your computer.
It works in apps installed on your PC (Claude Desktop, Claude Code, Cursor, VS Codeβ¦). Choose your app:
Paste in the terminal:
claude mcp add documentation -- npx -y @andrea9293/mcp-documentation-server
Ready! Now test it
Restart the app and paste one of these requests in the chat:
Add this PDF to my documents and tell me when it is ready.
Search all my documents for what we decided about the refund policy.
What it is
This server keeps a local knowledge base of your documents. You add text, Markdown or PDF files, and the agent can search them with a mix of keyword and meaning-based search. It also starts a web page on port 3080 where you can browse and manage the documents.
What it can do
add_document: add a documentlist_documentsandget_document: browse and readdelete_document: remove a documentprocess_uploads: process files from the uploads foldersearch_documents: search inside one documentsearch_all_documents: search across everythingget_context_window: fetch nearby chunks for contextsearch_documents_with_ai: AI search with Gemini
When to use
- βΊWhen you want your agent to answer from your own internal guides or API docs.
- βΊWhen you want to search a pile of PDFs and notes without any cloud service.
- βΊWhen you want a simple web page to browse your knowledge base.
What you need
Skills that pair well
MCP or skill?
The MCP gives the agent the hands. The skill teaches the right way to use them. Together, the result is better and uses fewer tokens.
xerj-knowledgeHelps your agent search your own local documents, notes, PDFs, spreadsheets and mail, and cite the file and page each answer came from.docs-governanceHelps your agent manage and organize project documentation. It can audit roles, links, and references, ensuring knowledge integrity and organization.doc-coauthoringHelps your agent guide you in writing important documents. It's useful when you need to create documentation, proposals, or specifications.Frequently asked questions
Is it free and open source?
Yes. It is MIT licensed.
Does it need the cloud?
No. It runs offline with a local vector database and local embeddings.
Which files can I add?
Text, Markdown and PDF files.
Is there a web interface?
Yes. It starts at http://localhost:3080 by default, and you can turn it off with START_WEB_UI=false.
Where is my data stored?
In ~/.mcp-documentation-server by default, or the folder in MCP_BASE_DIR.
Can I change the embedding model?
Yes, but you must add all documents again, because embeddings from different models do not match.
If it does not work
- βΊThe first run downloads an embedding model of about 80 to 420 MB, so allow time.
- βΊIf port 3080 is in use, set WEB_PORT to another number.
- βΊAfter changing MCP_EMBEDDING_MODEL, re-add your documents.
5 new skills a week. 1 minute to read.