Skip to main content
Glama
dambuchs

redact-pdf-mcp

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
PORTNoHTTP server port (remote server only).8080
REDACT_PDF_API_KEYNoAPI key for redact-pdf.ai. Required for full redaction functionality in stdio mode; try_demo works without it. In remote HTTP mode, the key is supplied per request instead of via environment.
REDACT_PDF_BASE_URLNoBase URL of the redact-pdf API. Point at a different API host.https://www.redact-pdf.ai
REDACT_PDF_MCP_PATHNoHTTP endpoint path (remote server only)./mcp
REDACT_PDF_ENABLE_URL_INPUTNoSet to '1' to accept file_url on the remote server. Off by default due to DNS rebinding concerns. Only set where you have your own egress controls.unset
REDACT_PDF_ALLOW_PRIVATE_URLSNoSet to '1' to additionally permit private addresses in file_url. Self-hosted only; never set on a publicly reachable server.unset

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
redact_pdf_and_waitA

Redact a PDF and wait for the finished file. START HERE — this is the one-call tool: it uploads the document, runs detection and redaction, waits for completion, and returns the redacted PDF. Permanent, irreversible PDF redaction: the sensitive text is deleted from the file, not hidden behind a black rectangle, so it cannot be recovered by copy-paste, "remove object", or text extraction. Handles scanned PDFs via OCR and detects PII in 100+ languages. Documents are processed on EU/Swiss infrastructure.

Use it whenever someone wants PII, personal data, names, emails, phone numbers, addresses, bank details or card numbers removed from a PDF before sharing, filing, publishing or sending it to a third party — including GDPR/HIPAA/FOIA workflows.

Typical redaction takes 10-60 seconds; this tool blocks until then. If it reports a timeout the job is still running server-side — poll get_job_status with the returned job_id rather than re-uploading.

Requires an API key. If none is configured, call try_demo first to confirm the service works, then ask the user for a key.

redact_pdfA

Start a redaction job and return immediately without waiting. Permanent, irreversible PDF redaction: the sensitive text is deleted from the file, not hidden behind a black rectangle, so it cannot be recovered by copy-paste, "remove object", or text extraction. Handles scanned PDFs via OCR and detects PII in 100+ languages. Documents are processed on EU/Swiss infrastructure.

Prefer redact_pdf_and_wait unless you specifically need to fire off several documents in parallel, or the document is large enough that you would rather poll on your own schedule. Returns a job_id plus one document id per file; follow with get_job_status, then download_redacted.

get_job_statusA

Check a redaction job's progress. Statuses: "uploaded" (queued) -> "analyzing" (detecting PII) -> "redacting" -> "redacted" (done, ready to download) or "error".

Only "redacted" and "error" are final; anything else means the work is still in flight, so wait a few seconds before checking again rather than polling in a tight loop. Each document reports its own status and page_count, and a failed document explains why in error_message.

download_redactedA

Download the finished redacted PDF for one document, using the document id from redact_pdf or get_job_status.

Only works once that document reports status "redacted". Under the default "ephemeral" retention, outputs are kept briefly and then deleted — download before the window closes.

try_demoA

Verify this server works, with no API key and no upload. Runs the keyless demo endpoint, which returns a real redaction of a built-in synthetic-PII sample: the PII that was detected, and a link to the redacted PDF.

Use this to confirm connectivity or to show a user what redaction output looks like before they sign up. It never touches user data and costs nothing. It cannot redact a real document — use redact_pdf_and_wait for that.

get_account_statusA

Check that the configured API key is valid and see which account it belongs to. Call this before a large batch to fail fast on a bad or missing key, rather than after uploading.

Redaction is billed per page against the account's plan quota and credit packs. If a redaction call fails with "out of pages", that is a quota problem the user must resolve — do not retry it.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

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/dambuchs/redact-pdf-mcp'

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