npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

danskcvrapi-mcp

v1.0.0

Published

Official MCP server for DanskCvrApi — gives AI agents (Claude Desktop, Claude Code, Cursor, etc.) tools to look up Danish companies, financials, industries and statistics from the CVR register.

Downloads

166

Readme

danskcvrapi-mcp

Official MCP server (Model Context Protocol) for DanskCvrApi — gives AI agents such as Claude Desktop, Claude Code and Cursor direct access to Danish company data from the CVR register.

The agent can look up companies, search, fetch financial statements, production units, persons and statistics — without writing a single API call.

Prerequisites

An API key from https://danskcvrapi.dk/dashboard/keys (Hobby plan is free: 1,000 calls/month).

Setup

Claude Desktop / Cursor / Windsurf

Add to your MCP config (claude_desktop_config.json, ~/.cursor/mcp.json, …):

{
  "mcpServers": {
    "danskcvrapi": {
      "command": "npx",
      "args": ["-y", "danskcvrapi-mcp"],
      "env": {
        "DANSKCVRAPI_KEY": "sk_live_your_key_here"
      }
    }
  }
}

Claude Code (CLI)

claude mcp add danskcvrapi \
  --env DANSKCVRAPI_KEY=sk_live_your_key_here \
  -- npx -y danskcvrapi-mcp

Configuration (env)

| Variable | Required | Description | |---|---|---| | DANSKCVRAPI_KEY | yes | API key (Bearer). | | DANSKCVRAPI_URL | no | Override base URL (default https://api.danskcvrapi.dk). |

Tools

27 tools across 7 categories:

Lookup & Search

  • get_company — full company object by CVR number
  • search_companies — full-text search by name / CVR / P-number
  • autocomplete_companies — fast as-you-type suggestions
  • advanced_search — 40+ filters for lead generation and segmentation (Pro+)
  • batch_get_companies — look up up to 100 companies at once (Pro+)
  • get_companies_by_address — find companies at a given address
  • compare_companies — side-by-side comparison of 2-5 companies
  • validate_cvr — offline modulus-11 validation (no API call)

Company Sub-Resources

  • get_company_group — ownership graph: owners and subsidiaries
  • get_company_roles — management and ownership roles
  • get_company_history — change history (name, address, industry, status)
  • get_company_production_units — all P-numbers / branches
  • get_company_financial_statements — XBRL annual reports (Pro+)

Production Units & Persons

  • get_production_unit — single production unit by P-number
  • get_person — person with all company affiliations
  • search_persons — search persons by name

Credit Score

  • get_credit_score — computed credit score and financial health rating (Pro+)

Statistics

  • get_stats_totals — overall register key figures
  • get_stats_top — top lists (e.g. largest industries)
  • get_stats_by_industry — company count by industry (DB07)
  • get_stats_by_municipality — company count by municipality
  • get_stats_by_postal_code — company count by postal code
  • get_stats_by_company_type — company count by legal form
  • get_stats_foundations_per_year — new foundations per year
  • get_net_growth — net growth (foundations minus dissolutions) over time (Pro+)

Replication

  • get_replication_events — change feed for data warehouse sync
  • get_latest_sequence_number — current cursor position in the event feed

Reference Data

  • list_industries — DB07 industry codes with names
  • list_municipalities — all Danish municipalities with codes
  • list_regions — five Danish regions with codes
  • explain_field — plain-text explanation of any CVR/financial field

Every call respects your key's scopes and plan limits exactly as the REST API does.

Example

You (to Claude): "Find Novo Nordisk in CVR and tell me their status, industry and latest employee count."

Claude calls search_companies + get_company and responds with structured data.

You: "Show me all active software companies in Copenhagen with 10-50 employees."

Claude calls advanced_search with the appropriate filters.

API Paths

All tools call https://api.danskcvrapi.dk/v1/…:

| Tool | Endpoint | |---|---| | get_company | GET /companies/{cvr} | | search_companies | GET /companies/search | | autocomplete_companies | GET /companies/autocomplete | | advanced_search | GET /search/advanced | | batch_get_companies | POST /companies/batch | | get_companies_by_address | GET /companies/by-address | | get_company_group | GET /companies/{cvr}/group | | get_company_roles | GET /companies/{cvr}/roles | | get_company_history | GET /companies/{cvr}/history | | get_company_production_units | GET /companies/{cvr}/production-units | | get_company_financial_statements | GET /companies/{cvr}/financial-statements | | get_production_unit | GET /production-units/{pnummer} | | get_person | GET /persons/{id} | | search_persons | GET /persons/search | | get_credit_score | GET /credit-score/{cvr} | | get_stats_totals | GET /stats/totals | | get_stats_top | GET /stats/top | | get_stats_by_industry | GET /stats/industries | | get_stats_by_municipality | GET /stats/municipalities | | get_stats_by_postal_code | GET /stats/postal-codes | | get_stats_by_company_type | GET /stats/company-types | | get_stats_foundations_per_year | GET /stats/foundations-per-year | | get_net_growth | GET /search/net-growth | | get_replication_events | GET /replication/companies/events | | get_latest_sequence_number | GET /replication/companies/latest-sequence-number | | list_industries | GET /industries | | list_municipalities | GET /municipalities | | list_regions | GET /regions |

Links

License

MIT