Skip to main content
Glama
Anadolf

Bygglov Ärendesystem MCP Server

by Anadolf

Bygglov 2.0 - demo case system with MCP

This is a local demo case system to show how a Copilot Studio agent can work against a third-party system via MCP.

Start

cd "C:\Users\anadolf\OneDrive - Microsoft\Dokument\Microsoft Scout\arendesystem-mcp-demo"
npm start

Web interface: http://localhost:3978
MCP endpoint: http://localhost:3978/mcp
Health check: http://localhost:3978/health

Related MCP server: se-eli-mcp

Data source

The first time the app starts, data/cases.json is seeded from the local Bygglov demo environment:

  • bygglov_sharepoint_cases

  • bygglov_status_cases

  • bygglov_approved_cases

  • Bygglov 2.0\Bygglov_2_0_demo\output\sharepoint_cases

  • Bygglov 2.0\Bygglov_2_0_demo\sample_incoming_case.json

The SharePoint source that the demo corresponds to:

https://m365cpi70484186.sharepoint.com/sites/Almedalen/Delade%20dokument/Forms/AllItems.aspx?web=1&FolderCTID=0x0120009AA01829982188468E2F1A4CC2D5DFB6&id=%2Fsites%2FAlmedalen%2FDelade%20dokument%2FBygglov

If you want to reseed from the source folders: stop the server, delete data\cases.json and start again.

MCP tools

The server exposes these tools:

  • bygglov_demo_overview

  • bygglov_list_cases

  • bygglov_get_case

  • bygglov_summarize_case

  • bygglov_missing_documents

  • bygglov_update_status

  • bygglov_add_note

  • bygglov_create_case

Connect to Copilot Studio

For local demo, the MCP endpoint needs to be reachable from Copilot Studio, for example via Microsoft Dev Tunnels or a similar secure tunnel.

Example:

devtunnel host -p 3978 --allow-anonymous

Then use the tunnel's public HTTPS address with /mcp, for example:

https://<din-tunnel>.devtunnels.ms/mcp

Demo ideas for the agent

  • "Show status for BYGG-2026-0001."

  • "Which cases are waiting for supplementary information?"

  • "Summarize BYGG-2026-20260616-19001 and suggest next steps."

  • "Add an internal note to BYGG-2026-20260616-19001."

  • "Change status to Grannhörande/remiss."

Maintenance

ActivityMaintained
ResponsivenessNo issues

Related MCP Connectors

Related MCP Servers

  • A
    license
    A
    quality
    F
    maintenance
    Query Swedish public data from AI tools. Includes company data, SCB statistics, weather, transport, public agencies, and more through the Apiverket API.
    2
    25 npm
    2
    MIT
  • A
    license
    A
    quality
    A
    maintenance
    Enables AI agents to search and retrieve consolidated Swedish statutes (SFS) from the Riksdagen open data API, with verifiable citations and persistent identifiers.
    4
    Apache 2.0
  • F
    license
    Not graded
    quality
    D
    maintenance
    Enables LLMs to query and retrieve real-time open data, documents, protocols, and records from the Swedish Parliament (Riksdag) and Government Offices through 32 specialized MCP tools.
    31
    -