Riksdagsmonitor Intelligence Platform - v0.7.19
    Preparing search index...

    Client for accessing Statistics Sweden (SCB) data via MCP server. Provides domain-based queries and indicator lookups.

    Index

    Constructors

    Properties

    serverUrl: string
    timeout: number
    maxRetries: number

    Methods

    • Search SCB tables by query string.

      Parameters

      • query: string

        Search terms (e.g., 'arbetslöshet sysselsättning')

      • limit: number = 5

        Maximum number of results (default: 5)

      Returns Promise<SCBTableInfo[]>

      Array of matching table info

    • Fetch data from a specific SCB table.

      Parameters

      • tableId: string

        SCB table identifier (e.g., 'TAB5765')

      • Optionalselection: Record<string, string[]>

        Optional selection filters (e.g., { Tid: ['TOP(4)'] })

      Returns Promise<SCBDataPoint[]>

      Array of data points

    • Build an SCBIndicator from raw data points. Computes trend by comparing latest two values.

      Parameters

      • label: string

        Human-readable indicator label

      • dataPoints: readonly SCBDataPoint[]

        Raw data points sorted by period descending

      • tableId: string

        Source SCB table ID

      Returns SCBIndicator

      SCBIndicator or null if no data