Skip to main content
Glama
reidar80

Norwegian Business Registry MCP Server

by reidar80

get_entity

Retrieve detailed information about Norwegian businesses using their 9-digit organization number. Access company data, board members, subsidiaries, and corporate structure from the official registry.

Instructions

Get detailed information about a specific Norwegian business entity

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
organisasjonsnummerYes9-digit organization number

Implementation Reference

  • MCP CallToolRequest handler case for 'get_entity': extracts organisasjonsnummer from arguments, fetches entity data via apiClient.getEntity, and returns JSON-formatted text content.
    case "get_entity":
      const { organisasjonsnummer } = request.params.arguments as { organisasjonsnummer: string };
      const entity = await apiClient.getEntity(organisasjonsnummer);
      return {
        content: [
          {
            type: "text",
            text: JSON.stringify(entity, null, 2),
          },
        ],
      };
  • Input schema for 'get_entity' tool: requires a single 'organisasjonsnummer' string property.
    inputSchema: {
      type: "object",
      properties: {
        organisasjonsnummer: { type: "string", description: "9-digit organization number" }
      },
      required: ["organisasjonsnummer"]
    }
  • Registration of 'get_entity' tool in the ListTools response, including name, description, and input schema.
    {
      name: "get_entity",
      description: "Get detailed information about a specific Norwegian business entity",
      inputSchema: {
        type: "object",
        properties: {
          organisasjonsnummer: { type: "string", description: "9-digit organization number" }
        },
        required: ["organisasjonsnummer"]
      }
    },
  • BrregApiClient helper method that performs the actual API request to fetch entity details by organization number.
    async getEntity(orgNumber: string) {
      return this.makeRequest(`/enhetsregisteret/api/enheter/${orgNumber}`);
    }

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