Skip to main content
Glama
marc-hanheide

PDF Redaction MCP Server

create_test_pdf.py1.1 kB
"""Create a simple test PDF for demonstrating redaction.""" import fitz # PyMuPDF # Create a new PDF document doc = fitz.open() # Add a page page = doc.new_page() # Add some text content text_content = """ CONFIDENTIAL DOCUMENT This document contains confidential information. Name: John Doe Social Security Number: 123-45-6789 Account Number: ACCT-9876543210 Financial Information: Account Balance: $50,000 Credit Score: 750 Personal Information: Email: john.doe@example.com Phone: (555) 123-4567 Address: 123 Main Street, Anytown, USA This information is confidential and should be protected. """ # Insert text at position point = fitz.Point(50, 50) page.insert_text(point, text_content, fontsize=12) # Add a second page page2 = doc.new_page() page2.insert_text( fitz.Point(50, 50), "Page 2 - More confidential data\n\nCredit Card: 4111-1111-1111-1111", fontsize=12 ) # Save the document output_path = "test_document.pdf" doc.save(output_path) doc.close() print(f"Test PDF created: {output_path}") print("This PDF contains sensitive information that can be redacted.")

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