{"success":true,"data":{"slug":"mcp-server-overview","title":"The Apier MCP server","jurisdiction":"Norway","summary":"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.","body":[{"heading":"Why an MCP server","content":"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."},{"heading":"Tool naming and discovery","content":"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."},{"heading":"Authentication and the keyless eight","content":"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."},{"heading":"Read vs write tools","content":"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"],"notes":"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":[{"code":"SCOPE_INSUFFICIENT","meaning":"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)."},{"code":"SANDBOX_TOOL_UNAVAILABLE","meaning":"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_apis":["company.summary","company.search","tools.explain"],"related_topics":["authentication-overview","sandbox-testing","brreg-company-search"],"related_mcp_tools":["search_companies","get_company_summary","get_company_verification","explain_compliance_error","submit_vat_return"],"last_verified":"2026-12-01","source_authority":"Apier / Model Context Protocol","source_url":"https://modelcontextprotocol.io","schema_version":"1.0.0"},"_meta":{"rulebook_version":"1.0.0","data_freshness":"2026-12-01T00:00:00.000Z","last_verified":"2026-12-01T00:00:00.000Z","source":"apier.no","schema_version":"1.0.0","response_timestamp":"2026-12-03T00:31:42.931Z","data_source":"Apier / Model Context Protocol","response_hash":"sha256:5714d5ceb4118bc075eca4838ee2cf9be7209e738f89084242cdd0fd86ef0e08"}}