Apier

Norwegian company verification and signing authority from Brønnøysundregistrene, for AI agents.

Hosted MCP Server

npx add-mcp 'https://www.apier.no/api/mcp'

Installs into Claude Code, Codex, Cursor and more

Documentation

Apier MCP server: Norwegian company verification and signing authority for AI agents

CI npm License: MIT

Apier gives AI agents machine-verifiable Norwegian company authority. For a 9-digit organisasjonsnummer it returns company verification (registration status, bankruptcy and liquidation flags, VAT registration, registered roles such as daglig leder and the board) and the company's signing authority, signaturrett and prokura, as Brønnøysundregistrene (Brreg) hold it in Enhetsregisteret and Fullmakttjenesten. Each answer carries its source and retrieval time, and you can ask for a signed receipt. It is used in KYB flows where an agent onboards, pays or contracts with a Norwegian company.

Apier runs a hosted MCP (Model Context Protocol) server at https://www.apier.no/api/mcp, listed as no.apier/mcp in the official MCP registry. This repository is @apier-no/mcp, the npm proxy that connects stdio-only MCP clients to that hosted server. No tool logic runs locally. The registry metadata for no.apier/mcp is maintained upstream, next to the hosted server, so this repository carries no registry manifest.

Try it in 30 seconds (no key)

The public sandbox answers for the test company 999999999 without a key or an account:

curl -s https://www.apier.no/api/v1/sandbox/public/company/999999999/authority

Response from 2026-11-25, trimmed (other fields omitted):

{
  "success": true,
  "data": {
    "org_number": "999999999",
    "name": "Apier Public Sandbox AS",
    "entity_type": "AS",
    "classification": "sole",
    "summary": "Én rolle kan signere alene for selskapet.",
    "combinations": [
      {
        "kombinasjons_id": "SANDBOX-KOMB-DAGL-ALENE",
        "description": "Daglig leder signerer alene.",
        "role_codes": ["DAGL"]
      }
    ],
    "signaturrett_holders": [{ "role": "DAGL", "name": "Ola Nordmann" }],
    "prokura_holders": [],
    "source": "brreg.fullmakt",
    "rule_set": "no.brreg.signatur.v1"
  },
  "_meta": { "is_sandbox": true, "source": "apier.no" }
}

Sandbox data is fictional. The public sandbox allows 100 requests per hour per IP address. More fixture companies are available with a self-invented bearer; see Sandbox with a self-invented bearer.

How it fits together

flowchart LR
    A["AI agent or your app"] --> B["Apier (MCP or REST)"]
    B --> C["Brreg register data with coded signing rules, plus a signed receipt"]
    C --> D["Offline check against Apier's public JWKS"]

Production receipts are detached JWS signatures that verify against https://www.apier.no/.well-known/jwks.json. The guide is at https://www.apier.no/docs/guides/verify-certificate.

Tools

The hosted server publishes its tool list, with each tool's full description and required_scope, at the keyless discovery endpoint GET https://www.apier.no/api/mcp and through tools/list. The live tool list at https://www.apier.no/api/mcp is authoritative; new tools may appear before this README is updated. On 2026-12-01 tools/list returned the 24 tools below.

The first three groups follow the product areas on apier.no. What each tool costs is returned by get_pricing and shown on the pricing page.

Verify

ToolScopeWhat it returns
search_companiesread:brregUp to 10 candidates for a company name, each with its organisasjonsnummer. Call it first when you have a name and no number.
get_company_verificationread:brregA status for one company from its registration status and visible signing authority (pass, fail or unknown). With mode checks it returns every check with its own status and source.

Authority

ToolScopeWhat it returns
get_company_authorityread:brregThe register's coded signing rules for the company, signaturrett and prokura, uninterpreted.

Proof

ToolScopeWhat it returns
get_company_evidence_packread:brregOne signed JSON record of what Apier observed about the company: the check bundle, archived changes, your receipts and anchor proofs. A record, not a verdict.
check_receiptread:receipts (keyless)Seven separate findings for an Apier receipt: signature, signing key, environment, log inclusion, anchor, format version and recorded result. There is no overall verdict.

More tools

