README.mdā¢6.49 kB
# 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.
## š„ 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