PDF Content Search MCP
One-line summary: A search, OCR, and automation bridge for the macOS PDF Content Search app — find documents, read extracted text, manage the index, and drive the app's UI via MCP.
Search & retrieval: full-text PDF search with snippets/match counts and sort/folder filters; get per-page OCR text, metadata, thumbnails, and OCR bounding boxes; bulk-export text + metadata.
Index management: list folders and contents, folder stats and processing status, add/rescan/delete folders, reprocess or delete documents (destructive actions require
confirm=true).OCR monitoring: overall processing stats, per-folder status, and live progress.
Apple Mail: enable/disable/reindex Apple Mail indexing, read recent mails, message metadata, details, attachments (base64 or save to disk), inbox list, plus retry/cleanup of incomplete mail records and Office-attachment cloud jobs.
UI automation: trigger searches, navigate/select list items, take screenshots, control zoom, page, transcript, sort and filters, and inspect/dismiss popups and alerts.
App & settings: health/version/uptime, license status/refresh/activate/deactivate/trial, read and patch settings (search, processing, appearance, mobile sharing).
Cloud & mobile: cloud-service status and item listing/sync toggle, mobile-sync status/devices, trigger sync, confirm device pairing.
Local file actions: reveal documents in Finder, open with the default app, or jump to a mail in Apple Mail (same Mac only).
PDF Content Search MCP Server
Full-text PDF search + OCR for Claude, Cursor, and any MCP client.
This is the official Model Context Protocol bridge for PDF Content Search — a native macOS app that indexes thousands of PDFs (including scanned ones via Apple Vision OCR) and finds anything in under a second.
You need the PDF Content Search app installed and running. This MCP server is a stdio→HTTP bridge — the index, OCR engine, and search live in the app. Get PDF Content Search at store.juergenkoller.software/apps/pdf-content-search.
What you can do
"Claude, find every invoice from Telekom in 2024 across all my PDFs and list amount + date."
"Cursor, search 'data processing agreement' across my contracts folder, return the matching PDF + page number."
The app exposes search, filter, OCR, indexing, and document-metadata tools through MCP. Search results include page numbers, highlighted snippets, and bounding-box coordinates from OCR. Full tool list is announced by the server on tools/list after initialize.
Related MCP server: lucid-apple-mcp
Installation
Prerequisites
macOS 12 (Monterey) or later
PDF Content Search app installed and running — get it here (one-time purchase €89.99, 30-day free trial, includes free iOS + Android scanner companion apps)
Swift 5.9+ (Xcode 15+) if building from source
Build from source
git clone https://github.com/juergenkoller-software/pdf-content-search-mcp.git
cd pdf-content-search-mcp
swift build -c release
# Binary: .build/release/pdf-content-search-mcpUniversal binary (for shipping inside the app bundle):
swift build -c release --arch arm64 --arch x86_64Already inside the app
If you have PDF Content Search installed, the bridge ships inside the app bundle at Contents/Resources/pdf-content-search-mcp. Use the "Set up Claude Desktop" button in the app to auto-configure Claude Desktop with the right path and token — that's the recommended path for end users.
This repo is the source code for that bundled bridge, kept open so you can audit it, fork it, or run it under your own sandbox.
Configuration
Claude Desktop
{
"mcpServers": {
"pdf-content-search": {
"command": "/path/to/pdf-content-search-mcp",
"env": {
"PDF_CS_TOKEN": "your-token-here",
"PDF_CS_PORT": "44477"
}
}
}
}Get PDF_CS_TOKEN from PDF Content Search → Settings → API Server, or use the in-app "Set up Claude Desktop" button.
Claude Code
claude mcp add pdf-content-search /path/to/pdf-content-search-mcp \
--env PDF_CS_PORT=44477 \
--env PDF_CS_TOKEN=your-token-hereCursor / other MCP clients
Same pattern — stdio MCP server.
Environment variables
Variable | Default | Description |
| (none) | Bearer token matching the app's API Server token (required) |
|
| Port of the app's API server |
|
| Host to reach the app |
Protocol behavior
Newline-delimited JSON on stdin/stdout (MCP stdio transport).
Each line is POSTed to the app's
/mcpendpoint verbatim.The first response's
Mcp-Session-Idheader is cached and sent with every subsequent request, so session state survives across messages.Notifications (requests without
id) expect HTTP 202 and produce no stdout.Transport errors are turned into JSON-RPC error responses (code
-32000"Cannot reach PDF Content Search") so the client surfaces a meaningful message instead of hanging.HTTP 401 → JSON-RPC error
-32001with a hint to rerun the setup.HTTP 404 on an established session drops the cached ID and tells the client to re-initialize.
How it works
┌────────────────┐ JSON-RPC stdio ┌────────────────┐ HTTP+Bearer ┌────────────────────┐
│ Claude/Cursor │ ───────────────► │ pdfcs-mcp │ ─────────────► │ PDF Content Search │
│ (MCP client) │ ◄─────────────── │ (this repo) │ ◄───────────── │ (port 44477) │
└────────────────┘ └────────────────┘ └────────────────────┘PDF Content Search owns the index (full-text + OCR + extracted metadata), the AI-naming pipeline, the iOS/Android sync, and the search engine. This bridge keeps the stdio MCP transport open-source so you can audit the wire format independently.
About PDF Content Search
PDF Content Search replaces complex folder structures with lightning-fast full-text search. Highlights:
One-time purchase — €89.99, no subscription
Full-text search across thousands of PDFs in under a second
OCR text recognition — Apple Vision Framework, makes scans searchable
AI file naming — phone photo of invoice becomes
250401 Invoice Telekom.pdfFree companion apps — iOS and Android scanner apps included
Encrypted sync to Mac
Advanced filters — date, category, sender, amount; boolean operators; wildcards
Spotlight + iCloud Drive integration
MCP server (this repo) + REST API
Made for offices, law firms, accountants — anyone with lots of documents
→ Get PDF Content Search at store.juergenkoller.software
License
MIT — see LICENSE. Bridge open source; the PDF Content Search app is commercial.
Issues & support
Bridge bugs: open an issue
App support: support@juergenkoller.software
Built by Juergen Koller Software GmbH.
Available Tools
84 toolsactivate_licenseA
Activate a license using license_key. Sensitive. Requires confirm=true.
Inputs: confirm (required), license_key (required).
add_folderA
Add a folder to the indexed search folders by absolute path. The path must exist and be a directory.
Inputs: path (required).
bulk_delete_documentsA
Delete multiple documents (document_ids) from the index at once. Destructive. Requires confirm=true.
Inputs: confirm (required), document_ids (required).
cancel_pending_mail_cloud_jobsA
Cancel all 'pending' Office-attachment Cloud-Jobs (set status='notSupported', reason='user cancelled').
Inputs: no named parameters.
cleanup_stale_mail_metaC
GC stale records: 'empty' with attemptCount>=10 older than 30 days, 'failed' older than 90 days.
Inputs: no named parameters.
clear_mail_indexA
Wipe MailFtsSqlite rows and reset the indexer cursor to 0. Next index run will re-read from scratch.
Inputs: no named parameters.
cloud_syncA
Control the cloud service. Pass enabled to toggle it (requires accept_conditions=true once), or omit to run a cleanup of completed items.
Inputs: enabled, accept_conditions.
confirm_mobile_pairingA
Confirm a mobile-device pairing using the 9-digit code. Sensitive. Requires confirm=true.
Inputs: code (required), confirm (required), folder_path.
deactivate_licenseA
Deactivate the current license. Sensitive. Requires confirm=true.
Inputs: confirm (required).
delete_documentA
Delete a single document (by document_id) from the index. Destructive. Requires confirm=true.
Inputs: confirm (required), document_id (required).
delete_folderA
Remove a folder (by folder_id) from the index. Destructive. Requires confirm=true.
Inputs: confirm (required), folder_id (required).
disable_apple_mailA
Disable Apple Mail indexing and remove the sidebar item. Index is kept on disk.
Inputs: no named parameters.
export_documentsB
Export OCR text and metadata for multiple documents at once. Useful for bulk text extraction.
Inputs: document_ids (required), include_metadata, include_ocr_text.
get_app_statusA
Get application health status, version, uptime, and active port.
Inputs: no named parameters.
get_cloud_statusA
Get cloud-service status: enabled flag, conditions_accepted, number of scanned folders and item counts by state.
Inputs: no named parameters.
get_document_metadataA
Get metadata for a document: file name, path, page count, file size, processing state, and folder reference.
Inputs: document_id (required).
get_document_ocr_rectsA
Get OCR bounding boxes for a document: per-rect page index, recognised text and x/y/width/height in normalized page coordinates. Optionally filter by page.
Inputs: document_id (required), page.
get_document_textA
Get the full OCR text content of a document. Returns text organized by page.
Inputs: document_id (required), page.
get_document_thumbnailA
Get a PNG thumbnail of a specific document page. Returns base64-encoded image data.
Inputs: document_id (required), page.
get_folder_processing_statusA
Get the OCR processing status of a folder: whether it is currently processing plus counts for processing/pending/completed/failed.
Inputs: folder_id (required).
get_folder_statsA
Get aggregate stats for a folder: total documents, total pages and a breakdown by processing state.
Inputs: folder_id (required).
get_license_statusA
Get current license status: state (active/trial/grace/inactive/blocked), entitlement kind, expiration, days left, provider source, last sync date, and any issues.
Inputs: no named parameters.
get_mail_attachmentA
Fetch a single attachment of an indexed mail by name. Returns base64 by default; for large attachments pass save_to_path to write the file to disk instead of returning base64.
Inputs: name (required), message_id (required), save_to_path.
get_mail_by_rowidB
Peek at an indexed mail by its MailFtsSqlite rowid. Returns subject/sender/date/snippet for that single row.
Inputs: rowid (required).
get_mail_detailA
Full detail of an indexed mail by external-id (RFC message-id): header fields, mailbox, attachment list and indexed body/attachment text.
Inputs: external_id (required).
get_mail_full_index_statusA
Counters across all mailFtsMeta rows: success, empty, failed, pending. Use to verify completeness of Apple Mail index.
Inputs: no named parameters.
get_mail_index_statusB
Returns Apple Mail indexer status: enabled flag, is_indexing, indexed_count, last_seen_rowid, envelope_index_path/readable, MailFtsSqlite db path.
Inputs: no named parameters.
get_mail_mailboxesA
Returns mailbox-rowid + URL pairs from the Apple Mail Envelope Index for account-filter setup.
Inputs: no named parameters.
get_mail_message_metadataA
Read header and mailbox metadata for an Apple Mail message by RFC message-id. Requires Apple Mail indexing to be enabled.
Inputs: message_id (required).
get_mail_recentA
Returns the most recently indexed mails from MailFtsSqlite with subject/sender/date/snippet preview.
Inputs: limit.
get_mobile_sync_statusA
Get mobile-sync status: number of connected folders, HTTP folders and polling state.
Inputs: no named parameters.
get_processing_progressA
Get the live OCR processing progress: is_processing flag, total/processed item counts and progress percent.
Inputs: no named parameters.
get_processing_statusA
Get OCR processing statistics: total documents, counts by state (completed, not_processed, processing, error, etc.), per-folder breakdown.
Inputs: no named parameters.
get_search_stateA
Get the currently animated OCR hit rects on the document preview. Returns the active search text, per-rect page index, matched text, and the four corner points in normalized page coordinates [0.0..1.0] (origin top-left). Use this to debug highlights drawn outside the page bounds.
Inputs: no named parameters.
get_settingsA
Get current app settings. Specify a category or omit for all settings.
Inputs: category.
get_ui_stateA
Get current UI state: selected document, list item count, search/browse mode, focused field.
Inputs: no named parameters.
get_unread_scan_countA
Get the number of recently scanned items not yet marked as read.
Inputs: no named parameters.
list_cloud_itemsA
List cloud-service items across all folders with file path, folder, state and modification date. Optionally filter by state.
Inputs: state.
list_folder_contentsB
List documents in a specific folder with processing state. Supports pagination.
Inputs: folder_id (required), limit, offset.
list_foldersA
List all indexed document folders with their IDs and paths.
Inputs: no named parameters.
list_incomplete_mailsA
List Apple Mail records that are not 'success' (empty/failed/pending) with externalId, attemptCount, errorReason, envelopeRowid.
Inputs: limit, status.
list_mail_attachmentsA
List attachments of an indexed mail: external files from the Apple Mail Attachments folder plus inline MIME parts. Returns name, size, content_type and kind (external/inline).
Inputs: message_id (required).
list_mail_cloud_jobsA
List Office-attachment Cloud-Jobs (mailCloudJobs). Returns per-job docPortJobId, status, attemptCount, attachment metadata. Use status filter for slice.
Inputs: limit, status.
list_mobile_devicesA
List folders shared with mobile devices including backend, client identifier and last sync timestamps.
Inputs: no named parameters.
list_recent_scansA
List recently scanned items with file name/path/type, creation date and read state.
Inputs: no named parameters.
mark_scan_as_readB
Mark a recent scan item as read by its scan ID.
Inputs: scan_id (required).
mobile_syncB
Trigger a mobile sync. Pass folder_path to sync a single connected folder, or omit to sync all.
Inputs: folder_path.
open_document_externalA
Open a document (by document_id or file_path) with the default macOS application, e.g. Preview for PDFs. Only works when the app runs on the same Mac as the MCP client.
Inputs: file_path, document_id.
open_in_apple_mailA
Open Apple Mail and jump to the message with the given RFC message-id. Only works when MCP client and app run on the same Mac.
Inputs: message_id (required).
open_in_finderA
Reveal a document in macOS Finder by document_id or file_path. Only works when the app runs on the same Mac as the MCP client.
Inputs: file_path, document_id.
patch_settings_appearanceC
Update appearance settings. Accepted fields: theme, accent_color, sidebar_visible, list_density, show_thumbnails, font_size, grid_view.
Inputs: theme, font_size, grid_view, accent_color, +3 more.
patch_settings_processingB
Update OCR/processing settings. Accepted fields: ocr_enabled, ocr_language, auto_process_new, max_concurrent_tasks, process_images, process_pdfs, thumbnail_quality, ocr_quality, max_file_size_mb.
Inputs: ocr_enabled, ocr_quality, ocr_language, process_pdfs, +5 more.
patch_settings_searchB
Update search settings. Accepted fields: case_sensitive, fuzzy_search, whole_word, max_results, search_in_filenames, highlight_matches, auto_search, snippet_length, exclude_patterns, min_query_length.
Inputs: whole_word, auto_search, max_results, fuzzy_search, +6 more.
patch_settings_sharingC
Update mobile-sharing settings. Accepted fields: enabled, require_approval, share_name, max_devices, auto_accept_known, read_only, sharee_key.
Inputs: enabled, read_only, share_name, sharee_key, +3 more.
refresh_licenseB
Refresh license status by re-syncing with the license server. Use force=true to bypass cache.
Inputs: force.
reindex_apple_mailB
Trigger an indexer run. Pass restart=true to stop the current task first.
Inputs: restart.
reprocess_documentA
Re-queue a document for OCR processing. Useful when OCR failed or the document was updated.
Inputs: document_id (required), force.
request_trialA
Start a trial period. Sensitive. Requires confirm=true.
Inputs: confirm (required).
rescan_folderA
Rescan a folder (by folder_id) for new or changed files. Initiates an asynchronous folder scan.
Inputs: folder_id (required).
retry_failed_mail_cloud_jobsA
Reset all 'failed' Office-attachment Cloud-Jobs to 'pending' with attemptCount=0, then trigger an immediate worker-tick.
Inputs: no named parameters.
retry_incomplete_mailsA
Reset attemptCount and indexStatus='pending' for all non-success records and trigger an indexer run. Pulls newly-arrived .emlx bodies in.
Inputs: no named parameters.
reveal_mail_in_finderA
Reveal the .emlx file of an indexed mail in Finder (falls back to opening it in Apple Mail). Only works on the same Mac as the app.
Inputs: external_id (required).
search_documentsA
Full-text search across all indexed PDF documents. Returns matching documents with snippets and match counts.
Inputs: query (required), limit, folders, sort_order.
setup_apple_mailB
Configure Apple Mail indexing programmatically: bookmark mail_root (default ~/Library/Mail), optionally clear the index, set OCR size limit and account filter, then enable. Avoids the onboarding sheet entirely.
Inputs: enable, mail_root, clear_index, ocr_limit_mb, +1 more.
tick_mail_cloud_workerA
Trigger an immediate MailCloudWorker tick (process downloaded/pending/polling jobs now instead of waiting for the 30-second timer).
Inputs: no named parameters.
ui_dismiss_alertA
Dismiss active app alerts. Pass button_title or button_index to click a specific button, or dismiss_all=true to close every open alert.
Inputs: dismiss_all, button_index, button_title.
ui_dismiss_popupB
Dismiss a presented popup/sheet in the app UI.
Inputs: id.
ui_get_filtersA
Get the active list filters: file_types, date_range and folders.
Inputs: no named parameters.
ui_get_pageA
Get the current page state of the document preview: current_page and total_pages.
Inputs: no named parameters.
ui_get_popupsA
List the popups/sheets currently presented in the app UI.
Inputs: no named parameters.
ui_get_sortA
Get the current list sort order plus the list of available sort orders.
Inputs: no named parameters.
ui_get_transcriptA
Get the transcript panel state: visible flag and mode.
Inputs: no named parameters.
ui_get_zoomA
Get the document preview zoom state: zoom_level, min/max zoom and fit_mode.
Inputs: no named parameters.
ui_list_alertsA
List the NSAlerts currently shown by the app: title, message, window and button titles.
Inputs: no named parameters.
ui_list_itemsA
List the items currently shown in the app's document list.
Inputs: no named parameters.
ui_screenshotA
Take a screenshot of the main application window. Returns base64-encoded PNG image.
Inputs: no named parameters.
ui_searchA
Trigger a search in the app UI. Sets the search text and initiates the search, returning the result count.
Inputs: query (required).
ui_select_documentB
Select a specific document by ID or index in the current list.
Inputs: index, document_id.
ui_set_filtersA
Set list filters. Pass file_types (array), date_range (string) and/or clear=true to reset all filters first.
Inputs: clear, date_range, file_types.
ui_set_pageA
Navigate the document preview. Pass action (first/prev/next/last) or page (1-based page number).
Inputs: page, action.
ui_set_sortA
Set the list sort order. Pass sort with one of the values returned by ui_get_sort (e.g. relevance / new2Old / old2New / a2z / z2a).
Inputs: sort.
ui_set_transcriptA
Set the transcript panel. Pass visible (bool) and/or mode (e.g. split / searchResults).
Inputs: mode, visible.
ui_set_zoomB
Set the document preview zoom. Pass zoom_level (a value between min and max) and/or fit_mode.
Inputs: fit_mode, zoom_level.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 84 tools
While many tools have specific descriptions, there is some overlap between similar tools like get_processing_progress and get_processing_status, or get_mail_index_status and get_mail_full_index_status. The sheer number of tools (84) makes it harder for an agent to distinguish between them without careful analysis.
Most tools follow a consistent verb_noun pattern in snake_case (e.g., delete_document, list_folders). There are minor deviations like get_mail_by_rowid vs get_mail_detail, but overall the naming is predictable and the verb prefixes (get_, list_, ui_, etc.) help organize the set.
With 84 tools, this server has an excessive number for an MCP server. While the scope is broad (covering PDFs, Apple Mail, cloud sync, mobile, UI control, licensing), such a large tool surface overwhelms agents and makes tool selection inefficient. A more focused set of 15-30 tools would be more appropriate.
The tool set covers multiple domains comprehensively: document CRUD, folder management, mail indexing and retrieval, cloud sync, mobile pairing, UI state manipulation, and licensing. Minor gaps exist (e.g., no update_document metadata tool, no remove_folder tool beyond deletion from index), but the core workflows are well-supported.
Maintenance
Related MCP Connectors
PDF AI for your own documents: ask from any MCP client and get answers that cite the source.
Query your own PDFs and documents from any MCP client. Every answer cites the page it came from.
Search, read, and write your Apple Notes from ChatGPT/Claude via a local Mac agent + MCP relay.
Talk to your public-facing AI from any MCP client — Claude, ChatGPT, Cursor, Cline, Windsurf.
Related MCP Servers
- AlicenseAqualityBmaintenanceMCP server for FreezeText — OCR anything on your Mac screen from Claude, Cursor, or any MCP client. Freeze the screen and extract text via Apple Vision (videos, popups, protected PDFs), OCR a region or a base64 image, and manage a searchable capture history. 12 tools. Bridge open-source (MIT), FreezeText app is free.121MIT
- AlicenseNot gradedqualityCmaintenanceMCP server that gives Claude and local LLMs access to Apple's on-device frameworks — Vision OCR, NSDataDetector, and Apple Intelligence FoundationModels. Everything runs on your Mac with zero data leaving.1MIT
- AlicenseNot gradedqualityDmaintenanceMCP server that gives your Claude, Cline, or Cursor session the ability to extract text, tables, and metadata from any PDF URL — including scanned PDFs via OCR.MIT
- AlicenseAqualityDmaintenanceMCP server that lets AI assistants like Claude or Cursor extract structured data (e.g., invoices) from images and PDFs via Vision API, with tools for analysis, questions, and preset management.7MIT