Skip to main content
Glama
Sweden Company Register

Sweden Company Register

by pipeworx-io

@pipeworx/sweden-company-register

Swedish company register (Bolagsverket) as a searchable register: look up a company by organisation number, or search by name. Registered and deregistered legal entities, refreshed weekly.

Part of Pipeworx — an MCP gateway connecting AI agents to 2020+ live data sources. This is an independent, unofficial integration — not affiliated with, endorsed by, or published by the upstream provider.

Tools

  • se_company(organisation_number) -- one company by 10-digit organisationsnummer (556703-7485 or 5567037485): name, other names, legal form (AB, HB, KB, BRF, EK, I, S, FL, ...), registered or deregistered (with date and reason code), registration date, registered address, business description, ongoing liquidation/reconstruction proceeding. A mistyped number fails the check digit and says so; a 12-digit personal-number-shaped input is refused.

  • se_company_search(name, status?, legal_form?, city?, limit?) -- word search on the company name, last word matched as a prefix, case and a/o-diacritic insensitive. Exact name ranks first, then names starting with the query, registered before deregistered.

Every response carries data_as_of (the publisher's file date) and source. Output keys are stable for other tools to consume: register (SE-BOLAGSVERKET), jurisdiction (SE), registration_number (10 digits, text), organisation_number (hyphenated), name, legal_form (raw code) with legal_form_label, status (registered/deregistered), registered_address.

Related MCP server: Brreg MCP Server

What is NOT here

Natural persons. The publisher's file also lists sole traders (enskilda firmor), estates of deceased persons and entries keyed by personal identity number: about 1.04M of its 2.99M rows. All of those are dropped before anything is stored, so they cannot be looked up or searched, and a 12-digit personal-number-shaped input is refused. No officers, board members or owner names are served: no ruling covers them for this pack. A c/o address line (which names a person) is dropped. The address returned is the company's own registered address.

Source and reuse terms

Publisher: Bolagsverket, the Swedish Companies Registration Office. Dataset: its open company data (company basic data), published as a high-value dataset, updated weekly (the file's last-modified date has been a Monday).

Reuse terms, as stated by Bolagsverket (quoted from its pages on downloadable files and high-value datasets; the pages sit behind a bot check, so these sentences were read through a search excerpt, not the live page, and should be re-read there):

  • "Det kostar ingenting och det kravs inga avtal. Vara filer uppdateras veckovis."

  • "Nar det galler vardefulla datamangder ... Du far anvanda dessa data fritt for kommersiella och icke-kommersiella syften" (subject to the rules on personal data and confidentiality).

Bolagsverket's separate statistics files carry CC BY 2.5 SE; the company bulk file is not labelled with a licence in that table. We hold the company file only. This is a mirrored dataset: the publisher states free reuse including commercial, which is what permits the copy. Attribution travels in every response's source field.

BUDGET

D1 database pipeworx-se-company-register (binding SE_COMPANY_DB, a D1 binding: zero of the gateway's 250 text bindings). Unit prices: Workers Paid, 2026-11 (CLAUDE.md "A copy has a BUDGET").

  • Measured on the 2026-11-16 cut: 2,988,640 source rows, of which 1,947,562 legal entities are kept (1,040,973 natural-person rows, 2 estates, 68 sole traders dropped).

  • One-time load: 1,947,562 companies rows + one unique-index entry each + about 2 FTS rows each = ~4 rows per entity, 7.8M rows, **$8 at list**. Pessimistic bound at Japan's measured 9x (trigram FTS, which this pack does not use): ~17.5M rows, ~$17.5. Under the $50 threshold. The actual figure from the load is in the "Load record" below.

  • Steady state: weekly delta load (scripts/lib/d1-delta-load), only changed rows written, ~8-9 rows per changed entity (delete + insert in the table, its index and the FTS index). Assuming 40k changed entities/week (~10k new and ~7k deregistered registrations plus name, address and status changes): 160k/month x 9 = 1.5M rows = **$1.5/month**. Ten times that is $15/month, under the $25 threshold. An unchanged file (same hash) writes zero rows. Storage ~1.2 GB D1 (inside the 5 GB included); the R2 snapshot (~1 GB) ~$0.02/month.

  • Refresh cadence: weekly, never more often than the publisher. No DROP and reimport anywhere (check-full-reload-guard); the first run is the one full load.

  • Cheaper options considered: Supabase rejected (3M rows of reference data on the billing database); R2 plus an in-isolate scan rejected (a 1.1 GB register does not fit a 128 MB isolate); trigram FTS rejected (about twice the index rows for a substring feature Swedish company search does not need); a name-prefix-only index rejected (misses every word after the first).

Known gaps

  • Word-prefix search, not substring: "bygg" finds "Byggnads AB" but not "Storbygg AB".

  • The register carries one primary name plus secondary and foreign-language names (up to 12 kept); former names are not in the file.

  • Annual-report financials are a separate Bolagsverket dataset and are not in this pack.

  • No beneficial-owner or officer data.

Refresh

scripts/sweden-company-register/refresh.sh build|load|verify. The route and file name live only in that script.

Quick Start

Add to your MCP client (Claude Desktop, Cursor, Windsurf, etc.):

{
  "mcpServers": {
    "sweden-company-register": {
      "url": "https://gateway.pipeworx.io/sweden-company-register/mcp"
    }
  }
}

What this endpoint actually serves

tools/list at https://gateway.pipeworx.io/sweden-company-register/mcp returns the tools in the table above plus the shared Pipeworx meta-tools — ask_pipeworx, discover_tools, search_within, remember/recall and the rest of the gateway-wide set. So the tool count you see is larger than this table: a single-pack endpoint currently lists roughly 30 shared tools alongside the pack's own. The connection's initialize response states its exact scope, and is the authoritative answer for a given day.

This is deliberate, not multiplexing by accident. The meta-tools are what let a scoped connection answer a question this pack does not cover — via ask_pipeworx, which routes across the whole catalog — without you adding a second MCP server. There is currently no way to mount a pack endpoint without them; if the extra schemas cost you more context than the routing is worth, connect to the full gateway once rather than to several pack endpoints.

Or connect to the full Pipeworx gateway to get every pack's tools listed directly, instead of just this one's:

{
  "mcpServers": {
    "pipeworx": {
      "url": "https://gateway.pipeworx.io/mcp"
    }
  }
}

Both URLs reach the same gateway and the same 2020+ data sources. The only difference is which pack's tools are listed directly; ask_pipeworx reaches all of them from either one.

No MCP client? Call it over HTTP

curl -X POST https://gateway.pipeworx.io/v1/tools/se_company \
  -H 'Content-Type: application/json' \
  -d '{"organisation_number":"556074-3089"}'

No account needed for the first calls. Inspect any tool: GET https://gateway.pipeworx.io/v1/tools/se_company. Find one: POST https://gateway.pipeworx.io/v1/tools/search_packs with {"query":"..."}.

Run it from npm

@pipeworx/mcp-sweden-company-register is a local stdio bridge to the Pipeworx gateway: your MCP client starts it with npx, and it forwards every call to the same https://gateway.pipeworx.io/sweden-company-register/mcp endpoint shown above. It needs network access; there is no offline mode.

{
  "mcpServers": {
    "sweden-company-register": {
      "command": "npx",
      "args": ["-y", "@pipeworx/mcp-sweden-company-register"]
    }
  }
}

Without a key it calls anonymously, capped at 50 calls a day. A free account raises that to 200 a day: get a key at https://pipeworx.io/signup and add "env": { "PIPEWORX_API_KEY": "<your key>" } to the server entry. The key is sent as a Bearer token, the same way a hosted connection sends it, so calls are metered and billed exactly as they are there.

It lists only this pack's tools by default. Set PIPEWORX_META_TOOLS=1 to also list ask_pipeworx and the other gateway-wide tools.

Behind an HTTPS proxy: Node's built-in fetch does not read HTTPS_PROXY by default. Newer Node releases honour it when NODE_USE_ENV_PROXY=1 is set; check your Node version's documentation.

Using with ask_pipeworx

Instead of calling tools directly, you can ask questions in plain English — this works on the pack endpoint above as well as on the full gateway:

ask_pipeworx({ question: "your question about Sweden Company Register data" })

The gateway picks the right tool and fills the arguments automatically.

More

License

MIT

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      Not graded
      maintenance
      Enables searching and retrieving detailed information about Swedish companies, including financial data and annual reports from Bolagsverket (Swedish Companies Registration Office), with intelligent caching for fast responses.
      -
    • A
      license
      B
      quality
      D
      maintenance
      Enables interaction with the Norwegian Business Registry (Brønnøysundregistrene) API to search and retrieve detailed information about Norwegian companies, subunits, roles, organization forms, municipalities, and NACE industry codes.
      18
      1
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides access to Norway's official business registry for searching companies, looking up organizational details, and identifying company roles and sub-units. It utilizes data from Brønnøysundregistrene to enable detailed queries by industry, municipality, or organization number.
      MIT