@bolagsapi/mcp-server

@bolagsapi/mcp-server

MCP server for Swedish company data. Enables AI agents to lookup companies, analyze financials, assess health, screen compliance, and get industry stats.

Category
Visit Server

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
  • 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

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

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured