Bolagskvarnen MCP Server
Swedish company data for AI agents: search, board, history, financials. Sandbox: fictional firms.
Bolagskvarnen scores 63 (Good), licensed MIT and written in JavaScript. It can be reached as a remote MCP endpoint. It does not declare tools yet. Filed under Uncategorized. GitHub shows 0 stars. Package registries report about 408 downloads a week. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.
Good trust
63 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: mit.
License, quality and maintenance
Quality: Grade C
65/100 for listing completeness. Lost points: no listed tools, short summary.
How quality is graded
Where the 63 comes from
22 + 20 + 0 + 10 + 4 + 7 = 63. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 20 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 0 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 7 of 10 points.Install
Pick your client, copy the config, paste it in.
Remote auth: API key required. Get a key or token from the provider first, then add it as a header in your client config. How remote auth works
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "gradientvibe-bolagskvarnen-examples": { "command": "npx", "args": [ "-y", "bolagskvarnen-mcp@1.0.0" ], "env": { "BOLAGSKVARNEN_KEY": "YOUR_BOLAGSKVARNEN_KEY" } } }}
Environment variables
| Name | Required | Notes |
|---|---|---|
BOLAGSKVARNEN_KEYSecret | Required | API key: gb_test_... (free sandbox, fictional companies) or gb_live_... |
Tools
All capabilitiesTools show up when the registry metadata or the repository README lists them. Public READMEs are read directly. A GitHub token is used only when one is already configured.
About
Bolagskvarnen: remote MCP server for Swedish company data (Bolagsverket, SCB)
Svenska | English
Hosted MCP server and REST API for Swedish company data: company search, board and signatories, history and financial statements, with source and retrieval time in every response. Connect Claude Code with one command and a free test key (sandbox with fictional companies):
claude mcp add --transport http bolagskvarnen https://app.bolagskvarnen.se/mcp \
--header "Authorization: Bearer $BOLAGSKVARNEN_KEY"
Server: https://app.bolagskvarnen.se/mcp (Streamable HTTP, OAuth 2.1 or API key). Official MCP Registry: se.bolagskvarnen/bolagskvarnen. For clients that only start a local command, use the npm package bolagskvarnen-mcp: npx -y bolagskvarnen-mcp with the key in BOLAGSKVARNEN_KEY. Docs and client guides: bolagskvarnen.se.
Code examples for Bolagskvarnen (bolagskvarnen.se), an MCP server and REST API for Swedish company data: search companies, get the company profile, board and signatories, change history, financial statements and a person's other engagements. The data comes from Bolagsverket (the Swedish Companies Registration Office) and SCB (Statistics Sweden), and every response states its source and retrieval time in meta.attribution.
This is the vendor's own repository. Bolagskvarnen is a brand of Bolagskällan AB (559555-5946).
Status, in plain words
- The sandbox is open. A free test key (
gb_test_...) gives real, working responses about fictional companies. Nothing in this repository is a real company or a real person. - Real data opens soon. Until then, live keys answer
503 blocked_by_phase, while OAuth sign-in and test keys answer from the sandbox. The examples below use a test key. - The service is for internal use by Swedish companies, organisations and agencies. The data may not be resold or shown to your own customers. See the terms.
1. Get a test key
Register for free at app.bolagskvarnen.se/registrera, then create a key under Account, Keys with the environment Test. Keep it in an environment variable:
export BOLAGSKVARNEN_KEY="gb_test_..."
The sandbox has seven fictional companies in the same format as live data. 569900-0013 (Exempelbolaget i Norrland AB) is the one used below. 569900-0039 is a deregistered company with former board members, and 569900-0096 is a valid number that does not exist, so you can test the not-found case.
2. Connect the MCP server
Server address: https://app.bolagskvarnen.se/mcp (Streamable HTTP). Seven read-only tools: gb_search_companies, gb_get_company, gb_get_company_roles, gb_get_company_history, gb_get_financials, gb_get_person_engagements, gb_get_account.
What works today, by client (checked 2026-11-13):
| Client | Test key (sandbox, works now) | OAuth sign-in |
|---|---|---|
| Claude Code | Yes | Sandbox until live data opens |
| Cursor | Yes | Sandbox until live data opens |
| VS Code with Copilot | Yes | Sandbox until live data opens |
| Codex | Yes | Sandbox until live data opens |
| claude.ai and Claude Desktop | Only with the beta feature Request headers | Sandbox until live data opens |
| ChatGPT | No | Sandbox until live data opens |
Claude Code
claude mcp add --transport http bolagskvarnen https://app.bolagskvarnen.se/mcp \
--header "Authorization: Bearer $BOLAGSKVARNEN_KEY"
Then type /mcp in Claude Code. The shell expands the variable, so the key is stored in plain text in ~/.claude.json. Do not add it with --scope project, because that writes the key to .mcp.json, which is often committed.
Claude Desktop and claude.ai
Customize, Connectors, Add custom connector. Name Bolagskvarnen, address https://app.bolagskvarnen.se/mcp. Sign-in is OAuth and answers from the sandbox until live data opens for your account. See the guide for Claude for the Request headers exception.
Cursor
Put this in ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (one project), set BOLAGSKVARNEN_KEY in the environment Cursor starts in, and restart Cursor. A ready file is in mcp/cursor-mcp.json.
{
"mcpServers": {
"bolagskvarnen": {
"url": "https://app.bolagskvarnen.se/mcp",
"headers": {
"Authorization": "Bearer ${env:BOLAGSKVARNEN_KEY}"
}
}
}
}
VS Code with Copilot
Run MCP: Add Server, choose HTTP, enter the address and the id bolagskvarnen, and pick Global, Copilot Global. Then add the header to ~/.copilot/mcp-config.json. A ready file is in mcp/vscode-copilot-mcp-config.json.
{
"mcpServers": {
"bolagskvarnen": {
"type": "http",
"url": "https://app.bolagskvarnen.se/mcp",
"headers": {
"Authorization": "Bearer ${BOLAGSKVARNEN_KEY}"
}
}
}
}
Codex
Add this to ~/.codex/config.toml. Only the variable name is stored in the file. A ready file is in mcp/codex-config.toml.
[mcp_servers.bolagskvarnen]
url = "https://app.bolagskvarnen.se/mcp"
bearer_token_env_var = "BOLAGSKVARNEN_KEY"
Try it
Ask your assistant: "What kind of company is 569900-0013, and is it active?" It calls gb_get_company and answers from the sandbox. Ask for the source and cost to see attribution and cost_sek (always 0 in the sandbox).
The same server card is published at /.well-known/mcp.json, and the registry entry is in server.json.
3. Call the REST API
Base URL https://app.bolagskvarnen.se/api/v1. The key goes in Authorization: Bearer. Every response has status (ok or error), data or error, and meta.
curl
curl -s "https://app.bolagskvarnen.se/api/v1/companies/569900-0013" \
-H "Authorization: Bearer $BOLAGSKVARNEN_KEY"
A response from the sandbox:
{
"status": "ok",
"data": {
"org_number": "569900-0013",
"name": "Exempelbolaget i Norrland AB",
"legal_form": { "code": "AB", "text": "Aktiebolag" },
"is_sole_trader": false,
"status": { "active": true, "code": 100, "text": "Aktiv", "detailed": "Aktiv", "date": null },
"registered_date": "2015-03-10",
"seat": { "municipality": "Umeå", "region": "Västerbottens län" },
"industry": { "sni_code": "62010", "text": "Dataprogrammering" }
},
"meta": {
"source": ["sandbox"],
"attribution": [
{ "source": "getbolag-sandbox", "supplier": "Bolagskvarnen", "notice": "Påhittad testdata. Inga riktiga bolag eller personer." }
],
"cost_sek": 0,
"environment": "test"
}
}
(Shortened. The full response also has request_id, retrieved_at, data_updated_at, database, publisher and coverage.)
More calls are in rest/curl.sh: search by name, board and signatories, history, financial statements.
Python
rest/python/lookup.py fetches a company and its board:
pip install -r rest/python/requirements.txt
python rest/python/lookup.py 569900-0013
TypeScript
rest/typescript/lookup.ts does the same with fetch (Node 20 or later):
npx tsx rest/typescript/lookup.ts 569900-0013
PHP and Go
These two search for a company by name (default Exempelbolaget) and print the board and signatory rights of the first hit. The key is read from BOLAGSKVARNEN_KEY.
php rest/php/lookup.php Exempelbolaget # PHP 8 with the curl extension
cd rest/go && go run . Exempelbolaget # Go 1.21 or later
Code: rest/php/lookup.php, rest/go/main.go.
Postman
rest/postman/bolagskvarnen.postman_collection.json has one folder per tag in the OpenAPI file and ready sandbox calls. Import it in Postman and set the collection variable api_key to your test key (base_url is already set). Run Get roles before Get engagements: it stores the person_ref that the engagements call needs. Rebuild the collection with node rest/postman/build.mjs (Node 20 or later).
Endpoints
| Call | Path |
|---|---|
| Search (free up to 1,000 a day) | GET /api/v1/companies/search?q=... |
| Company profile | GET /api/v1/companies/{org_number} (?detail=full for the full profile) |
| Board, CEO, auditor, signatories | GET /api/v1/companies/{org_number}/roles |
| Change history | GET /api/v1/companies/{org_number}/history?since=YYYY-MM-DD |
| Financial statements, up to five years | GET /api/v1/companies/{org_number}/financials?years=3 |
| A person's engagements | GET /api/v1/persons/{person_ref}/engagements |
| Account and balance | GET /api/v1/account |
People are identified by person_ref, which is bound to your account. No personal identity numbers are returned.
Links
- Guide: MCP server for Swedish company data (Swedish: MCP-server för bolagsdata)
- Documentation: app.bolagskvarnen.se/docs
- OpenAPI: app.bolagskvarnen.se/openapi.json
- For AI tools: bolagskvarnen.se/llms.txt and app.bolagskvarnen.se/llms.txt
- MCP server card: app.bolagskvarnen.se/.well-known/mcp.json
- Prices and plans: bolagskvarnen.se/priser/
License
The code and configuration in this repository are MIT licensed, see LICENSE. The service itself, the API and the data are covered by Bolagskvarnen's terms.
Frequently asked questions
What is Bolagskvarnen MCP Server?
Swedish company data for AI agents: search, board, history, financials. Sandbox: fictional firms.
How do I install Bolagskvarnen MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. Bolagskvarnen MCP Server runs locally from the npm package bolagskvarnen-mcp with the command npx -y bolagskvarnen-mcp@1.0.0.
Is Bolagskvarnen MCP Server free and open source?
Yes. Bolagskvarnen MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does Bolagskvarnen MCP Server support remote (HTTP) connections?
Yes. Bolagskvarnen MCP Server offers a hosted endpoint over Streamable HTTP, so HTTP-capable clients can connect to it without running anything locally.
How is Bolagskvarnen MCP Server's trust score calculated?
Bolagskvarnen MCP Server scores 63 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.