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

@onereason/svenska-dagar-mcp

v0.1.4

Published

MCP server for the Swedish public holiday and calendar API (sholiday.faboul.se)

Readme

@onereason/svenska-dagar-mcp

MCP server exposing the Swedish public holiday and calendar API (sholiday.faboul.se) to Claude and other MCP clients.

Installation

Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json):

{
  "mcpServers": {
    "svenska-dagar": {
      "command": "npx",
      "args": ["-y", "@onereason/svenska-dagar-mcp"]
    }
  }
}

Restart Claude Desktop. The three tools below are then available in every conversation.

For Codex, add the server to your Codex config (~/.codex/config.toml):

[mcp_servers.svenska-dagar]
command = "npx"
args = ["-y", "@onereason/svenska-dagar-mcp"]

Tools

get_swedish_day

Returns calendar data for a single date.

| Parameter | Type | Description | |-----------|------|-------------| | year | integer | Year (1753–2100) | | month | integer | Month (1–12) | | day | integer | Day of month (1–31) | | sanitize | boolean | See Security — default true |

get_swedish_month

Returns calendar data for every day in a month.

| Parameter | Type | Description | |-----------|------|-------------| | year | integer | Year (1753–2100) | | month | integer | Month (1–12) | | sanitize | boolean | Default true |

get_swedish_year

Returns calendar data for every day in a year (~365 records). Prefer get_swedish_month when only a subset is needed.

| Parameter | Type | Description | |-----------|------|-------------| | year | integer | Year (1753–2100) | | sanitize | boolean | Default true |

Response fields

Each day record contains:

| Field | Type | Description | |-------|------|-------------| | datum | string | Date (YYYY-MM-DD) | | veckodag | string | Weekday name in Swedish | | vecka | string | ISO week number | | dag i vecka | string | Day of week (1 = Monday) | | arbetsfri dag | "Ja" | "Nej" | Work-free day | | röd dag | "Ja" | "Nej" | Public holiday (red day) | | namnsdag | string[] | Name days (namnsdagar) | | flaggdag | string | Flag day name, or "" | | helgdag | string | Holiday or named eve (e.g. "Juldagen", "Nyårsafton") — present only when applicable | | helgdagsafton | string | Eve before a red day (e.g. "Pingstafton") — present only when applicable | | klämdagen | "Ja" | Squeeze day (klämdagen) — present only when applicable | | dag före arbetsfri helgdag | "Ja" | Day before a work-free holiday — present only when applicable |

Security

All responses are sanitized before reaching the LLM by default:

  • Field allowlist — unknown fields are dropped
  • Injection scan — string values are checked against known prompt-injection patterns (ChatML tokens, role prefixes, markdown headers, etc.) and replaced with [redacted: suspicious content] if matched
  • Length cap — strings longer than 100 characters are redacted
  • Enum coercion"röd dag" and "arbetsfri dag" are coerced to exactly "Ja" or "Nej"
  • Hardcoded flags — presence-only fields (klämdagen, dag före arbetsfri helgdag) are always written as "Ja" regardless of what the API sends
  • Non-object responses — if the upstream returns a string, array, or any non-object, an empty safe structure is returned instead of passing through raw content

Pass sanitize: false to receive the raw upstream response (useful for debugging).

Development

npm install        # install dependencies
npm run build      # compile TypeScript → dist/
npm test           # run unit + integration tests (requires network for API tests)

Running the server requires Node.js ≥ 18 (native fetch).
Running the tests requires Node.js ≥ 22.6 (--experimental-strip-types).

License

MIT