doc lib mcp
A Model Context Protocol server for ingesting, chunking and semantically searching documentation files, with support for markdown, Python, OpenAPI, HTML files and URLs.
A Model Context Protocol server for ingesting, chunking and semantically searching documentation files, with support for markdown, Python, OpenAPI, HTML files and URLs.
A Model Context Protocol (MCP) server for document ingestion, chunking, semantic search, and note management.
note://
URI scheme for accessing individual notestext/plain
mimetypeThe server implements a wide range of tools:
name
(string), content
(string)path
(string)path
(string)path
(string)path
(string)url
(string), dynamic
(boolean, optional)query
(string): The semantic search query.top_k
(integer, optional, default 3): Number of top results to return.type
(string, optional): Filter results by chunk type (e.g., code
, html
, markdown
).tag
(string, optional): Filter results by tag in chunk metadata.source
(string)paths
(list of strings)id
(integer), metadata
(object)source
(string), tags
(list of strings)readability-lxml
library to extract main content first.<pre>
tags as dedicated "code" chunks. Inline <code>
content remains part of the narrative chunks.search-chunks
tool performs vector-based semantic search over all ingested content, returning the most relevant chunks for a given query.type
and tag
arguments to filter results by chunk type (e.g., code
, html
, markdown
) and/or by tag in chunk metadata, before semantic ranking.metadata
field for categorization and tagging.update-chunk-metadata
tool allows updating metadata for any chunk by its id.tag-chunks-by-source
tool allows adding tags to all chunks from a specific source in one operation. Tagging merges new tags with existing ones, preserving previous tags.[TODO: Add configuration details specific to your implementation]
On MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
On Windows: %APPDATA%/Claude/claude_desktop_config.json
"mcpServers": {
"doc-lib-mcp": {
"command": "uv",
"args": [
"--directory",
"/home/administrator/python-share/documentation_library/doc-lib-mcp",
"run",
"doc-lib-mcp"
]
}
}
"mcpServers": {
"doc-lib-mcp": {
"command": "uvx",
"args": [
"doc-lib-mcp"
]
}
}
To prepare the package for distribution:
Sync dependencies and update lockfile:
uv sync
Build package distributions:
uv build
This will create source and wheel distributions in the dist/
directory.
uv publish
Note: You'll need to set PyPI credentials via environment variables or command flags:
- Token: --token
or UV_PUBLISH_TOKEN
- Or username/password: --username
/UV_PUBLISH_USERNAME
and --password
/UV_PUBLISH_PASSWORD
Since MCP servers run over stdio, debugging can be challenging. For the best debugging experience, we strongly recommend using the MCP Inspector.
You can launch the MCP Inspector via npm
with this command:
npx @modelcontextprotocol/inspector uv --directory /home/administrator/python-share/documentation_library/doc-lib-mcp run doc-lib-mcp
Upon launching, the Inspector will display a URL that you can access in your browser to begin debugging.