European Parliament MCP Server API - v1.2.6
    Preparing search index...

    Function handleGetMEPs

    • Handles the get_meps MCP tool request.

      Retrieves Members of European Parliament with optional filtering by country, political group, committee, and active status. Results are paginated and GDPR-compliant.

      Intelligence Use Cases: Filter by country for national delegation analysis, by group for cohesion studies, by committee for policy domain expertise mapping.

      Business Use Cases: Power stakeholder mapping products, political risk dashboards, and MEP engagement tracking for corporate affairs teams.

      Marketing Use Cases: Demo-ready endpoint for showcasing EP data access to potential API consumers, journalists, and civic tech developers.

      Parameters

      • args: unknown

        Raw tool arguments, validated against GetMEPsSchema

      Returns Promise<ToolResult>

      MCP tool result containing a paginated list of MEP records with name, country, political group, committee memberships, and contact information

      With operation: 'validateInput' if args fails Zod schema validation (e.g., country code not 2 uppercase letters, limit out of range 1–100)

      With operation: 'validateOutput' if the EP API response does not match the expected schema shape

      With operation: 'fetchData' if the European Parliament API is unreachable or returns an error response

      const result = await handleGetMEPs({ country: 'SE', limit: 10 });
      // Returns up to 10 Swedish MEPs with group and committee details
      // Get active EPP group members
      const result = await handleGetMEPs({ group: "EPP", active: true, limit: 50 });
      • Input is validated with Zod before any API call.
      • Errors are sanitized to avoid exposing internal implementation details.
      • Personal data in responses is minimised per GDPR Article 5(1)(c).
      • Personal data access is audit-logged per GDPR Article 30.
      • All requests are rate-limited and audit-logged per ISMS Policy AU-002.
      • ISMS Policy: SC-002 (Input Validation), AC-003 (Least Privilege)

      0.8.0

      • getMEPsToolMetadata for MCP schema registration
      • handleGetMEPDetails for retrieving full details of a single MEP