ToolScopeWhat it returns
get_company_summaryread:brregSummary of one company's obligations and deadlines.
get_company_profileread:brregCompany profile from Enhetsregisteret: name, organisational form, NACE codes, addresses, status, role codes.
get_company_contextread:brregIdentity fields for one company from Enhetsregisteret.
get_company_obligationsread:brregApier Rulebook evaluation for one company, one entry per rule.
get_company_deadlinesread:brregFiling calendar for one company, a number of months ahead.
get_company_accountsread:brregAnnual accounts (årsregnskap) status and key figures from the open tier of Regnskapsregisteret.
get_company_historyread:brregWhat Apier's archive observed for a company on a past date, or what changed between two dates. The archive starts on 2026-07-30.
list_changesread:changesChange events Apier detected in the sources it polls, cursor-paginated.
get_public_obligationsread:rulebook (keyless)Generic obligations for a Norwegian entity type.
get_public_deadlinesread:rulebook (keyless)Norwegian business filing deadlines for a year.
explain_compliance_errorread:rulebook (keyless)Explanation of an Apier error_code: summary, cause and fix steps.
get_exchange_rateread:norgesbank (keyless)Norges Bank reference rate for a currency against NOK.
get_altinn_migration_guidanceread:digdir (keyless)Altinn 3 equivalent of an Altinn 2 service or role code.
get_pricingread:pricing (keyless)What each metered endpoint and tool costs.
get_credit_balanceread:creditsThe calling key's prepaid credit balance.
redeem_issuance_tokenread:onboarding (keyless)Exchanges a one-time token minted by the account owner for the agent's own API key.
searchread:brregThe search tool that OpenAI's connector specification names. Same data as search_companies.
fetchread:brregThe fetch tool that OpenAI's connector specification names. Returns the check bundle for a search result.
list_sandbox_scenariosread:brregThe sandbox scenarios for the mandate check (POST /v1/mandate/verify), each with the result the endpoint returns for it.

Tools marked keyless can be called without an API key. redeem_issuance_token needs no key either, but it takes the one-time issuance token as an argument. All other tool calls need a key with the listed scope, or a sandbox bearer where the tool has a sandbox mirror (see Sandbox with a self-invented bearer).

One more tool, submit_vat_return, is hidden: tools/list does not return it. It is a sandbox-only simulation and sends nothing to the government.

Connect

Hosted endpoint (Streamable HTTP)

Clients that speak remote MCP connect directly, with no install. The URL alone is a working config:

{
  "mcpServers": {
    "apier": { "url": "https://www.apier.no/api/mcp" }
  }
}

Discovery is keyless: initialize and tools/list work without credentials, and so do the keyless tools. Every other tool call needs an Apier API key (the sandbox bearer described below works for the tools that have a sandbox mirror). The hosted endpoint takes it as an Authorization: Bearer header; the npx proxy below reads it from APIER_API_KEY and sends the same header. https://www.apier.no/docs/authentication explains how to get a key.

With a key (some clients, Claude Code among them, also want the "type": "http" line):

{
  "mcpServers": {
    "apier": {
      "type": "http",
      "url": "https://www.apier.no/api/mcp",
      "headers": { "Authorization": "Bearer apr_free_<your_key_here>" }
    }
  }
}

Claude Code:

claude mcp add --scope user --transport http apier https://www.apier.no/api/mcp \
  --header "Authorization: Bearer apr_free_<your_key_here>"

npx stdio proxy (@apier-no/mcp)

For stdio-only clients, this package wraps mcp-remote. It reads APIER_API_KEY from your environment, removes it from the spawned child's environment, redacts it from stderr, and hands the bearer value over out-of-band so it never appears on the child's command line. Starting the proxy requires APIER_API_KEY.

Claude Desktop / Cursor (claude_desktop_config.json / ~/.cursor/mcp.json):

{
  "mcpServers": {
    "apier": {
      "command": "npx",
      "args": ["-y", "@apier-no/mcp"],
      "env": { "APIER_API_KEY": "apr_<tier>_<your_key_here>" }
    }
  }
}

VS Code (.vscode/mcp.json):

{
  "servers": {
    "apier": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@apier-no/mcp"],
      "env": { "APIER_API_KEY": "apr_<tier>_<your_key_here>" }
    }
  }
}

Zed (settings.json):

{
  "context_servers": {
    "apier": {
      "source": "custom",
      "command": "npx",
      "args": ["-y", "@apier-no/mcp"],
      "env": { "APIER_API_KEY": "apr_<tier>_<your_key_here>" }
    }
  }
}

