Skip to main content
Glama
marc-hanheide

PDF Redaction MCP Server

redact_text

Search for and mark specific text in PDF documents for redaction by adding annotation boxes over matching content. Use with save_redacted_pdf to apply changes permanently.

Instructions

Redact specific text in a loaded PDF.

This tool searches for all instances of the specified text in the PDF and adds redaction annotations over them. The redactions are not yet applied to the document - use save_redacted_pdf to apply and save.

Args: pdf_path: Path to the PDF file (must be already loaded) text_to_redact: The text string to search for and redact fill_color: RGB color tuple (0-1 range) for the redaction box. Default is black. ctx: MCP context for logging

Returns: Summary of redaction operations

Raises: ToolError: If the PDF is not loaded or redaction fails

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fill_colorNoRGB color for redaction (values 0-1). Default is black (0,0,0)
pdf_pathYesPath to the loaded PDF file
text_to_redactYesText string to search for and redact

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/marc-hanheide/redact_mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server