Riksdagen MCP Server logo

Riksdagen MCP Server

by amrtini

The Riksdagen MCP server allows Claude to search the Swedish Parliament (Riksdagen) document archive and retrieve URLs in JSON format. It provides tools for searching documents in the Swedish Parliament's open data archive.

View on GitHub

Last updated: N/A

What is Riksdagen MCP Server?

The Riksdagen MCP server is an implementation of the Model Context Protocol (MCP) that enables searching and retrieving documents from the Swedish Parliament's open data archive. It provides a set of tools accessible via MCP, allowing Claude to find and access parliamentary documents.

How to use Riksdagen MCP Server?

To use the server, you need to install the prerequisites (Python 3.9+, FastAPI, Uvicorn, MCP Python SDK, httpx), clone the repository, create a virtual environment, install dependencies, and then start the server using the provided uvicorn command. Once running, you can interact with it programmatically using the MCP protocol, as demonstrated in the example client code, or through Claude by constructing appropriate prompts.

Key features of Riksdagen MCP Server

  • Search for documents based on various criteria

  • Get a list of available document types

  • Create lists of URLs for specific documents in various formats (JSON, HTML, text)

  • Integration with Claude via MCP

  • Programmatic access via a client

Use cases of Riksdagen MCP Server

  • Searching for specific documents related to a topic in the Swedish Parliament

  • Generating lists of URLs for parliamentary documents for further analysis

  • Providing Claude with access to relevant information from the Riksdagen archive

  • Building applications that require access to Swedish parliamentary data

  • Automated retrieval of parliamentary documents based on predefined criteria

FAQ from Riksdagen MCP Server

What is the purpose of this server?

The server allows Claude to search the Swedish Parliament's document archive and retrieve URLs.

What are the prerequisites for running the server?

Python 3.9+, FastAPI, Uvicorn, MCP Python SDK, and httpx.

How do I install the MCP Python SDK?

You can install it directly from its repository using pip install git+https://github.com/modelcontextprotocol/python-sdk.git.

How do I start the server?

Use the command uvicorn mcp_riksdagen_server:app --host 0.0.0.0 --port 8000 --reload.

What MCP tools are available?

riksdagen_search, riksdagen_get_document_types, and riksdagen_create_url_list.