Brreg MCP Server

Brreg MCP Server

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.

Category
访问服务器

README

Brreg MCP Server

A Model Context Protocol (MCP) server for interacting with Brønnøysundregistrene (Brreg) API - Norwegian Business Registry.

Features

  • Company Search: Search for companies with various filters
  • Company Details: Get detailed information about specific companies
  • Company Roles: Retrieve roles and board members
  • Subunit Search: Search for business units/subunits
  • Subunit Details: Get detailed information about specific subunits
  • Organization Forms: Get organization forms and their descriptions
  • Municipalities: Get Norwegian municipalities and their details
  • Role Information: Get role types, role group types, and representatives
  • Updates Tracking: Get updates for companies and subunits
  • NACE Codes: Search and filter by NACE industry codes with hierarchical support
  • Error Handling: Comprehensive error handling with validation
  • Type Safety: Full TypeScript support with proper type definitions

Installation

Option 1: Install from npm (Recommended)

# Install globally
npm install -g brreg-mcp-server

# Or install locally in your project
npm install brreg-mcp-server

Option 2: Clone from source

# Clone repository
git clone https://github.com/david/brreg-mcp-server.git
cd brreg-mcp-server

# Install dependencies
npm install

# Build project
npm run build

# Start server
npm start

Development

# Run in development mode
npm run dev

MCP Tools

1. search_companies

Search for companies in Norwegian Business Registry.

Parameters:

  • name (string): Company name (free text, 1-180 characters)
  • organizationNumber (array): Organization numbers (9 digits each)
  • parentCompany (string): Parent company organization number
  • fromEmployees (number): Minimum number of employees
  • toEmployees (number): Maximum number of employees
  • bankrupt (boolean): Filter by bankruptcy status
  • registeredInVAT (boolean): Filter by VAT registration
  • registeredInBusinessRegister (boolean): Filter by business register status
  • organizationForm (array): Organization forms (e.g., AS, ENK)
  • municipalityNumber (array): Municipality numbers (4 digits each)
  • industryCode (array): Industry codes (e.g., 41.109, 01.1)
  • page (number): Page number (default: 1)
  • size (number): Page size (default: 20)
  • sort (string): Sort field and order (e.g., antallAnsatte,ASC)

2. get_company

Get detailed information about a specific company.

Parameters:

  • organizationNumber (string, required): Organization number (9 digits)

3. get_company_roles

Get all roles for a specific company.

Parameters:

  • organizationNumber (string, required): Organization number (9 digits)

4. search_subunits

Search for business units/subunits.

Parameters:

  • name (string): Subunit name
  • organizationNumber (array): Organization numbers
  • parentCompany (string): Parent company
  • fromEmployees (number): Minimum employees
  • toEmployees (number): Maximum employees
  • registeredInVAT (boolean): VAT registration status
  • page (number): Page number
  • size (number): Page size

5. get_subunit

Get detailed information about a specific subunit.

Parameters:

  • organizationNumber (string, required): Organization number (9 digits)

6. get_organization_forms

Get all organization forms.

Parameters:

  • page (number): Page number (default: 1)
  • size (number): Page size (default: 20)
  • sort (string): Sort field and order (e.g., kode,ASC)

7. get_organization_forms_for_units

Get organization forms for main units.

Parameters:

  • page (number): Page number (default: 1)
  • size (number): Page size (default: 20)
  • sort (string): Sort field and order (e.g., kode,ASC)

8. get_organization_forms_for_subunits

Get organization forms for subunits.

Parameters:

  • page (number): Page number (default: 1)
  • size (number): Page size (default: 20)
  • sort (string): Sort field and order (e.g., kode,ASC)

9. get_organization_form

Get specific organization form by code.

Parameters:

  • organizationCode (string, required): Organization form code (e.g., AS, ENK, ASA)

10. get_municipalities

Get all Norwegian municipalities.

Parameters:

  • page (number): Page number (default: 1)
  • size (number): Page size (default: 20)
  • sort (string): Sort field and order (e.g., navn,ASC)

11. get_municipality

Get specific municipality by municipality number.

Parameters:

  • municipalityNumber (string, required): Municipality number (4 digits)

12. get_role_types

Get all role types.

13. get_role_group_types

Get all role group types.

14. get_role_representatives

Get all role representatives.

15. get_company_updates

Get updates for companies with optional filters.

Parameters:

  • date (string): Show updates from and including this timestamp (ISO-8601)
  • updatedBefore (string): Show updates to and including this timestamp (ISO-8601)
  • updateId (number): Show only updates from and including update ID (>= 1)
  • organizationNumber (array): Comma-separated list of organization numbers
  • includeChanges (boolean): Include the changes that caused the update to be published
  • page (number): Page number (default: 1)
  • size (number): Page size (default: 20, max: 10000)
  • sort (string): Sort field and order (e.g., id,ASC). Only id is supported

16. get_subunit_updates

Get updates for subunits with optional filters.

Parameters:

  • date (string): Show updates from and including this timestamp (ISO-8601)
  • updatedBefore (string): Show updates to and including this timestamp (ISO-8601)
  • updateId (number): Show only updates from and including update ID (>= 1)
  • organizationNumber (array): Comma-separated list of organization numbers
  • includeChanges (boolean): Include the changes that caused the update to be published
  • page (number): Page number (default: 1)
  • size (number): Page size (default: 20, max: 10000)
  • sort (string): Sort field and order (e.g., id,ASC). Only id is supported

17. search_nace_codes

Search NACE industry codes with hierarchical filtering support using the full SN2025 classification.

Parameters:

  • searchText (string): Text to search for in NACE code names, short names, codes, or notes
  • parentCode (string): Get all child codes for a specific NACE parent code (e.g., "01.1" will return all subcategories)
  • exactCode (string): Get specific NACE code by exact code
  • level (string): Filter by NACE level (1-5). Level 1 = sections, Level 2 = divisions, Level 3 = groups, Level 4 = classes, Level 5 = national subcategories
  • includeHierarchy (boolean): Include full hierarchical path in results (default: true)
  • includeNotes (boolean): Include detailed notes in results (default: false)

18. get_services

Get all available services from Brreg API.

Usage Examples

Search for software companies in Oslo

{
  "name": "search_companies",
  "arguments": {
    "industryCode": ["62"],
    "municipalityNumber": ["0301"],
    "fromEmployees": 10,
    "size": 50
  }
}

Get company details

{
  "name": "get_company",
  "arguments": {
    "organizationNumber": "123456789"
  }
}

Get subunit details

{
  "name": "get_subunit",
  "arguments": {
    "organizationNumber": "987654321"
  }
}

Get organization forms

{
  "name": "get_organization_forms",
  "arguments": {
    "page": 1,
    "size": 50
  }
}

Get specific organization form

{
  "name": "get_organization_form",
  "arguments": {
    "organizationCode": "AS"
  }
}

Get municipalities

{
  "name": "get_municipalities",
  "arguments": {
    "page": 1,
    "size": 20,
    "sort": "navn,ASC"
  }
}

Get company updates

{
  "name": "get_company_updates",
  "arguments": {
    "date": "2024-01-01T00:00:00.000Z",
    "size": 50,
    "includeChanges": true
  }
}

Search NACE codes

{
  "name": "search_nace_codes",
  "arguments": {
    "searchText": "software",
    "level": "4",
    "includeHierarchy": true
  }
}

Get NACE codes by parent

{
  "name": "search_nace_codes",
  "arguments": {
    "parentCode": "62",
    "includeNotes": true
  }
}

Configuration

Claude Desktop Setup

Add this to your claude_desktop_config.json:

{
  "mcpServers": {
    "brreg": {
      "command": "npx",
      "args": ["brreg-mcp-server"]
    }
  }
}

Or if installed globally:

{
  "mcpServers": {
    "brreg": {
      "command": "brreg-mcp-server"
    }
  }
}

Error Handling

The server provides comprehensive error handling:

  • Validation Errors: Invalid input parameters
  • Not Found Errors: Company or resource not found
  • Rate Limit Errors: API rate limits exceeded
  • Server Errors: Temporary server issues
  • Network Errors: Connection problems

Data Types

The server provides proper TypeScript types for:

  • Company information
  • Subunit data
  • Role information
  • API responses
  • Error responses

License

MIT License

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Add tests
  5. Submit a pull request

Support

For issues related to the Brreg API itself, visit Brreg's documentation.

For issues with this MCP server, please create an issue in the repository.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选