OParl Logo FastMCP Logo

OParl MCP Server

A powerful Model Context Protocol (MCP) server that provides seamless access to OParl parliamentary data APIs

This server enables AI assistants and applications to interact with parliamentary information systems using a standardized interface.

โš ๏ธ Project Status: This project is currently in development and requires additional validation and testing. While the core functionality is implemented, it has not been thoroughly tested in production environments. Please use with caution and report any issues you encounter.

๐Ÿš€ Quick Start

Get started with the OParl MCP Server in minutes:

# Install the package
pip install oparl-mcp-server

# Run the server
python -m oparl_mcp.server

โœจ Features

๐Ÿ”Œ MCP Integration

Full Model Context Protocol compliance

๐Ÿ›๏ธ OParl Support

Access to all OParl 1.1 object types

๐ŸŒ Multi-Implementation

Works with various OParl implementations

๐Ÿ” Authentication

Support for API key authentication

๐Ÿ“Š Rich Data

Parliamentary meetings, documents, organizations, and more

๐Ÿ” Search

Advanced search and filtering capabilities

๐Ÿณ Docker Ready

Containerized deployment options

๐Ÿงช Testing

Comprehensive test suite included

๐Ÿ“š Documentation

๐Ÿš€ Getting Started

Quick setup and basic usage

Get Started

๐Ÿ“– User Guide

Comprehensive usage documentation

Read Guide

๐Ÿ”ง API Reference

Complete API documentation

View API

๐Ÿ› ๏ธ Development

Contributing and development guide

Contribute

๐Ÿ›๏ธ Supported OParl Objects

๐ŸŒ OParl Implementations

The server works with various OParl implementations:

๐Ÿ› ๏ธ Installation

From PyPI

pip install oparl-mcp-server

From Source

git clone https://github.com/jtwolfe/oparl-mcp-server.git
cd oparl-mcp-server
pip install -e .

Docker

docker run -p 8000:8000 jtwolfe/oparl-mcp-server

๐Ÿ“– Usage

Basic Configuration

from oparl_mcp import OParlMCPServer, OParlConfig

# Create configuration
config = OParlConfig(
    base_url="https://api.oparl.org",
    api_key="your-api-key",  # Optional
    timeout=30.0
)

# Create and run server
server = OParlMCPServer(config)
server.run()

Environment Variables

export OPARL_BASE_URL="https://api.oparl.org"
export OPARL_API_KEY="your-api-key"
export OPARL_TIMEOUT="30.0"
export OPARL_LOG_LEVEL="INFO"

๐Ÿค Contributing

We welcome contributions! Please see our Contributing Guide for details.

๐Ÿ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

๐Ÿ™ Acknowledgments


Ready to get started? Check out our Quick Start Guide or explore the API Reference.