Riksdag-Regering-MCP

mcp
Guvenlik Denetimi
Uyari
Health Uyari
  • No license — Repository has no license file
  • Description — Repository has a description
  • Active repo — Last push 0 days ago
  • Community trust — 26 GitHub stars
Code Gecti
  • Code scan — Scanned 12 files during light audit, no dangerous patterns found
Permissions Gecti
  • Permissions — No dangerous permissions requested
Purpose
This MCP server connects AI models to open government data from the Swedish Parliament and Government Offices. It provides 32 specialized tools to query public records, parliamentary documents, and voting data.

Security Assessment
Overall Risk: Low. The tool does not request any dangerous system permissions, contain hardcoded secrets, or execute shell commands. However, it inherently makes external network requests to fetch data from public APIs (data.riksdagen.se and g0v.se). Because it is designed to retrieve public political records and does not access local sensitive files or user accounts, the security footprint is minimal. A light code audit across 12 files found no dangerous patterns.

Quality Assessment
The project is in excellent health. It is highly active, with its most recent code push occurring today. It enjoys decent community trust for a niche tool, currently sitting at 26 GitHub stars. The only notable flaw is a missing license file at the repository root (though the README mentions MIT). This lack of formal licensing is a minor issue, but it is generally acceptable for a tool strictly designed to consume open public data rather than process proprietary information.

Verdict
Safe to use.
SUMMARY

MCP-server that provides LLMs with easy access to open data from the Swedish Government Offices and Parliament.

README.md
Skärmavbild 2025-11-20 kl  09 01 01

Riksdag & Regering MCP-server

MCP Registry
MCP Protocol
License: MIT

🇺🇸 Open-source MCP-server for local self-hosting. Enables LLMs to query and retrieve real-time open data, documents, protocols, and records from accessible API:s and open databases from the Parliament and Government Offices of Sweden.

🇸🇪 MCP-server som ger LLMs möjlighet att söka, hitta och extrahera öppen data och information från Riksdagen och Regeringskansliet. Ansluten till samtliga öppna API:er från Riksdagen och nyttjar g0v.se för att tillgå data från Regeringskansliet.


📊 Översikt

Totalt antal tools: 32

MCP-servern exponerar 32 specialiserade verktyg för att hämta data och underlag, som exempelvis:

  • Ledamöter – Information, aktiviteter, uppdrag m.m.
  • Riksdagsdokument – Motioner, skriftliga frågor m.m.
  • Anföranden – Följ vad som sagts i kammaren m.m.
  • Voteringar – Så röstar ledamöterna
  • Regeringsdokument – Ex. SOU, propositioner, pressmeddelanden

Datakällor


Snabbstart

💻 Installation från källkod

# Klona repository
git clone https://github.com/isakskogstad/Riksdag-Regering-MCP.git
cd Riksdag-Regering-MCP

# Installera dependencies
npm run mcp:install

# Bygg servern
npm run mcp:build

STDIO-konfiguration för Claude Desktop

Lägg till följande i din Claude Desktop-config (~/Library/Application Support/Claude/claude_desktop_config.json på macOS):

{
  "mcpServers": {
    "riksdag-regering": {
      "command": "node",
      "args": ["/absolut/sökväg/till/Riksdag-Regering-MCP/mcp/dist/index.js"]
    }
  }
}

Starta om Claude Desktop — servern startas automatiskt via stdio.


📖 Användningsområden

För policynörden

  • Spåra voteringsmönster över partier
  • Analysera ledamöters aktivitet och engagemang

För den nyfikkne

  • Korsreferera riksdags- och regeringsdokument
  • Hitta relevanta anföranden och debatter

För konspiratören

  • Tidsserieanalys av parlamentarisk aktivitet
  • Partijämförelser och koalitionsanalys

För vibekodaren

  • Utöka LLM:er med svensk politisk data
  • Bygg konversationsgränssnitt för medborgardata

Teknisk Stack

  • Runtime: Node.js 20+ med ESM
  • Språk: TypeScript 5.0+
  • MCP SDK: @modelcontextprotocol/sdk ^0.5.0
  • HTTP Server: Express.js 4.x
  • Datakällor: Riksdagens öppna API + g0v.se
  • Validering: Zod 3.x
  • Logging: Winston 3.x

Licens

MIT License - Se LICENSE för detaljer.


Erkännanden

  • g0v.se - Tack till Pierre för din insats med g0v.se

📞Support

Kontakt

Yorumlar (0)

Sonuc bulunamadi