DareGuardAI MCP Server
# DareGuardAI MCP Server
<div align="center">
[](https://www.npmjs.com/package/@dareguard/mcp-server)
[](https://opensource.org/licenses/MIT)
[](https://modelcontextprotocol.io)
**🛡️ AI Compliance Gateway for Enterprise AI Agents**
*Ensure your AI-generated communications are safe, compliant, and audit-ready.*
[Get Started](#quick-start) • [Documentation](#tools) • [Enterprise](#self-hosted--enterprise) • [Support](#support)
</div>
---
## What is DareGuardAI?
DareGuardAI is a **real-time compliance proxy** that sits between your AI agents and the outside world. It:
- ✅ **Validates** AI outputs against regulatory policies (FCA, GDPR, HIPAA, etc.)
- ✏️ **Auto-corrects** non-compliant language while preserving intent
- 📋 **Audits** every decision with immutable, regulator-ready logs
- 🔒 **Protects** your organization from AI-generated liability
This MCP server allows **Claude, GPT, and other MCP-compatible agents** to use DareGuardAI's compliance tools natively.
---
## Quick Start
### 1. Get Your API Key
Sign up at [**app.dareguardai.com**](https://app.dareguardai.com) → **Settings** → **API Keys**
### 2. Install
```bash
npm install -g @dareguard/mcp-server
```
Or run directly with npx (no install required):
```bash
npx @dareguard/mcp-server
```
### 3. Configure Claude Desktop
Add this to your `claude_desktop_config.json`:
**macOS:** `~/Library/Application Support/Claude/claude_desktop_config.json`
**Windows:** `%APPDATA%\Claude\claude_desktop_config.json`
```json
{
"mcpServers": {
"dareguard": {
"command": "npx",
"args": ["-y", "@dareguard/mcp-server"],
"env": {
"DAREGUARD_API_KEY": "dg_your_api_key_here"
}
}
}
}
```
### 4. Restart Claude Desktop
The DareGuardAI tools will now be available in Claude! 🎉
---
## Tools
### `check_compliance`
Check if AI-generated content complies with enterprise policies before sending.
| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `text` | string | ✅ | The content to check |
| `industry` | string | | `finance`, `healthcare`, `ecommerce`, `legal`, `hr` |
| `jurisdiction` | string | | `UK`, `EU`, `US`, etc. |
| `mode` | string | | `enforce` (block) or `suggest` (warn only) |
**Example prompt:**
> "Check this for compliance before I send it: 'We guarantee a 20% return on your investment within 6 months.'"
**Response:**
```
Decision: FAIL
Violations:
- [FIN_UK_001] Prohibited guaranteed return claim
Suggestion: Replace with "Historical returns have averaged 20%, but past performance..."
Corrected Content:
"Historical returns have averaged 20%, but past performance is not a reliable
indicator of future results. Your capital is at risk."
```
---
### `list_policies`
Browse all active compliance policies for your organization.
| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `industry` | string | | Filter by industry |
**Example prompt:**
> "What compliance policies are active for healthcare?"
---
### `explain_policy`
Get detailed information about a specific policy rule.
| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `policy_id` | string | ✅ | Policy ID (e.g., `FIN_UK_001`) |
**Example prompt:**
> "Explain policy FIN_UK_002 to me"
---
## Resources (Read-Only)
The MCP server also exposes these resources:
| Resource | Description |
|----------|-------------|
| `dareguard://health` | Service health status |
| `dareguard://usage` | Your API usage and quota |
---
## Environment Variables
| Variable | Required | Default | Description |
|----------|----------|---------|-------------|
| `DAREGUARD_API_KEY` | ✅ | - | Your DareGuardAI API key |
| `DAREGUARD_ENDPOINT` | | `https://api.dareguardai.com` | Custom API endpoint |
---
## Self-Hosted / Enterprise
For **on-premises** or **private cloud** deployments, DareGuardAI can run entirely within your infrastructure.
### Benefits:
- 🔐 Data never leaves your network
- ⚡ Lowest possible latency
- 🎛️ Full control over policies and configuration
- 📊 Custom audit integrations (Splunk, DataDog, etc.)
### Configuration:
```json
{
"mcpServers": {
"dareguard": {
"command": "npx",
"args": ["-y", "@dareguard/mcp-server"],
"env": {
"DAREGUARD_API_KEY": "your-enterprise-key",
"DAREGUARD_ENDPOINT": "https://dareguard.internal.yourcompany.com"
}
}
}
}
```
Contact: [enterprise@dareguardai.com](mailto:enterprise@dareguardai.com)
---
## Supported Industries
| Industry | Policy Packs Available |
|----------|----------------------|
| 🏦 **Finance** | FCA, SEC, MiFID II, Financial Promotions |
| 🏥 **Healthcare** | HIPAA, FDA communications |
| 🛒 **E-commerce** | Consumer protection, advertising standards |
| ⚖️ **Legal** | Professional conduct, client privilege |
| 👥 **HR** | Employment law, discrimination prevention |
| 🤖 **AI Act** | EU AI Act transparency requirements |
---
## Security
- **Transport:** All communications use TLS 1.3
- **Authentication:** API keys with optional mTLS for enterprise
- **Audit:** Every decision is logged with SHA-256 content hashes
- **Fail-Safe:** Configurable fail-open/fail-closed behavior
- **SOC 2 Type II:** Compliance certification in progress
---
## Support
- 📖 **Docs:** [docs.dareguardai.com](https://docs.dareguardai.com)
- 🐛 **Issues:** [GitHub Issues](https://github.com/dreynow/dareguardai-mcp-server/issues)
- 💬 **Discord:** [Join our community](https://discord.gg/dareguard)
- 📧 **Email:** [support@dareguardai.com](mailto:support@dareguardai.com)
---
## Contributing
We welcome contributions! Please see our [Contributing Guide](CONTRIBUTING.md) for details.
---
## License
MIT License - see [LICENSE](LICENSE) for details.
---
<div align="center">
**Built with ❤️ by the DareGuardAI Team**
[Website](https://dareguardai.com) • [Twitter](https://twitter.com/dareguardai) • [LinkedIn](https://linkedin.com/company/dareguardai)
</div>
TDQS
Scored across 3 tools
Each tool has a clearly distinct purpose: listing policies, retrieving details for one policy, and checking content against policies. There is little risk of confusing list_policies with explain_policy or check_compliance.
All three tools follow a consistent snake_case verb_noun pattern: list_policies, explain_policy, check_compliance. The convention is predictable and readable.
Three tools are well-scoped for a focused compliance lookup and checking server. Each tool serves a necessary distinct role without redundancy.
The core workflow of listing policies, explaining a policy, and checking content compliance is covered. Minor gaps exist around policy management operations such as creating or updating policies, but those may be out of scope for an enforcement client.