oparl-mcp-server
Verified Safeby jtwolfe
Overview
Provides AI models and applications with structured access to OParl parliamentary data APIs via the Model Context Protocol.
Installation
docker run -p 8000:8000 -e OPARL_BASE_URL=https://api.oparl.org -e OPARL_API_KEY=your-api-key oparl-mcp-serverEnvironment Variables
- OPARL_BASE_URL
- OPARL_API_KEY
Security Notes
The server uses `pydantic_settings` for configuration, allowing API keys to be loaded securely from environment variables or `.env` files, rather than being hardcoded. It integrates with `httpx` for making asynchronous API calls to external OParl APIs, with timeouts configured. There is no usage of `eval` or similar dangerous functions that could lead to immediate remote code execution. The system relies on an `oparl_openapi.json` file for its API definition; ensuring this file is trusted is important. Outbound network requests are fundamental to its operation, so the security of the target OParl API is an external dependency. Overall, the codebase appears to follow good security practices for its architectural pattern.
Similar Servers
mcpo
Exposes Model Context Protocol (MCP) tools as OpenAPI-compatible HTTP servers.
mcp-openapi-server
A Model Context Protocol (MCP) server that exposes OpenAPI endpoints as MCP tools, along with optional support for MCP prompts and resources, enabling Large Language Models to interact with REST APIs.
omcp
The server enables Large Language Models (LLMs) to securely query and analyze healthcare data stored in the OMOP Common Data Model format through a standardized Model Context Protocol interface.
Riksdag-Regering-MCP
Provides LLMs with real-time access to open data, documents, and records from the Swedish Parliament (Riksdagen) and Government Offices (Regeringskansliet) via their public APIs.