Skip to main content
Glama
reidar80

Norwegian Business Registry MCP Server

by reidar80

search_sub_entities

Search for Norwegian business sub-entities using filters like name, organization number, employee count, registration dates, industry codes, and organizational forms to find specific subsidiary information.

Instructions

Search for Norwegian business sub-entities (underenheter) with various filters

Input Schema

NameRequiredDescriptionDefault
fraAntallAnsatteNoMinimum number of employees
fraDatoEierskifteNoOwnership change date from (ISO-8601 yyyy-MM-dd)
fraNedleggelsesdatoNoClosure date from (ISO-8601 yyyy-MM-dd)
fraOppstartsdatoNoStart date from (ISO-8601 yyyy-MM-dd)
hjemmesideNoWebsite
kommunenummerNoMunicipality numbers
naeringskodeNoIndustry codes
navnNoSub-entity name (1-180 characters)
navnMetodeForSoekNoSearch method for name parameter
organisasjonsformNoOrganizational forms
organisasjonsnummerNoList of organization numbers (9 digits)
overordnetEnhetNoParent entity organization number
pageNoPage number
registrertIMvaregisteretNoRegistered in VAT registry
sizeNoPage size (default 20)
sortNoSort field and order
tilAntallAnsatteNoMaximum number of employees
tilDatoEierskifteNoOwnership change date to (ISO-8601 yyyy-MM-dd)
tilNedleggelsesdatoNoClosure date to (ISO-8601 yyyy-MM-dd)
tilOppstartsdatoNoStart date to (ISO-8601 yyyy-MM-dd)

Input Schema (JSON Schema)

{ "properties": { "fraAntallAnsatte": { "description": "Minimum number of employees", "type": "number" }, "fraDatoEierskifte": { "description": "Ownership change date from (ISO-8601 yyyy-MM-dd)", "type": "string" }, "fraNedleggelsesdato": { "description": "Closure date from (ISO-8601 yyyy-MM-dd)", "type": "string" }, "fraOppstartsdato": { "description": "Start date from (ISO-8601 yyyy-MM-dd)", "type": "string" }, "hjemmeside": { "description": "Website", "type": "string" }, "kommunenummer": { "description": "Municipality numbers", "items": { "type": "string" }, "type": "array" }, "naeringskode": { "description": "Industry codes", "items": { "type": "string" }, "type": "array" }, "navn": { "description": "Sub-entity name (1-180 characters)", "type": "string" }, "navnMetodeForSoek": { "description": "Search method for name parameter", "enum": [ "FORTLOEPENDE" ], "type": "string" }, "organisasjonsform": { "description": "Organizational forms", "items": { "type": "string" }, "type": "array" }, "organisasjonsnummer": { "description": "List of organization numbers (9 digits)", "items": { "type": "string" }, "type": "array" }, "overordnetEnhet": { "description": "Parent entity organization number", "type": "string" }, "page": { "description": "Page number", "type": "number" }, "registrertIMvaregisteret": { "description": "Registered in VAT registry", "type": "boolean" }, "size": { "description": "Page size (default 20)", "type": "number" }, "sort": { "description": "Sort field and order", "type": "string" }, "tilAntallAnsatte": { "description": "Maximum number of employees", "type": "number" }, "tilDatoEierskifte": { "description": "Ownership change date to (ISO-8601 yyyy-MM-dd)", "type": "string" }, "tilNedleggelsesdato": { "description": "Closure date to (ISO-8601 yyyy-MM-dd)", "type": "string" }, "tilOppstartsdato": { "description": "Start date to (ISO-8601 yyyy-MM-dd)", "type": "string" } }, "type": "object" }

Implementation Reference

  • Core handler function in BrregApiClient that performs the API request to search for Norwegian business sub-entities (underenheter).
    async searchSubEntities(params: SubEntitySearchParams = {}) { return this.makeRequest('/enhetsregisteret/api/underenheter', params); }
  • TypeScript interface defining the input parameters for the searchSubEntities tool, extending EntitySearchParams with additional date filters.
    interface SubEntitySearchParams extends Omit<EntitySearchParams, 'konkurs' | 'underTvangsavviklingEllerTvangsopplosning' | 'underAvvikling' | 'underKonkursbehandling'> { fraOppstartsdato?: string; tilOppstartsdato?: string; fraDatoEierskifte?: string; tilDatoEierskifte?: string; fraNedleggelsesdato?: string; tilNedleggelsesdato?: string; }
  • MCP tool registration including name, description, and detailed input JSON schema.
    name: "search_sub_entities", description: "Search for Norwegian business sub-entities (underenheter) with various filters", inputSchema: { type: "object", properties: { navn: { type: "string", description: "Sub-entity name (1-180 characters)" }, navnMetodeForSoek: { type: "string", enum: ["FORTLOEPENDE"], description: "Search method for name parameter" }, organisasjonsnummer: { type: "array", items: { type: "string" }, description: "List of organization numbers (9 digits)" }, overordnetEnhet: { type: "string", description: "Parent entity organization number" }, fraAntallAnsatte: { type: "number", description: "Minimum number of employees" }, tilAntallAnsatte: { type: "number", description: "Maximum number of employees" }, registrertIMvaregisteret: { type: "boolean", description: "Registered in VAT registry" }, fraOppstartsdato: { type: "string", description: "Start date from (ISO-8601 yyyy-MM-dd)" }, tilOppstartsdato: { type: "string", description: "Start date to (ISO-8601 yyyy-MM-dd)" }, fraDatoEierskifte: { type: "string", description: "Ownership change date from (ISO-8601 yyyy-MM-dd)" }, tilDatoEierskifte: { type: "string", description: "Ownership change date to (ISO-8601 yyyy-MM-dd)" }, fraNedleggelsesdato: { type: "string", description: "Closure date from (ISO-8601 yyyy-MM-dd)" }, tilNedleggelsesdato: { type: "string", description: "Closure date to (ISO-8601 yyyy-MM-dd)" }, organisasjonsform: { type: "array", items: { type: "string" }, description: "Organizational forms" }, hjemmeside: { type: "string", description: "Website" }, kommunenummer: { type: "array", items: { type: "string" }, description: "Municipality numbers" }, naeringskode: { type: "array", items: { type: "string" }, description: "Industry codes" }, size: { type: "number", description: "Page size (default 20)" }, page: { type: "number", description: "Page number" }, sort: { type: "string", description: "Sort field and order" } } } },
  • MCP CallToolRequest handler case that invokes the searchSubEntities method and returns the JSON-formatted results.
    case "search_sub_entities": const subEntityResults = await apiClient.searchSubEntities(request.params.arguments as SubEntitySearchParams); return { content: [ { type: "text", text: JSON.stringify(subEntityResults, null, 2), }, ], };

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/reidar80/BRREG-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server