Skip to main content
Glama
eludden35

HIPAA Guardian MCP Server

by eludden35
README.md
# HIPAA Compliance Guardian MCP Server

A Model Context Protocol (MCP) server that provides comprehensive HIPAA compliance guidance for developers building healthcare applications. This server offers expert knowledge and tools to help ensure your applications meet HIPAA Security and Privacy Rule requirements.

<a href="https://glama.ai/mcp/servers/@eludden35/hipaa-guardian-mcp">
  <img width="380" height="200" src="https://glama.ai/mcp/servers/@eludden35/hipaa-guardian-mcp/badge" alt="HIPAA Guardian Server MCP server" />
</a>

## šŸ„ What is HIPAA?

The Health Insurance Portability and Accountability Act (HIPAA) establishes national standards for protecting sensitive patient health information. This MCP server provides developers with:

- **PHI Identification**: Determine if your data constitutes Protected Health Information
- **Security Requirements**: Understand encryption and technical safeguard requirements
- **Business Associate Rules**: Navigate third-party vendor compliance
- **Communication Guidelines**: Learn compliant notification and messaging practices
- **Safeguards Checklist**: Comprehensive technical and physical safeguard requirements

## šŸš€ Quick Start

### Prerequisites

- Node.js 18+ 
- npm or yarn

### Installation

1. **Clone and install dependencies:**
   ```bash
   git clone <your-repo-url>
   cd ultimate-hipaa-guide
   npm install
   ```

2. **Run the server:**
   ```bash
   npx tsx server.ts
   ```

3. **Connect to your MCP client:**
   Add this server to your MCP client configuration (e.g., Claude Desktop, Ollama, etc.)

## šŸ› ļø Available Tools

### 1. `confirmIfDataIsPHI`
**Purpose**: Determine if specific data types constitute Protected Health Information (PHI)

**Input**: 
- `dataType` (string): Description of the data (e.g., "patient name and diagnosis", "step count")

**Use Case**: When you need to determine if your app's data collection requires HIPAA compliance

### 2. `checkDataEncryptionRequirements`
**Purpose**: Get specific encryption requirements from the HIPAA Security Rule

**Input**: None required

**Use Case**: Understanding technical safeguards for data protection

### 3. `getBusinessAssociateRules`
**Purpose**: Learn about Business Associate compliance requirements

**Input**: None required

**Use Case**: When working with third-party vendors or cloud services

### 4. `getNotificationAndCommunicationRules`
**Purpose**: Understand compliant communication methods

**Input**: None required

**Use Case**: Implementing user notifications, emails, or push notifications

### 5. `getSafeguardsChecklist`
**Purpose**: Get comprehensive technical and physical safeguard requirements

**Input**: None required

**Use Case**: Building a compliance checklist for your application

## šŸ“‹ Example Usage

### Scenario: Building a Fitness App with Health Data

```typescript
// Check if step count data requires HIPAA compliance
const phiCheck = await confirmIfDataIsPHI({
  dataType: "user step count and heart rate data"
});

// Get encryption requirements
const encryptionRules = await checkDataEncryptionRequirements();

// Check notification compliance
const notificationRules = await getNotificationAndCommunicationRules();
```

### Scenario: Healthcare Provider Integration

```typescript
// Understand Business Associate requirements
const baRules = await getBusinessAssociateRules();

// Get comprehensive safeguards
const safeguards = await getSafeguardsChecklist();
```

## šŸ—ļø Architecture

```
ā”Œā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”    ā”Œā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”    ā”Œā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”
│   MCP Client    │◄──►│  HIPAA Guardian  │◄──►│ hipaa-content   │
│   (Claude,      │    │   MCP Server     │    │ .json           │
│    Ollama, etc) │    │                  │    │ (Knowledge      │
ā””ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”˜    ā””ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”˜    │  Base)          │
                                               ā””ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”˜
```

## šŸ“š Knowledge Base

The server uses a comprehensive HIPAA knowledge base (`hipaa-content.json`) containing:

- **HIPAA Basics**: What is HIPAA and who it applies to
- **Security Rule**: Technical, physical, and administrative safeguards
- **Mobile Applications**: Specific guidance for mobile health apps
- **Developer Considerations**: Practical implementation advice
- **Business Associates**: Third-party vendor requirements

## šŸ”§ Development

### Project Structure
```
ultimate-hipaa-guide/
ā”œā”€ā”€ server.ts              # Main MCP server implementation
ā”œā”€ā”€ hipaa-content.json     # HIPAA knowledge base
ā”œā”€ā”€ package.json           # Dependencies and scripts
└── README.md             # This file
```

### Adding New Tools

1. **Define the tool schema:**
   ```typescript
   server.tool(
     'yourToolName',
     {
       description: 'What your tool does',
       schema: z.object({
         // Define your input parameters
       }),
     },
     async (args) => {
       return {
         content: [{
           type: 'text',
           text: 'Your response here'
         }]
       };
     }
   );
   ```

2. **Update the knowledge base** in `hipaa-content.json` if needed

### Running in Development

```bash
# Install dependencies
npm install

# Run with TypeScript
npx tsx server.ts

# Or build and run
npm run build
node dist/server.js
```

## šŸ›”ļø Security Considerations

- This server provides **guidance only** and should not be considered legal advice
- Always consult with qualified legal professionals for compliance matters
- The knowledge base is based on current HIPAA regulations but may not reflect recent changes
- Implement security measures appropriate for your specific use case

## šŸ¤ Contributing

1. Fork the repository
2. Create a feature branch
3. Add your improvements
4. Update the knowledge base if needed
5. Submit a pull request

## šŸ“„ License

[Add your license here]

## āš–ļø Disclaimer

This MCP server provides educational information about HIPAA compliance for developers. It is not intended as legal advice. Always consult with qualified legal professionals for specific compliance requirements and legal matters related to your application.

## šŸ”— Resources

- [HHS HIPAA Information](https://www.hhs.gov/hipaa/index.html)
- [Model Context Protocol](https://modelcontextprotocol.io/)
- [MCP SDK Documentation](https://github.com/modelcontextprotocol/sdk)

---

**Built with ā¤ļø for the healthcare developer community**
# hipaa-guardian-mcp

TDQS

D1.7/5.0

Scored across 15 tools

Disambiguation2/5

Multiple tools have unclear boundaries and overlapping purposes, as most tools are 'getX' checklists or informational resources that could be confused for one another. For example, 'getGeneralDataSecurityChecklist' and 'getSecurityRuleSafeguards' likely cover similar ground, and the two non-get tools ('confirmCodeCompliance' and 'evaluateComplianceNeed') are ambiguous in how they differ from each other and the informational tools.

Naming Consistency4/5

The naming is mostly consistent, with 13 of 15 tools following a clear 'getX' pattern, which is predictable and readable. However, there are minor deviations with 'confirmCodeCompliance' and 'evaluateComplianceNeed' using verb-based names instead, breaking the dominant convention and slightly reducing consistency.

Tool Count4/5

With 15 tools, the count is reasonable and well-scoped for a HIPAA compliance server, as it covers various aspects like checklists, definitions, and penalties. It's slightly on the higher side but not excessive, as each tool appears to target a specific sub-domain within HIPAA guidance.

Completeness3/5

The tool surface has notable gaps in coverage for the HIPAA compliance domain. While it provides extensive informational and checklist resources (e.g., for security, breaches, vendors), it lacks core operational tools for actions like creating, updating, or managing compliance records, audits, or incidents, which are essential for a complete lifecycle in this domain.

Maintenance

ActivityInactive
ResponsivenessNo issues