Skip to main content
Glama
andyarntsen-alt

brreg-mcp-server

README.md
# 🏛️ Brønnøysundregistrene MCP Server

MCP-server som gir AI-agenter (Claude, GPT, Cursor, etc.) direkte tilgang til norske foretaksdata fra Enhetsregisteret.

**Ingen API-nøkkel nødvendig** — bruker Brønnøysundregistrenes åpne API.

## Verktøy

| Verktøy | Beskrivelse |
|---------|------------|
| `sok_foretak` | Søk etter foretak på navn, næringskode, kommune, org.form m.m. |
| `hent_foretak` | Hent detaljert info om et foretak via organisasjonsnummer |
| `hent_roller` | Hent styremedlemmer, daglig leder, revisor etc. |
| `sok_underenheter` | Søk etter underenheter (avdelinger/filialer) |
| `hent_underenhet` | Hent detaljer om en spesifikk underenhet |

## Installasjon

```bash
npm install
npm run build
```

## Bruk med Claude Desktop

Legg til i `claude_desktop_config.json`:

```json
{
  "mcpServers": {
    "brreg": {
      "command": "node",
      "args": ["/sti/til/brreg-mcp-server/dist/index.js"]
    }
  }
}
```

## Bruk med Claude Code

```bash
claude mcp add brreg node /sti/til/brreg-mcp-server/dist/index.js
```

## Eksempler

Når serveren er koblet til, kan du spørre AI-en:

- *"Søk etter alle AS-er i Oslo med mer enn 100 ansatte"*
- *"Hvem sitter i styret til Equinor?"*
- *"Finn alle bedrifter registrert siste mĂĄned innen IT-konsulentvirksomhet"*
- *"Hent info om organisasjonsnummer 923609016"*

## Datakilde

All data kommer fra [Brønnøysundregistrenes åpne API](https://data.brreg.no/enhetsregisteret/api) (Enhetsregisteret). Dataene er offentlige og fritt tilgjengelige.

## Lisens

MIT

TDQS

A4/5.0

Scored across 5 tools

Disambiguation5/5

Each tool targets a distinct resource and action: search vs. retrieve for both main entities and sub-units, and roles retrieval for a specific entity. There is no overlap or ambiguity among the five tools.

Naming Consistency5/5

All tool names follow the same Norwegian verb_noun pattern: 'sok_' for searching and 'hent_' for retrieving, with the entity type appended. This creates a predictable and coherent naming convention across the entire set.

Tool Count5/5

Five tools is a well-scoped count for a business registry lookup server, covering the two core entity types (foretak and underenheter) with both search and detail retrieval, plus a roles endpoint. It feels complete without being bloated.

Completeness4/5

The tool set covers the essential read-only operations for the domain: searching and retrieving main entities and sub-units, and fetching roles. A minor gap is the lack of a direct endpoint to list all sub-units for a given parent company, but this can be worked around via the search tool by filtering on the parent's organization number.

Maintenance

ActivityInactive
ResponsivenessNo issues