Hopp til innhold

Denne siden finnes foreløpig bare på engelsk. Innholdet nedenfor vises derfor på engelsk.

Knowledge Catalog

The Apier MCP server

Apier serves AI agents over Model Context Protocol at POST /api/mcp: versioned tools for company facts, signing authority, pricing and credits, plus a sandbox.

Jurisdiction: Norway · Verified against Apier / Model Context Protocol as of 2026-12-01

Why an MCP server

Without one, every agent team rebuilds the same plumbing: a hand-written wrapper to host, auth managed on each call, glue that breaks as agent frameworks change, and a per-registry mapping maintained by hand. With the connector, the agent speaks Model Context Protocol to one endpoint, and Apier resolves the registries (Enhetsregisteret, Regnskapsregisteret) and hands back signed JSON.

Tool naming and discovery

Tool names are intent-first verb_noun (get_company_summary, search_companies, get_company_authority, explain_compliance_error), so a caller's intent reads from the name alone. The two exceptions are search and fetch, the names OpenAI's connector specification for ChatGPT requires: search runs the same name search as search_companies, and fetch returns the same check bundle as get_company_verification with mode checks. The server manifest is discoverable at /.well-known/mcp.json. The tools/list call needs no key and returns the current tool list, each tool with its own schema, so read the count from it.

Authentication and the keyless eight

Tool calls authenticate with the same consumer Bearer API key as the REST API; Claude.ai and ChatGPT sign in with OAuth instead, so no key is pasted. Exactly eight public tools execute without any key: get_public_obligations, get_public_deadlines, explain_compliance_error, get_exchange_rate, get_pricing, get_altinn_migration_guidance, check_receipt, and redeem_issuance_token — a closed allowlist of tools that take no personal identifier, perform no government write, and spend no government credential. redeem_issuance_token is keyless by necessity: it converts an owner-minted one-time issuance token into the agent's first API key, so the caller cannot hold a key yet. Every other tool returns 401 without a key. Keyless calls are IP-rate-limited.

Read vs write tools

Read tools forward to the corresponding REST routes and inherit their scopes and metering. submit_vat_return is hard-locked to the sandbox surface and hidden from discovery — it models a VAT return against synthetic fixtures without any government submission. redeem_issuance_token is the one write against Apier's own account state. Seven tools were withdrawn on 2026-10-21: the fullmakt, acting-capacity, authorization, dry-run validation and Altinn filing-history tools; a call to any of them answers CAPABILITY_WITHDRAWN. Apier offers no tool that acts for a company in Altinn.

Use cases

  • Give a Claude or other MCP-client agent direct lookup access to Norwegian company data with zero integration code
  • Resolve a company name to an org number, then verify status and signing rights, in one conversational flow
  • Read the register's coded signing rules for a company (signaturrett and prokura) before a binding step, with a signed receipt

Requirements

  • An MCP client (e.g. a Claude connector) pointed at the Apier MCP endpoint
  • A consumer API key for the keyed tools; nothing for the keyless public eight (redeem_issuance_token additionally needs the owner-minted one-time issuance token as its argument)

Authentication

Method: api_key · Scopes: read:brreg, read:pricing, read:credits, read:onboarding

Same Bearer key as the REST API; per-tool scope checks apply. The eight keyless public tools run without any API key — the seven public reads need no credential at all, while redeem_issuance_token consumes its one-time owner-issued issuance token as the credential. The billing reads declare the MCP-layer scopes read:pricing (get_pricing, also keyless) and read:credits (get_credit_balance) — both satisfied by the default read:* key grant; the balance REST route itself is deliberately scope-exempt. The onboarding tool redeem_issuance_token declares read:onboarding (keyless; also satisfied by read:* for keyed callers).

Common errors

  • SCOPE_INSUFFICIENT

    The key is valid but lacks the scope the called tool requires.

    Fix: Mint or update a key with the tool's required scope (each tool documents it).

  • SANDBOX_TOOL_UNAVAILABLE

    A keyed tool without a sandbox mirror was called under a sandbox bearer. The keyless public reads never return it (with no mirror they run their keyless path under that bearer); redeem_issuance_token, the one keyless tool that writes, still does, so call it with no header.

    Fix: Use a live API key for that keyed tool, or stay on the sandbox-mirrored tool set.

Related topics

Related APIs

These are capability ids; resolve each against the machine-readable manifest at /api/v1/capabilities for the endpoint, auth mode, and tier.

  • company.summary
  • company.search
  • tools.explain

Related MCP tools

Registered tools on the Apier MCP server.

  • search_companies
  • get_company_summary
  • get_company_verification
  • explain_compliance_error
  • submit_vat_return