Riksdagen MCP Server

Riksdagen MCP Server

riksdagen-mcp-server•byamrtini

An MCP server that lets Claude search the Swedish Parliament document archive and generate lists of document URLs.

License: MIT License•Runtime: Awaiting documentation review•Category: search web

WHAT IT DOES

  • •Searches Riksdagen documents by search term, document type, parliamentary year, date range, sorting, and result limit.
  • •Lists available document types in the Riksdagen archive as codes mapped to descriptions.
  • •Creates document URLs for provided document IDs in JSON, HTML, or text format.

BEST FOR

  • •Finding Swedish Parliament motions and other documents on a topic such as climate change.
  • •Building URL lists for found documents so they can be processed further.

ABOUT RIKSDAGEN-MCP-SERVER

Riksdagen MCP Server is cataloged as an MCP server attributed to amrtini. An MCP server that lets Claude search the Swedish Parliament document archive and generate lists of document URLs. It is categorized under search web. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT License. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Riksdagen MCP Server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

What search filters does the riksdagen_search tool accept?

It accepts optional search term, document type, parliamentary year, from and to dates, sort order, sort direction, and a result limit.

上游原版 README

在 GitHub 查看同一版本原文

README.md · aa7bae22673c · 采集于 2026-11-13 11:23:10 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

Riksdagen MCP Server

This project implements a Model Context Protocol (MCP) server that allows Claude to search the Swedish Parliament (Riksdagen) document archive and retrieve URLs in JSON format. The project is generetad using Claude 3.7.

Overview

The Riksdagen MCP server provides tools for searching documents in the Swedish Parliament's open data archive. It allows Claude to:

  1. Search for documents based on various criteria (keywords, document types, dates, etc.)
  2. Get a list of available document types
  3. Create lists of URLs for specific documents in various formats (JSON, HTML, text)

Prerequisites

  • Python 3.9+
  • FastAPI
  • Uvicorn
  • MCP Python SDK
  • httpx

Installation

  1. Clone this repository:

    git clone https://github.com/amrtini/riksdagen-mcp-server.git
    cd riksdagen-mcp-server
    
  2. Create a virtual environment:

    python -m venv venv
    source venv/bin/activate  # On Windows: venv\Scripts\activate
    
  3. Install dependencies:

    pip install fastapi uvicorn httpx mcp
    

    Note: You might need to install the MCP Python SDK directly from its repository:

    pip install git+https://github.com/modelcontextprotocol/python-sdk.git
    

Running the Server

  1. Start the MCP server:

    uvicorn mcp_riksdagen_server:app --host 0.0.0.0 --port 8000 --reload
    
  2. The server will be available at http://localhost:8000

MCP Tools

The server provides the following MCP tools:

Search for documents in the Riksdagen archive based on various criteria.

Parameters:

  • sok: Search term (optional)
  • doktyp: Document type (optional, e.g. "prop", "mot", "bet")
  • rm: Parliamentary year (optional, e.g. "2021/22")
  • from_date: From date in YYYY-MM-DD format (optional)
  • tom: To date in YYYY-MM-DD format (optional)
  • sort: Sort order (optional, default: "rel", options: "rel", "datum", "beteckning")
  • sortorder: Sort direction (optional, default: "desc", options: "desc", "asc")
  • limit: Maximum number of results to return (optional, default: 10)

Returns: A JSON object containing document URLs and metadata.

2. riksdagen_get_document_types

Get a list of available document types in the Riksdagen archive.

Returns: A dictionary mapping document type codes to their descriptions.

3. riksdagen_create_url_list

Create a list of URLs for Riksdagen documents in the specified format.

Parameters:

  • document_ids: List of document IDs
  • format: Format of the documents (default: "json", options: "json", "html", "text")

Returns: A JSON object containing document URLs.

Using with Claude

Claude can use this MCP server to search for documents in the Riksdagen archive and generate URL lists for further processing. The example client demonstrates how to interact with the server.

Example Claude Prompt

I want to search for documents in the Swedish Parliament archive about climate change (klimat in Swedish) from the last year. Can you help me find relevant motions and create a list of URLs to access them?

Claude can then use the MCP tools to:

  1. Search for documents with the term "klimat"
  2. Filter for motion documents (doktyp="mot")
  3. Set the parliamentary year to the current one
  4. Create a list of URLs for the found documents

Using the Client

The included client demonstrates how to interact with the MCP server programmatically:

# Create the client
client = ClaudeRiksdagenClient()

# Search for documents
search_results = await client.search_documents(
    search_term="klimat",
    document_type="mot",
    parliamentary_year="2023/24",
    limit=5
)

# Create URL list for the found documents
doc_ids = [doc["id"] for doc in search_results["documents"]]
url_list = await client.create_url_list(doc_ids, format="json")

License

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

Acknowledgments

  • The Swedish Parliament (Riksdagen) for providing the open data API
  • The Model Context Protocol (MCP) team for developing the standard

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Riksdagen MCP Server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/riksdagen-mcp-server)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related search web MCP Servers

Alternative and complementary servers in the same category

View all in search web →

An MCP server that merges Google Search Console history with a live first-party crawl of your site to produce a prioritised, evidence-backed technical SEO audit inside Claude, complete with paste-ready fixes.

Repository stats unavailable
Search & Web Research

An MCP server that offers intelligent web search using OpenAI reasoning models, with support for fast iterations and deep research.

94
Search & Web Research