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

    Class EuropeanParliamentMCPServer

    Main MCP Server class for European Parliament data access

    Implements the Model Context Protocol (MCP) to provide AI assistants, IDEs, and other MCP clients with structured access to European Parliament open data, including information about MEPs, plenary sessions, committees, legislative documents, and parliamentary questions.

    Features:

    • MCP protocol implementation with tools, resources, and prompts
    • Type-safe TypeScript implementation with strict mode
    • GDPR-compliant data handling
    • Rate limiting and security controls
    • Comprehensive error handling

    Data Sources:

    const server = new EuropeanParliamentMCPServer();
    await server.start();
    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    server: Server

    Methods

    • Start the MCP server

      Initializes the server with stdio transport and begins listening for MCP protocol messages. The server communicates via standard input/output following the MCP specification.

      Lifecycle:

      1. Create stdio transport
      2. Connect server to transport
      3. Log startup message to stderr
      4. Begin handling MCP requests

      Returns Promise<void>

      Promise that resolves when server is started

      If server initialization fails

      const server = new EuropeanParliamentMCPServer();
      await server.start();
      // Server now listening on stdio