📊 Quality Metrics & Documentation
📋 Overview
The European Parliament MCP Server implements the Model Context Protocol (MCP) to provide AI assistants, IDEs, and other MCP clients with structured access to European Parliament open datasets. Access information about MEPs, plenary sessions, committees, legislative documents, and parliamentary questions through a secure, type-safe TypeScript/Node.js implementation.
🎯 Key Features
- 🔌 Full MCP Implementation: 63 tools (9 core + 3 advanced + 15 OSINT + 8 Phase 4 + 15 Phase 5 + 13 feed), 9 Resources, and 7 Prompts
- 🏛️ Complete EP API v2 Coverage: All European Parliament Open Data API endpoints covered
- 🕵️ OSINT Intelligence: MEP influence scoring, coalition analysis, anomaly detection
- 🔒 Security First: ISMS-compliant, GDPR-ready, SLSA Level 3 provenance
- 🚀 High Performance: <200ms API responses, intelligent caching, rate limiting
- 📊 Type Safety: TypeScript strict mode + Zod runtime validation
- 🧪 Well-Tested: 80%+ code coverage, 1130+ unit tests, 71 E2E test cases
- 📚 Complete Documentation: Architecture, TypeDoc API (HTML + Markdown), security guidelines
🔧 Current Stack
- Runtime: Node.js 26.x
- Primary compiler: TypeScript 7 RC via the
typescript-7alias (node_modules/typescript-7/bin/tsc) - Compatibility layer:
@typescript/typescript6remains available so existing 6.x-based tooling can continue usingtsc6and the TypeScript 6 API - Core platform:
@modelcontextprotocol/sdk1.29.0,zod4.4.3,vitest4.1.10
🌍 Hack23 Political Intelligence Ecosystem
This MCP server is the EU data backbone of Hack23's mission to disrupt parliamentary journalism with AI-generated political intelligence and real-time accountability analysis — increasing democratic transparency through structured open-source intelligence (OSINT) tradecraft applied to public legislative data.
🎯 Vision: AI-Powered Democratic Transparency
Hack23 AB builds open-source intelligence platforms that put rigorous, evidence-based political analysis in the hands of every citizen, journalist, researcher and policymaker. By combining MCP servers, agentic AI newsrooms, and open parliamentary data, we produce automated intelligence products — coalition analysis, voting-pattern decoding, MEP/MP influence scoring, legislative-pipeline forecasting — that previously required well-funded lobbying organisations or in-house policy units to generate.
"Democratising access to political intelligence — what used to require a team of analysts can now be done by any citizen with an AI assistant."
The portfolio is non-partisan, fully open-source (Apache-2.0), operated under the Hack23 ISMS with full ISO 27001:2022 / NIST CSF 2.0 / CIS Controls v8.1 alignment, GDPR-by-design, and architecturally engineered so it cannot be weaponised for partisan influence: equal treatment of all political groups, public-data only, no user accounts, no ads, no tracking.
🧭 The Ecosystem at a Glance
This MCP server's role: the canonical, type-safe TypeScript bridge between the European Parliament Open Data Portal and any MCP-aware AI client (Claude Desktop, VS Code, Cursor, GitHub Copilot) — and the upstream data layer that powers the EU Parliament Monitor newsroom. Every tool is Zod-validated, audit-logged, GDPR-aware, and SLSA Level 3 attested.
🗂️ Portfolio Comparison Matrix
🇪🇺 EU Parliament Monitor — euparliamentmonitor.com
European Parliament Political Intelligence Platform — 🧠 Political intelligence · 🔍 Radical transparency · 🗳️ Democratic accountability · 🤖 AI-generated news in 14 languages
🗳️ Riksdagsmonitor — riksdagsmonitor.com
Swedish Political Intelligence Platform — 🕵️ Political intelligence · 🔍 Democratic transparency · 🤖 AI-generated news · 📊 50+ years of evidence
🕵️ Citizen Intelligence Agency (CIA)
Political transparency platform — Java/Spring data backbone behind Riksdagsmonitor's historical evidence layer
🌍 Shared Across the Portfolio
| Dimension | Coverage |
|---|---|
| 🌐 Languages | 14 — English · Swedish · Danish · Norwegian · Finnish · German · French · Spanish · Dutch · Arabic (RTL) · Hebrew (RTL) · Japanese · Korean · Chinese |
| ♿ Accessibility | WCAG 2.1 AA · keyboard navigable · screen-reader optimised · 4.5:1 contrast · responsive 320 px → 1440 px+ |
| 🔒 Compliance | ISO 27001:2022 · NIST CSF 2.0 · CIS Controls v8.1 · GDPR · NIS2 · EU CRA |
| 🛡️ Supply chain | SHA-pinned GitHub Actions · step-security/harden-runner · Dependabot · CodeQL · Secret Scanning · SLSA Level 3 · SPDX SBOM |
| 📜 License | Apache License 2.0 across the entire portfolio |
| 🏢 Operator | Hack23 AB (Org.nr 559534-7807) — Swedish cybersecurity & open-source intelligence consultancy |
| 🛡️ ISMS | Hack23 ISMS-PUBLIC — fully documented information-security management system |
🔗 Hack23 Portfolio Quick Links
- 🌐 Live platforms — euparliamentmonitor.com · riksdagsmonitor.com · hack23.github.io/cia · hack23.com
- 🧠 Political Intelligence Hubs — EU Parliament · Riksdag
- 📂 Source repositories — European-Parliament-MCP-Server · euparliamentmonitor · riksdagsmonitor · cia · ISMS-PUBLIC
- 📦 npm packages —
european-parliament-mcp-server·euparliamentmonitor·riksdagsmonitor - 📰 Blog & company — Hack23 blog · LinkedIn — Hack23 AB · founder James Pether Sörling, CISSP, CISM
- 🤖 AI-readable wikis — DeepWiki: European-Parliament-MCP-Server · DeepWiki: euparliamentmonitor · DeepWiki: riksdagsmonitor · DeepWiki: cia
🔐 Security & Compliance
🚀 Quick Start
Run with npx (No Installation Required)
bashnpx -y european-parliament-mcp-server
Prerequisites
- Node.js 26.x or higher
- npm 10.x or higher
Installation
Option 1: Install from npm (Recommended)
bash# Install the package globally npm install -g european-parliament-mcp-server # Or install as a dependency in your project npm install european-parliament-mcp-server
Option 2: Install from source
bash# Clone the repository git clone https://github.com/Hack23/European-Parliament-MCP-Server.git cd European-Parliament-MCP-Server # Install dependencies npm install # Build the project npm run build # Run tests npm test
Usage with MCP Client
Claude Desktop Configuration (npm install)
Add to your claude_desktop_config.json:
json{ "mcpServers": { "european-parliament": { "command": "npx", "args": ["european-parliament-mcp-server"], "env": { "EP_API_KEY": "your-api-key-if-needed" } } } }
Claude Desktop Configuration (source install)
Add to your claude_desktop_config.json:
json{ "mcpServers": { "european-parliament": { "command": "node", "args": ["/path/to/European-Parliament-MCP-Server/dist/index.js"], "env": { "EP_API_KEY": "your-api-key-if-needed" } } } }
VS Code Extension
Configure in .vscode/mcp.json:
json{ "servers": { "european-parliament": { "type": "stdio", "command": "npx", "args": ["-y", "european-parliament-mcp-server"] } } }
Cursor IDE Configuration
Add to ~/.cursor/mcp.json (or project-level .cursor/mcp.json):
json{ "mcpServers": { "european-parliament": { "command": "npx", "args": ["european-parliament-mcp-server"], "env": {} } } }
Custom Timeout Configuration
Use --timeout <ms> to override the default 60 s request timeout. This is especially useful in copilot-mcp.json or other contexts where the env field may not reliably propagate:
json{ "args": ["european-parliament-mcp-server", "--timeout", "90000"] }
Precedence: --timeout CLI arg > EP_REQUEST_TIMEOUT_MS env var > default (60 000 ms).
Note: The
procedures/feedandevents/feedendpoints automatically use an extended 120 s timeout because these EP API endpoints are significantly slower than others. If you experience timeouts withone-monthtimeframes, consider using year-based queries (e.g.,get_procedures({ year: 2026 })) as a faster alternative.
📚 Documentation
🌐 Documentation Portal
📖 Complete Documentation Site - Live documentation portal with:
- 📖 API Reference (HTML) - TypeDoc generated API documentation with search, hierarchy navigation, and full type information
- 📖 API Reference (Markdown) - SEO-friendly Markdown API documentation
- 📊 Coverage Reports - Test coverage analysis
- ✅ Test Reports - Unit and E2E test results
- 🔐 Build Attestations - SLSA Level 3 provenance
- 📦 SBOM - Software Bill of Materials
- 🗺️ Sitemap - Auto-generated sitemap for search engines
💡 Note: Documentation is automatically generated and committed with each release via
npm run docs:build
Generated API Documentation
The API documentation is generated using TypeDoc with the following plugins:
| Plugin | Purpose |
|---|---|
| typedoc | Core HTML documentation generator |
| typedoc-plugin-markdown | Generates SEO-friendly Markdown alongside HTML |
| typedoc-plugin-mdn-links | Links TypeScript built-in types to MDN documentation |
| typedoc-plugin-zod | Renders Zod schema definitions as readable type documentation |
Generate documentation locally:
bashnpm run docs # HTML API docs → docs/api/ npm run docs:md # Markdown API docs → docs/api-markdown/ npm run docs:build # Full documentation build (HTML + MD + coverage + test reports)
Core Documentation
- API Usage Guide - Complete tool documentation with examples
- Architecture Diagrams - C4 model diagrams and data flows
- Troubleshooting Guide - Common issues and solutions
- Developer Guide - Development workflow and contributing
- Deployment Guide - Claude Desktop, VS Code, Docker setup
- Performance Guide - Optimization strategies
- Documentation as Code Guide - How documentation is generated
Additional Documentation
- ARCHITECTURE.md - Complete architecture and design documentation
- SECURITY.md - Security policy and vulnerability disclosure
- SECURITY_HEADERS.md - API security headers implementation
- docs/SBOM.md - Software Bill of Materials documentation
- CONTRIBUTING.md - Contribution guidelines
- CODE_OF_CONDUCT.md - Community code of conduct
- .github/copilot-instructions.md - Development guidelines for GitHub Copilot
- .github/agents/README.md - Custom GitHub Copilot agents
- .github/skills/README.md - Reusable skill patterns
🏗️ Architecture Overview
Data flow: MCP client sends a tool call → server validates input (Zod) → EP client checks cache → on miss, fetches from EP API (rate-limited) → response cached and returned as structured JSON. All personal data access is audit-logged per GDPR Article 30.
🔌 MCP Tools (63 Total)
63 tools organized by capability — OSINT intelligence first, then analytical, data access, feed endpoints, and reference tools. Every tool includes Zod input validation, caching, and rate limiting.
🗺️ Political Intelligence Coverage Map
🎯 OSINT Intelligence Workflow
🕵️ OSINT Intelligence Tools (15)
| Tool | Description | Key Parameters | Output |
|---|---|---|---|
correlate_intelligence | Cross-tool OSINT correlation engine — fuses influence, anomaly, coalition, and network signals into unified intelligence alerts | mepIds (required), groups, sensitivityLevel | Correlated alerts with severity & confidence |
assess_mep_influence | MEP influence scoring (5-dimension model) | mepId (required), dateFrom, dateTo, includeDetails | Influence scorecard |
detect_voting_anomalies | Party defection & anomaly detection | mepId, groupId, sensitivityThreshold | Anomaly report |
analyze_coalition_dynamics | Coalition cohesion & stress analysis | groupIds, dateFrom, minimumCohesion | Coalition metrics |
early_warning_system | Detect emerging political shifts & coalition fractures | sensitivity, focusArea | Warnings with severity levels & stability score |
comparative_intelligence | Cross-reference 2–10 |




