Armando Medina
Update README.md
6cf1106 verified

A newer version of the Gradio SDK is available: 5.43.1

Upgrade
metadata
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

Tech Stack

Gradio Presidio Analyzer Presidio Anonymizer Presidio Image Redactor spaCy pytesseract pdfplumber python-docx PyMuPDF Pillow

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:

    {
      "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:

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