Skip to main content
Glama
@bolagsapi/mcp-server

@bolagsapi/mcp-server

@bolagsapi/mcp-server

Official MCP (Model Context Protocol) server for BolagsAPI - Swedish company data for AI agents.

Enables Claude, ChatGPT, and other AI agents to access comprehensive Swedish company information including:

  • Company lookup and search

  • Financial analysis from annual reports

  • Financial health and stability analysis

  • Compliance screening (sanctions, PEP)

  • Industry statistics and benchmarks

Installation

npm install -g @bolagsapi/mcp-server

Or use npx:

npx @bolagsapi/mcp-server

Related MCP server: nordic-registry-mcp-server

Requirements

Quick Start

Claude Desktop

Add to your Claude Desktop configuration (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):

{
  "mcpServers": {
    "bolagsapi": {
      "command": "npx",
      "args": ["-y", "@bolagsapi/mcp-server"],
      "env": {
        "BOLAGSAPI_KEY": "sk_live_your_api_key_here"
      }
    }
  }
}

Cursor IDE

Add to .cursor/mcp.json in your project:

{
  "mcpServers": {
    "bolagsapi": {
      "command": "npx",
      "args": ["-y", "@bolagsapi/mcp-server"],
      "env": {
        "BOLAGSAPI_KEY": "sk_live_your_api_key_here"
      }
    }
  }
}

VS Code with Continue

Add to your Continue configuration:

{
  "experimental": {
    "modelContextProtocolServers": [
      {
        "transport": {
          "type": "stdio",
          "command": "npx",
          "args": ["-y", "@bolagsapi/mcp-server"],
          "env": {
            "BOLAGSAPI_KEY": "sk_live_your_api_key_here"
          }
        }
      }
    ]
  }
}

Available Tools

Company Intelligence

Tool

Description

lookup_company

Get comprehensive company info by organization number

search_companies

Search companies by name with filters

get_company_timeline

Historical events and milestones

get_similar_companies

Find peer companies by industry

Financial & Health

Tool

Description

analyze_company_financials

Financial data + AI analysis from annual reports

assess_financial_health

Health score, stability grade, financial flags

get_annual_reports

List available annual reports

Compliance & Reference

Tool

Description

get_compliance_data

Sanctions and PEP screening

get_industry_stats

Industry benchmarks by SNI code

Environment Variables

Variable

Required

Default

Description

BOLAGSAPI_KEY

Yes

-

Your BolagsAPI key

BOLAGSAPI_URL

No

https://api.bolagsapi.se/v1

API base URL

HTTP Transport (Remote)

For remote deployments, use the HTTP transport:

# Start HTTP server
npm run start:http

# Or with Docker
docker build -t bolagsapi-mcp .
docker run -p 3001:3001 -e BOLAGSAPI_KEY=sk_live_xxx bolagsapi-mcp

Environment variables for HTTP mode:

  • PORT: HTTP port (default: 3001)

  • HOST: Bind address (default: 127.0.0.1)

HTTP Authentication

The HTTP transport requires Bearer token authentication:

curl -X POST http://localhost:3001/mcp \
  -H "Authorization: Bearer sk_live_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","method":"tools/list","id":1}'

Example Usage

Once configured, you can ask Claude:

"Look up information about Spotify (org nr 556703-7485)"

"Search for AI companies in Stockholm"

"Analyze the financials for IKEA"

"Check if company 5566778899 has any sanctions hits"

"What's the financial health of org 556677-8899?"

Development

# Clone the repo
git clone https://github.com/HugoAndFriends/BolagsAPI-mcp-server.git
cd BolagsAPI-mcp-server

# Install dependencies
pnpm install

# Run in development mode
BOLAGSAPI_KEY=sk_live_xxx pnpm dev

# Build
pnpm build

Security

  • API keys are validated against the BolagsAPI backend

  • Rate limiting: 100 requests/minute per IP (HTTP mode)

  • DNS rebinding protection for localhost bindings

  • CORS enabled for browser clients

Support

License

MIT

Available Tools

9 tools
analyze_company_financialsC

Get detailed financial data from annual reports with optional AI analysis.

Inputs: orgnr (required), lang, include_analysis.

assess_financial_healthB

Get financial health assessment including health score, stability grade, and financial flags.

Inputs: orgnr (required).

get_annual_reportsB

List available annual reports for a company.

Inputs: orgnr (required).

get_company_timelineC

Get historical events for a Swedish company.

Inputs: orgnr (required), lang.

get_compliance_dataA

Screen a company against sanctions lists and PEP databases.

Inputs: orgnr (required).

get_industry_statsC

Get industry statistics and benchmarks by SNI code.

Inputs: sni_code (required), lang.

get_similar_companiesB

Find companies similar by industry and location.

Inputs: orgnr (required), limit, same_city.

lookup_companyC

Get comprehensive information about a Swedish company by organization number.

Inputs: orgnr (required), lang, include_fi, include_financials.

search_companiesC

Search for Swedish companies by name with optional filters.

Inputs: query (required), sni, city, limit, +2 more.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 9 tools

    Disambiguation4/5

    Most tools target clearly distinct resources or actions (lookup, search, timeline, similar, compliance, industry stats). The financial trio — analyze_company_financials, assess_financial_health, and get_annual_reports — overlaps somewhat, though the descriptions do differentiate raw financial data, a computed health score, and a listing of report documents.

    Naming Consistency5/5

    All nine tools follow a consistent snake_case verb_noun pattern (get_, lookup_, search_, analyze_, assess_). Verbs are varied but drawn from a small, predictable, action-oriented set, and the noun portion always names the resource clearly.

    Tool Count5/5

    Nine tools is well within the ideal 3-15 range for a company-data API. Each tool covers a distinct facet (identity, events, peers, financials, compliance, industry) and none feels redundant filler.

    Completeness4/5

    The surface covers the core read-only lifecycle well: discovery, detailed lookup, history, peers, financials/health, reports, compliance, and industry benchmarks. Minor gaps exist for related entities such as company officers/board members or person-level lookups, which an agent would have to work around.

    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
      A
      quality
      B
      maintenance
      MCP server for Nordic company registries. Verify companies, check board members, signing authority, and financial data across Norway, Denmark, Finland, and Sweden using official public APIs. 23 tools covering search, details, roles, and batch lookups.
      19
      14
      Apache 2.0
    • A
      license
      A
      quality
      B
      maintenance
      An MCP server that provides read-only access to Sedis Bolagsanalys and Fastighetsbenchmark data via natural language, enabling AI assistants to query Swedish listed-company financials and real-estate comparables.
      14
      62 npm
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      MCP server to search Japanese companies by corporate number or name and retrieve financial, subsidy, and procurement information from gBizINFO public data. Enables AI agents to query Japanese company data through natural language.
      MIT