Config files for each client are in examples/.

Configuration

VariableRequiredDefault
APIER_API_KEYyesnone
--endpoint <url>nohttps://www.apier.no/api/mcp
MCP_REMOTE_CONFIG_DIRno~/.mcp-auth

Sandbox with a self-invented bearer

The proxy forwards whatever bearer you give it and never inspects the key's shape. Without a real key there are two sandbox paths beyond the public one above. Both are served from synthetic fixtures and never from a government register.

  • Direct HTTP to the sandbox mirror under /api/v1/sandbox/ on apier.no. It expects a self-invented bearer, apier_sandbox_test_<suffix> (any suffix of 1–64 characters from A-Za-z0-9_-). The server recognises the prefix and answers with fixtures. There is no signup and no key store behind it.
  • The same sandbox bearer on the hosted MCP endpoint. Send Authorization: Bearer apier_sandbox_test_<suffix> and the fixture-backed company tools are routed to the sandbox mirror, with _meta.is_sandbox: true on every result. Because this proxy forwards the bearer unchanged, setting APIER_API_KEY to such a value lets a stdio client rehearse those tools against fixtures.

Under a sandbox bearer the hosted endpoint routes these tools to fixtures: get_company_summary, get_company_context, get_company_obligations, get_company_deadlines, get_company_verification, get_company_authority, get_company_accounts, get_company_evidence_pack, get_company_history, explain_compliance_error and list_sandbox_scenarios. Six keyed tools have no sandbox mirror and answer SANDBOX_TOOL_UNAVAILABLE: get_company_profile, search_companies, search, fetch, list_changes and get_credit_balance. The other keyless tools run their normal keyless path, except redeem_issuance_token, which also answers SANDBOX_TOOL_UNAVAILABLE.

List the sandbox test data (no auth):

curl -sL https://apier.no/api/v1/sandbox/fixtures

Verify the bankrupt fixture company with a self-invented bearer. Here bash's $RANDOM supplies the suffix. This call goes to the www host directly, because the redirect from apier.no to www.apier.no makes curl drop the Authorization header.

curl -s -H "Authorization: Bearer apier_sandbox_test_$RANDOM" https://www.apier.no/api/v1/sandbox/company/999660010/verify

Trimmed response (… marks omitted fields):

{"success":true,"data":{"org_number":"999660010","name":"Sandbox Konkurs AS",
  "verification_status":"fail",
  "signals":{"is_active":false,"not_bankrupt":false, …},
  "summary":"Selskapet er ikke aktivt registrert i Enhetsregisteret.", …}}

A real API key is apr_<tier>_… and comes from signup via https://www.apier.no/docs/authentication. The apier_sandbox_test_ bearer is self-generated and needs no signup.

When not to use Apier

  • Apier returns the register's own coding of signing rules, uninterpreted. It gives no yes or no on whether a person may sign for a given action. Your agent applies the rules.
  • It is not AML, PEP or sanctions screening.
  • It is not legal advice.
  • Sandbox data is fictional. A sandbox answer says nothing about a real company.
  • It does not submit filings to the government and does not read Altinn rights or delegations. Those capabilities were withdrawn on 2026-10-21 and answer HTTP 410 CAPABILITY_WITHDRAWN.

Security

  • APIER_API_KEY is read by the parent process and scrubbed from the spawned child's environment, and stderr is passed through a redactor that strips Bearer …, bare apr_<tier>_… keys and apr_issue_… key-issuance tokens, the legacy apier_(live|test)_… shape, ghp_…, and Authorization: substrings.
  • The key never appears in the child's command line. The --header argument carries only the placeholder Authorization:${APIER_MCP_AUTH_HEADER}; the bearer value is passed out-of-band in that variable and expanded by mcp-remote at request time. Command lines are world-readable on Linux (/proc/<pid>/cmdline), process environments are not, so the key is not readable by other local users (#33, fixed in 1.2.0). An attacker already running as you can still read the environment; see SECURITY.md.
  • Non-https endpoints are rejected before spawn; mcp-remote is exact-pinned and releases are published with npm provenance via GitHub Actions Trusted Publishing (OIDC).
  • Treat client config files (claude_desktop_config.json, .cursor/mcp.json, …) like .env files. Never commit them with a real key.

Full threat model and disclosure policy: SECURITY.md.

Links

License

MIT. See LICENSE.