--- title: PII Compliance Check MCP emoji: 📊 colorFrom: pink colorTo: blue sdk: gradio sdk_version: 5.32.0 app_file: app.py pinned: false license: mit short_description: Compliance check for PII in documents and images tags: - mcp-server-track --- # Video Demo [MCP in Action Using Claude Desktop](https://youtu.be/M1BYRfkcuK8) ## Tech Stack ![Gradio](https://img.shields.io/badge/Gradio-v5.32.0-blue?logo=gradio) ![Presidio Analyzer](https://img.shields.io/badge/Presidio_Analyzer-PII--Detection-yellow) ![Presidio Anonymizer](https://img.shields.io/badge/Presidio_Anonymizer-PII--Redaction-lightgrey) ![Presidio Image Redactor](https://img.shields.io/badge/Presidio_Image_Redactor-Image_PII--Redaction-lightgrey) ![spaCy](https://img.shields.io/badge/spaCy-NLP-green) ![pytesseract](https://img.shields.io/badge/pytesseract-OCR-lightblue) ![pdfplumber](https://img.shields.io/badge/pdfplumber-PDF_Extraction-blueviolet) ![python-docx](https://img.shields.io/badge/python--docx-DOCX_Reader-informational) ![PyMuPDF](https://img.shields.io/badge/PyMuPDF-PDF_Images-critical) ![Pillow](https://img.shields.io/badge/Pillow-Image_Processing-red) # Compliance MCP Compliance MCP is an application built with Gradio designed to perform comprehensive compliance checks and anonymize personally identifiable information (PII) within documents. The application helps businesses comply with major regulatory frameworks like HIPAA, GDPR, and CCPA by identifying and anonymizing sensitive data. ## Features - **PII Detection**: Identifies sensitive information such as names, social security numbers, email addresses, phone numbers, IP addresses, medical records, and credit card numbers. - **Automated Redaction**: Automatically redacts detected sensitive information from text documents, images, and PDFs. ## Supported Compliance Frameworks - **HIPAA** (Health Insurance Portability and Accountability Act) - **GDPR** (General Data Protection Regulation) - **CCPA** (California Consumer Privacy Act) ## Supported File Formats - PDF - DOCX - TXT - PNG - JPG - JPEG # Claude Desktop Usage Guide This guide outlines how to install, configure, and use Claude Desktop for compliance checks. --- ## Installation Search online for "**Claude Desktop**" and follow the installation instructions specific to your operating system. --- ## Configuration To configure Claude Desktop for compliance checks: 1. Open Claude Desktop. 2. Navigate to `File` → `Settings` → `Developer` → `Edit Config`. 3. Add the following JSON configuration to your `claude_desktop_config` file: ```json { "mcpServers": { "gradio": { "command": "npx", "args": [ "mcp-remote", "[https://agents-mcp-hackathon-pii-compliance-check-mcp.hf.space/gradio_api/mcp/sse](https://agents-mcp-hackathon-pii-compliance-check-mcp.hf.space/gradio_api/mcp/sse)", "--transport", "sse-only" ] } } } ``` 4. **Save** the file. --- ## Restart Claude Desktop After saving the configuration, **restart** the Claude Desktop application for the changes to take effect. --- ## How to Use Once configured, you can use Claude Desktop to analyze documents or images for compliance: 1. Provide a **link to the document or image** you want to analyze. 2. Ask Claude to check for **HIPAA, GDPR, or CCPA compliance**. ### Example Prompt Here's an example of a detailed prompt you can use: ```less Analyze the document at the following URL for HIPAA compliance: [link to document] 1. Count the number of detected PII items by type (e.g., names, email addresses, phone numbers, SSNs, medical record numbers). 2. Based on your findings, write a one-paragraph executive summary in plain English that: - Summarizes what PII is present, the level of HIPAA risk, and the key compliance concerns. - Clearly states recommended actions for the document owner. - Includes a direct link to the redacted version of the document. Keep the summary factual, concise, and actionable—suitable for a business leader or compliance officer. ``` Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference