German Data Protection MCP
# German Data Protection MCP
<!-- ANSVAR-CTA-BEGIN -->
> **The German data-protection corpus is now served through the Ansvar Gateway.** Connect your AI assistant (Claude, Copilot, Cursor, custom MCP client) to `https://gateway.ansvar.eu/mcp` — one OAuth connection, free tier available, covering this corpus plus EU regulations, national law across dozens of audited jurisdictions (Europe + the US), and CVE/security intelligence, every result with a verbatim source citation. Start at https://ansvar.eu/docs/quickstart
### Connect
**Claude Code** (one line):
```bash
claude mcp add ansvar --transport http https://gateway.ansvar.eu/mcp
```
**Claude Desktop / Cursor** — add to `claude_desktop_config.json` (or `mcp.json`):
```json
{
"mcpServers": {
"ansvar": {
"type": "url",
"url": "https://gateway.ansvar.eu/mcp"
}
}
}
```
**Claude.ai** — Settings → Connectors → Add custom connector → paste `https://gateway.ansvar.eu/mcp`
First request opens an OAuth signup flow (setup details: [ansvar.eu/docs/quickstart](https://ansvar.eu/docs/quickstart)). After signup, your client is bound to your account; tier (free / premium / team / company) determines fan-out, quota, and which downstream MCPs are reachable.
---
## Self-host this MCP
You can also clone this repo and build the corpus yourself. The schema,
fetcher, and tool implementations all live here. What is not in the repo is
the pre-built database — TDM and standards-licensing constraints on the
upstream sources mean we host the corpus on Ansvar infrastructure rather
than redistribute it as a public artifact.
Build your own: run this repo's ingestion script (entry-point varies per
repo — typically `scripts/ingest.sh`, `npm run ingest`, or `make ingest`;
check the repo root).
<!-- ANSVAR-CTA-END -->
**German data protection data for AI compliance tools.**
[](https://opensource.org/licenses/Apache-2.0)
Query German data protection data -- regulations, decisions, and requirements from BfDI (Bundesbeauftragter fur den Datenschutz und die Informationsfreiheit) -- directly from Claude, Cursor, or any MCP-compatible client.
Built by [Ansvar Systems](https://ansvar.eu) -- Stockholm, Sweden
---
## Available Tools (8)
| Tool | Description |
|------|-------------|
| `de_dp_search_decisions` | Full-text search across BfDI decisions (Bußgeldbescheide, Verfahren, Anordnungen). |
| `de_dp_get_decision` | Get a specific BfDI decision by reference number. |
| `de_dp_search_guidelines` | Search BfDI and DSK guidance documents: Orientierungshilfen, Kurzpapiere, Hinweise, and Empfehlungen. |
| `de_dp_get_guideline` | Get a specific BfDI guidance document by its database ID. |
| `de_dp_list_topics` | List all covered data protection topics with German and English names. |
| `de_dp_about` | Return metadata about this MCP server: version, data source, coverage, and tool list. |
| `de_dp_list_sources` | List all data sources with publisher, URL, coverage scope, and license. |
| `de_dp_check_data_freshness` | Check when the corpus was last ingested and whether data may be stale. |
All tools return structured data with `_citation`, `_meta`, and source references. See [TOOLS.md](TOOLS.md) for full parameter documentation.
---
## Data Sources and Freshness
All content is sourced from official German regulatory publications:
- **BfDI (Bundesbeauftragter fur den Datenschutz und die Informationsfreiheit)** -- Official regulatory authority
### Data Currency
- Database updates are periodic and may lag official publications
- Freshness checks run via GitHub Actions (`check-freshness.yml` workflow, weekly)
- Use the `de_dp_check_data_freshness` tool to see corpus age and record counts
See [COVERAGE.md](COVERAGE.md) for full provenance and corpus details.
---
## Security
This project uses multiple layers of automated security scanning:
| Scanner | What It Does | Schedule |
|---------|-------------|----------|
| **CodeQL** | Static analysis for security vulnerabilities | Weekly + PRs |
| **Semgrep** | SAST scanning (OWASP top 10, secrets, TypeScript) | Every push |
| **Gitleaks** | Secret detection across git history | Every push |
| **Trivy** | CVE scanning on filesystem and npm dependencies | Daily |
| **Docker Security** | Container image scanning + SBOM generation | Daily |
| **Socket.dev** | Supply chain attack detection | PRs |
| **Dependabot** | Automated dependency updates | Weekly |
See [SECURITY.md](SECURITY.md) for the full policy and vulnerability reporting.
---
## Important Disclaimers
### Not Regulatory Advice
> **THIS TOOL IS NOT REGULATORY OR LEGAL ADVICE**
>
> Regulatory data is sourced from official publications by BfDI (Bundesbeauftragter fur den Datenschutz und die Informationsfreiheit). However:
> - This is a **research tool**, not a substitute for professional regulatory counsel
> - **Verify all references** against primary sources before making compliance decisions
> - **Coverage may be incomplete** -- do not rely solely on this for regulatory research
**Before using professionally, read:** [DISCLAIMER.md](DISCLAIMER.md) | [PRIVACY.md](PRIVACY.md)
### Confidentiality
Queries go through the Claude API. For privileged or confidential matters, use on-premise deployment. See [PRIVACY.md](PRIVACY.md) for details.
---
## Development
### Setup
```bash
git clone https://github.com/Ansvar-Systems/german-data-protection-mcp
cd german-data-protection-mcp
npm install
npm run build
npm test
```
### Running Locally
```bash
npm run dev # Start MCP server
npx @anthropic/mcp-inspector node dist/index.js # Test with MCP Inspector
```
### Data Management
```bash
npm run seed # Seed SQLite database with sample data
npm run ingest # Ingest latest BfDI/DSK publications
```
---
## More Ansvar MCPs
Full fleet coverage at [ansvar.eu/coverage](https://ansvar.eu/coverage).
## Contributing
Contributions welcome! See [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.
---
## License
Apache License 2.0. See [LICENSE](./LICENSE) for details.
### Data Licenses
Regulatory data sourced from official government publications. See [COVERAGE.md](COVERAGE.md) for per-source licensing details.
---
## About Ansvar Systems
We build AI-powered compliance and legal research tools for the European market. Our MCP fleet provides structured, verified regulatory data to AI assistants -- so compliance professionals can work with accurate sources instead of guessing.
**[ansvar.eu](https://ansvar.eu)** -- Stockholm, Sweden
---
<p align="center">
<sub>Built with care in Stockholm, Sweden</sub>
</p>
TDQS
Scored across 8 tools
The four core tools form clean search/get pairs over two distinct resource types (decisions and guidelines), so an agent can readily distinguish them. The main soft spot is the meta cluster: about, list_sources, and check_data_freshness all return server-level metadata, and while their descriptions differentiate them, an agent may hesitate over which to call for a general 'what is this data' question.
Almost everything follows a de_dp_<verb>_<noun> pattern (search_decisions, get_decision, search_guidelines, get_guideline, list_topics, list_sources, check_data_freshness), which is highly predictable. The one deviation is de_dp_about, which is a bare noun with no verb, a minor inconsistency in an otherwise uniform scheme.
Eight tools is a well-scoped number for a read-only corpus server, and each has a plausible job. However, three of the eight (about, list_sources, check_data_freshness) are meta/diagnostic tools, leaving only five that actually deliver domain content, which slightly skews the surface toward introspection over substance.
The domain (BfDI decisions and guidance) is covered with search plus direct retrieval for both resource types, plus topic enumeration and topic-based filtering, so the main research workflows have no dead ends. Gaps are minor: there is no way to browse or paginate decisions without a full-text query, and no aggregation/statistics over fines or cited GDPR articles, which agents may want for analytical questions.