European-Parliament-MCP-Server
Copilot instructions28 starsChanged 10 months agoApache-2.0View on GitHub
ALWAYS read these files at the start of your session: - .github/workflows/copilot-setup-steps.yml — Environment setup and permissions - .github/copilot-mcp.json — MCP server configuration and available tools - README.md — Repository overview and project context - SECURITY.md — Security policy and vulnerability disclosure European Parliament MCP Server — Model Context Protocol server for European Parliament Open Data. TypeScript 6.0.2, Node.js 25, strict mode, Zod validation. ISMS-compliant (ISO 27001, NIST CSF 2.0, CIS Controls v8.1), GDPR-ready, SLSA Level 3. Scale: 62 MCP…
In this repository41 other files it gives its agents.
- ai-development-governanceSkill
- ai-governanceSkill
- architecture-documentationSkill
- aws-security-architectureSkill
- behavioral-analysisSkill
- business-model-canvasSkill
- c4-architecture-documentationSkill
- code-quality-excellenceSkill
- compliance-frameworksSkill
- contribution-guidelinesSkill
- data-science-for-intelligenceSkill
- documentation-standardsSkill
- electoral-analysisSkill
- european-parliament-apiSkill
- european-political-systemSkill
- gdpr-complianceSkill
- github-actions-workflowsSkill
- github-agentic-workflowsSkill
- incident-responseSkill
- intelligence-analysis-techniquesSkill
- isms-complianceSkill
- legislative-monitoringSkill
- mcp-gateway-configurationSkill
- mcp-gateway-securitySkill
- mcp-server-developmentSkill
- open-source-governanceSkill
- osint-methodologiesSkill
- performance-optimizationSkill
- political-science-analysisSkill
- risk-assessment-frameworksSkill
- secrets-managementSkill
- secure-code-reviewSkill
- secure-development-lifecycleSkill
- security-by-designSkill
- seo-best-practicesSkill
- strategic-communication-analysisSkill
- testing-mcp-toolsSkill
- testing-strategySkill
- threat-modeling-frameworkSkill
- typescript-strict-patternsSkill
- vulnerability-managementSkill
The file
We split this copilot-instructions.md into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 100
Error handling: Never expose internal errors — return generic messages to clients
≈ “Common” is an estimate: at least 1 in 5 of the 1,644 Copilot instructions files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Copilot Instructions
📋 Required Context Files
ALWAYS read these files at the start of your session:
.github/workflows/copilot-setup-steps.yml— Environment setup and permissions.github/copilot-mcp.json— MCP server configuration and available toolsREADME.md— Repository overview and project contextSECURITY.md— Security policy and vulnerability disclosure
Project Overview
European Parliament MCP Server — Model Context Protocol server for European Parliament Open Data. TypeScript 6.0.2, Node.js 25, strict mode, Zod validation. ISMS-compliant (ISO 27001, NIST CSF 2.0, CIS Controls v8.1), GDPR-ready, SLSA Level 3.
Scale: 62 MCP tools (8 core + 3 advanced + 15 OSINT + 8 phase 4 + 15 phase 5 + 13 feed) · 9 resources · 7 prompts · 1130+ unit tests · 71 E2E test cases · 80%+ coverage · <200ms API responses.
Data source: European Parliament Open Data Portal API v2 (https://data.europarl.europa.eu/api/v2/).
Development Commands
npm ci # Install (lockfile)
npm run build # Compile TypeScript
npm run lint # ESLint
npm run type-check # tsc --noEmit
npm test -- --run # Unit tests (Vitest)
npm run test:coverage # Coverage report
npm run test:licenses # License compliance
npx knip # Unused code/dependencies check🎯 Skills Catalog (41 skills in .github/skills/)
| Category | Skills |
| Core Dev (10) | mcp-server-development, european-parliament-api, gdpr-compliance, typescript-strict-patterns, testing-mcp-tools, security-by-design, isms-compliance, testing-strategy, documentation-standards, performance-optimization |
| Security (6) | secure-code-review, secrets-management, vulnerability-management, secure-development-lifecycle, incident-response, contribution-guidelines |
| DevOps (4) | github-agentic-workflows, c4-architecture-documentation, github-actions-workflows, code-quality-excellence |
| Intelligence (10) | political-science-analysis, osint-methodologies, intelligence-analysis-techniques, european-political-system, data-science-for-intelligence, electoral-analysis, behavioral-analysis, strategic-communication-analysis, legislative-monitoring, risk-assessment-frameworks |
| Business (2) | business-model-canvas, seo-best-practices |
| AI & Gateway (3) | ai-governance, mcp-gateway-configuration, mcp-gateway-security |
| ISMS (6) | open-source-governance, threat-modeling-framework, architecture-documentation, aws-security-architecture, compliance-frameworks, ai-development-governance |
Coding Guidelines
TypeScript Strict Mode (ES2025 target)
- No
any— useunknownif needed - Explicit return types on all functions
- Zod schemas for all external data validation
noUncheckedIndexedAccessenabled — handle potentialundefinedfrom array/object access- Exhaustive switch cases — handle all union discriminants
- Use
satisfiesfor type-safe object literals
Code Organization
src/
├── tools/ # MCP tool implementations (62 tools)
├── resources/ # MCP resource handlers (9 resources)
├── prompts/ # MCP prompt templates (7 prompts)
├── clients/ep/ # European Parliament API client
├── schemas/ # Zod validation schemas
├── server/ # MCP server setup, tool registry
├── types/ # TypeScript type definitions
├── config.ts # Configuration (env vars: EP_API_URL, EP_REQUEST_TIMEOUT_MS, EP_CACHE_TTL, EP_RATE_LIMIT)
└── generated/ # Auto-generated EP API typesTesting (Vitest)
- Colocate tests as
.test.tsnext to source files - 80%+ line coverage required (95% for security code)
- Mock EP API calls with
vi.mock() - Integration tests in
tests/integration/, E2E intests/e2e/
MCP Tool Development Pattern
import { z } from 'zod';
const Schema = z.object({
country: z.string().length(2).optional(),
limit: z.number().min(1).max(100).default(50)
});
export async function handleTool(args: z.infer<typeof Schema>) {
const validated = Schema.parse(args);
const data = await fetchFromEPAPI(validated);
return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }] };
}Security Requirements
- Input validation: Zod schemas on all tool inputs
- Rate limiting: 100 req/min default (configurable via
EP_RATE_LIMIT) - GDPR: Data minimization, 15min cache TTL for personal data, audit logging
- Supply chain: Pinned action SHAs, SLSA Level 3, CycloneDX/SPDX SBOM
- Error handling: Never expose internal errors — return generic messages to clients
Custom Agents (14 in .github/agents/)
api-integration-engineer, business-development-specialist, documentation-writer, european-parliament-specialist, frontend-specialist, intelligence-operative, isms-compliance-auditor, marketing-specialist, mcp-developer, performance-optimizer, product-task-agent, security-specialist, test-engineer, zod-schema-architect
CI/CD Pipeline (12 workflows)
8-stage pipeline: Code Validation → Build & Test → Security Analysis → Integration Testing → Release & Publish → Supply Chain (SBOM/SLSA) → Continuous Monitoring (Scorecard) → Repository Management. See WORKFLOWS.md for details.
Architecture Documentation (14 documents)
Current (7): ARCHITECTURE.md, SECURITY_ARCHITECTURE.md, DATA_MODEL.md, FLOWCHART.md, STATEDIAGRAM.md, MINDMAP.md, SWOT.md Future (7): FUTURE_ARCHITECTURE.md, FUTURE_SECURITY_ARCHITECTURE.md, FUTURE_DATA_MODEL.md, FUTURE_FLOWCHART.md, FUTURE_STATEDIAGRAM.md, FUTURE_MINDMAP.md, FUTURE_SWOT.md
Resources
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

