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

    Client for fetching plenary vote data from the EP DOCEO XML endpoint.

    This provides more recent vote data than the EP Open Data API, which has a delay of several weeks for publishing roll-call vote results.

    • URL construction is validated (HTTPS only, known host)
    • XML parsing uses regex-based extraction (no eval/dynamic code execution)
    • Response size limited to prevent memory exhaustion
    • All access is audit-logged
    Index

    Constructors

    Properties

    term: number

    Methods

    • Fetch roll-call vote data for a specific date.

      Parameters

      • date: string

        Date in YYYY-MM-DD format

      • term: number = ...
      • OptionalabortSignal: AbortSignal

      Returns Promise<RcvVoteResult[]>

      Parsed RCV results, or empty array if unavailable

    • Fetch votes for a single date, trying RCV first then VOT.

      Parameters

      • date: string
      • term: number
      • includeIndividual: boolean
      • OptionalabortSignal: AbortSignal

      Returns Promise<{ url: string; votes: LatestVoteRecord[] } | null>

    • Fetch aggregate vote results for a specific date.

      Parameters

      • date: string

        Date in YYYY-MM-DD format

      • term: number = ...
      • OptionalabortSignal: AbortSignal

      Returns Promise<VotVoteResult[]>

      Parsed VOT results, or empty array if unavailable

    • Fetch a single XML document from DOCEO.

      Parameters

      • url: string

        Full URL to the XML document

      • OptionalabortSignal: AbortSignal

      Returns Promise<string | null>

      Raw XML string, or null if document not available