document-catalog-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@document-catalog-mcp Scan my document catalog"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
document-catalog-mcp
Private local stdio MCP server for metadata-only discovery, recording, and querying of Markdown and PDF documents.
Scope
document-catalog-mcp scans configured Git repositories plus an optional journal tree. It stores paths, hashes, file metadata, classification, local Git tracking state, and optional print job IDs in SQLite. It never stores or returns document contents.
flowchart LR
Host[Codex or MCP host] -->|stdio| Server[FastMCP server]
Server --> Service[Catalog service]
Service --> Git[Configured Git repositories]
Service --> Journal[Optional journal PDFs]
Service --> DB[(SQLite metadata catalog)]Related MCP server: mcp-server-markdown
Requirements and development install
Python 3.11 or newer
Git
cd /home/tom/projects/document-catalog-mcp-codex-build
python3 -m venv .venv
.venv/bin/pip install -e '.[dev]'Current verified executable:
/home/tom/projects/document-catalog-mcp-codex-build/.venv/bin/document-catalog-mcpFor a stable install after review, clone the preserved implementation branch into a non-worktree source directory and install it into a dedicated venv:
git clone --branch codex/standalone-catalog --single-branch \
https://github.com/tom2025b/document-catalog-mcp.git \
/home/tom/.local/share/document-catalog-mcp/source
python3 -m venv /home/tom/.local/share/document-catalog-mcp/venv
/home/tom/.local/share/document-catalog-mcp/venv/bin/pip install \
/home/tom/.local/share/document-catalog-mcp/sourceConfiguration
Create $XDG_CONFIG_HOME/document-catalog-mcp/config.toml, or ~/.config/document-catalog-mcp/config.toml when XDG_CONFIG_HOME is unset:
journal_dir = "~/Documents/journals"
[[repos]]
name = "project-a"
path = "~/projects/project-a"
[[repos]]
name = "notes"
path = "~/notes"Repository names and resolved paths must be unique. _journal and _external are reserved names. Unknown keys and malformed values fail with concise configuration errors. Missing configuration is valid and produces an empty catalog scan.
SQLite data lives at $XDG_DATA_HOME/document-catalog-mcp/catalog.db, or ~/.local/share/document-catalog-mcp/catalog.db when XDG_DATA_HOME is unset.
Register with Codex
Development worktree:
codex mcp add document-catalog -- \
/home/tom/projects/document-catalog-mcp-codex-build/.venv/bin/document-catalog-mcpStable venv:
codex mcp add document-catalog -- \
/home/tom/.local/share/document-catalog-mcp/venv/bin/document-catalog-mcpThese commands use the installed codex mcp add <name> -- <command> stdio syntax. Registration is manual; installation does not modify global MCP configuration.
Tools
Tool | Arguments | Effect | Annotations |
| none | Scan configured repositories and journal; upsert metadata | read-only false, destructive false, open-world false |
| optional | Query all 13 metadata fields with filters combined by SQL AND | read-only true, destructive false, open-world false |
| required | Record one existing generated PDF | read-only false, destructive false, open-world false |
| required | Record one existing printed PDF and optional job ID | read-only false, destructive false, open-world false |
Example requests:
“Use
catalog_scanto refresh my local document catalog.”“Use
catalog_queryfor PDFs classified as reports since2026-07-01T00:00:00-04:00.”“Record
/tmp/output.pdfwithcatalog_record_generated.”“Record
/tmp/printed.pdfwith print job IDjob-42.”
Scan returns:
{
"files_found": {"tracked": 1, "local": 2, "journal": 1},
"files_added": 4,
"files_updated": 0,
"repos_skipped": 0,
"skipped_repos": []
}Record tools return status, repo, path, and the complete stored metadata row. Query returns matching rows ordered by repository and path. printed=true means printed_job_id is non-null; an empty job ID normalizes to null.
Scanner behavior
Repository scan includes tracked, untracked, and ignored
.mdand.pdffiles, case-insensitively.Local Git index membership controls
tracked_in_git; remote presence is not checked.Common dependency, build, cache, and VCS directories are excluded at any depth.
Journal scan includes PDFs only, stores resolved absolute paths, and never follows directory symlinks.
Missing or failing repositories and individual unreadable candidates are skipped while other sources continue.
Configuration and SQLite failures propagate to the caller.
Privacy and non-goals
Only bounded SHA-256 hashing reads file bytes. Contents are never parsed, stored, indexed, or returned. Git runs with argument arrays, no shell, deterministic locale, captured output, and a 30-second timeout. Server makes no network calls.
First release intentionally has no printpdf-mcp dependency, hooks, renderer, CUPS integration, watcher, scheduler, deletion pruning, full-text search, GitHub tracking check, remote HTTP, OAuth, UI, MCP App, or MCPB package. MCPB remains a possible distribution upgrade.
Known specification debt: scan has no unchanged counter; printed state requires a non-null job ID; local Git tracking does not prove remote presence; generators and print systems must call explicit record tools themselves.
Verify
.venv/bin/python -m pytest -q
.venv/bin/python -m compileall -q src tests
.venv/bin/python -c "from document_catalog_mcp.server import mcp; print(mcp.name)"
git diff --checkDisable or uninstall
Disable Codex registration without deleting catalog data:
codex mcp remove document-catalogRemoving a venv or source checkout does not delete the SQLite database. Delete ~/.local/share/document-catalog-mcp/catalog.db only when you explicitly want to erase catalog metadata.
Available Tools
4 toolscatalog_queryQuery document catalogCRead-only
Query stored local document metadata using optional AND-combined filters.
Inputs: repo, since, printed, doc_kind, +1 more. Returns: result
catalog_record_generatedRecord generated PDFB
Record metadata for one existing generated local PDF; never return contents.
Inputs: file_path (required). Returns: object
catalog_record_printedRecord printed PDFB
Record metadata and optional print job ID for one existing local PDF.
Inputs: file_path (required), printed_job_id. Returns: object
catalog_scanScan document catalogA
Scan configured local repositories and journal, storing metadata only.
Inputs: no named parameters. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool targets a distinct action: scanning repositories, querying metadata, recording generated PDFs, and recording printed PDFs with job IDs. No overlap in purpose.
All tool names follow a consistent 'catalog_verb' pattern (catalog_scan, catalog_query, catalog_record_generated, catalog_record_printed), making naming predictable.
4 tools is well-scoped for a document catalog server; each tool provides a necessary function without redundancy.
Covers core operations: scan, query, and two types of record creation. Missing update or delete functionality, but the domain appears focused on recording metadata, so only minor gaps.
Related MCP Connectors
Document-to-Markdown MCP server — convert PDF, Office and HTML into LLM-ready Markdown.
Personal knowledge base MCP server with semantic search, auto-categorization, metadata extraction
Document conversion MCP server: PDF to Markdown, image OCR, spreadsheet parsing.
Serve a folder of Markdown notes as an MCP server: hybrid search, reading, and sourced answers.
Related MCP Servers
- AlicenseCqualityDmaintenanceMCP protocol server for managing multi-project Markdown documents, supporting project isolation and LLM tool integration.294MIT
- AlicenseAqualityBmaintenanceMCP server for markdown files — search, extract sections, list headings, find code blocks across docs.696 npm8MIT
- AlicenseNot gradedqualityCmaintenanceLocal-first MCP server for querying multi-repo engineering documentation artifacts from a SQLite corpus.10 npmAGPL 3.0
- AlicenseAqualityBmaintenanceMCP server for local knowledge management with Markdown and PDF indexing using SQLite FTS5.515 npm2MIT