Doc Lib MCP Server

A Model Context Protocol (MCP) server for document ingestion, chunking, semantic search, and note management.

Local serverstdioPython

What is the Doc Lib MCP MCP server?

Connect Doc Lib MCP to Claude, Cursor or any other MCP client and it stops being a tab you switch to. A Model Context Protocol (MCP) server for document ingestion, chunking, semantic search, and note management. The doc lib mcp mcp server is what makes that connection.

Installation

The server ships on npm as @modelcontextprotocol/inspector, so your MCP client can launch it on demand — there is no separate build step. Add the server block to your client's configuration, restart it, and the tools register themselves.

Available tools

The toolset is worth reading before you wire it up, because it tells you what the integration is really for:

  • add-note — Add a new note to the in-memory note store
  • Arguments — name (string), content (string)
  • ingest-string — Ingest and chunk a markdown or plain text string provided via message
  • ingest-markdown — Ingest and chunk a markdown (.md) file
  • ingest-python — Ingest and chunk a Python (.py) file
  • ingest-openapi — Ingest and chunk an OpenAPI JSON file
  • ingest-html — Ingest and chunk an HTML file
  • ingest-html-url — Ingest and chunk HTML content from a URL (optionally using Playwright for dynamic content)
  • smart_ingestion — Extracts all technically relevant content from a file using Gemini, then chunks it using robust markdown logic
  • search-chunks — Semantic search over ingested content
  • delete-source — Delete all chunks from a given source
  • delete-chunk-by-id — Delete one or more chunks by id

Credentials and setup notes

Configuration is passed through the environment: OLLAMA_HOST, RERANKER_MODEL_PATH, UV_PUBLISH_TOKEN. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.

Worth knowing first

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • With 14 tools registered it takes up a noticeable share of the context window; turn it off in projects that never touch Doc Lib MCP.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

Where it fits

Plenty of planning and project tracking servers cover similar ground. The differences that matter in practice are scope of access and how much setup stands between you and a working tool call. Doc Lib MCP's toolset — add-note, Arguments, ingest-string and 11 more — is a fair guide to whether it matches your workflow. It is maintained by shifusen329; worth a glance at recent repository activity before you build anything load-bearing on it.

We check each listing at SyncDev against the project's documentation before it goes live — if something here drifts out of date, it is a bug worth reporting.

Available tools

ToolWhat it does
add-noteAdd a new note to the in-memory note store
Argumentsname (string), content (string)
ingest-stringIngest and chunk a markdown or plain text string provided via message
ingest-markdownIngest and chunk a markdown (.md) file
ingest-pythonIngest and chunk a Python (.py) file
ingest-openapiIngest and chunk an OpenAPI JSON file
ingest-htmlIngest and chunk an HTML file
ingest-html-urlIngest and chunk HTML content from a URL (optionally using Playwright for dynamic content)
smart_ingestionExtracts all technically relevant content from a file using Gemini, then chunks it using robust markdown logic.
search-chunksSemantic search over ingested content
delete-sourceDelete all chunks from a given source
delete-chunk-by-idDelete one or more chunks by id
update-chunk-typeUpdate the type attribute for a chunk by id
ingest-batchIngest and chunk multiple documentation files (markdown, OpenAPI JSON, Python) in batch

How to install the Doc Lib MCP MCP server

"mcpServers": {
    "doc-lib-mcp": {
      "command": "uv",
      "args": [
        "--directory",
        "/home/administrator/python-share/doc-lib-mcp",
        "run",
        "doc-lib-mcp"
      ]
    }
  }

Configuration as documented by the project. Restart the client after saving.

Configuration

VariableDescriptionRequired
OLLAMA_HOSTEndpoint or connection string the server talks to.Optional
RERANKER_MODEL_PATHFilesystem location the server is allowed to use.Optional
UV_PUBLISH_TOKENCredential the server authenticates with.Yes

Example prompts to try

  • Use Doc Lib MCP to add-note.
  • Use Doc Lib MCP to Arguments.
  • Use Doc Lib MCP to ingest-string.

Frequently asked questions

It connects Doc Lib MCP to MCP-compatible AI assistants such as Claude and Cursor, exposing 14 tools (add-note, Arguments, ingest-string, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Doc Lib MCP directly.