npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@bolagsapi/mcp-server

v0.1.3

Published

MCP server for BolagsAPI - Swedish company data for AI agents

Readme

@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
  • Credit scoring and risk assessment
  • Compliance screening (sanctions, PEP)
  • Industry statistics and benchmarks

Remote Setup (Recommended)

Use the hosted Streamable HTTP endpoint:

https://mcp.bolagsapi.se/mcp

Clients that support OAuth will open a BolagsAPI login/consent page. This avoids copying API keys into local config.

Codex

Add to ~/.codex/config.toml:

[mcp_servers.bolagsapi]
url = "https://mcp.bolagsapi.se/mcp"

Claude Code

claude mcp add --transport http bolagsapi https://mcp.bolagsapi.se/mcp

Cursor

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

{
  "mcpServers": {
    "bolagsapi": {
      "url": "https://mcp.bolagsapi.se/mcp"
    }
  }
}

Local Installation

npx @bolagsapi/mcp-server

Local stdio mode requires:

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 | |------|-------------| | validate_orgnr | Validate Swedish organization numbers | | lookup_company | Get comprehensive company info by organization number | | search_companies | Search companies by name with filters | | get_company_contact | Enriched contact data such as website, phone, email, and social links | | get_company_people | Signatories, board/person roles, and ownership data | | get_company_timeline | Historical events and milestones | | get_similar_companies | Find peer companies by industry |

Financial & Credit

| Tool | Description | |------|-------------| | analyze_company_financials | Financial data + AI analysis from annual reports | | get_financial_summary | Financial trends and growth metrics | | assess_company_credit | Credit score, health score, risk indicators | | estimate_company_valuation | Valuation estimate with optional AI valuation | | get_annual_reports | List available annual reports |

Compliance & Reference

| Tool | Description | |------|-------------| | get_compliance_data | Sanctions and PEP screening | | get_company_legal_events | POIT announcements, bankruptcy status, and creditor calls | | get_industry_stats | Industry benchmarks by SNI code | | get_municipal_tax_rate | Municipal tax rates by kommun code | | search_municipal_tax_rates | Find municipal tax rates by municipality name | | get_riksbank_rates | Riksbank rates and exchange-rate series |

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 supports OAuth-issued mcp_live_* bearer tokens and direct sk_live_* / sk_test_* API keys:

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"

"Who can sign for Spotify AB?"

"Check legal announcements and bankruptcy status for org 556677-8899"

"Estimate the valuation for Klarna"

"What is the municipal tax rate for Stockholm?"

"Check if company 5566778899 has any sanctions hits"

"What's the credit rating for 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