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

@stackit-mcp/partner

v0.2.0

Published

MCP server for the STACKIT Partner Portal (Customer Relations).

Downloads

51

Readme

@stackit-mcp/partner

MCP server for the STACKIT Partner Portal — lets Claude query customer relations and cost data directly from the conversation.

License: MIT Node.js


Features

  • Customer list with costs — list price, discount, and net per customer for any date range
  • Project breakdown — all projects per customer, sorted by spend
  • Live partnership names — resolved from the STACKIT Partner API, no manual mapping
  • Browser-based login — PKCE OAuth flow, no credentials in code or config files
  • Token persistence — refresh token keeps sessions alive across restarts

Installation

Prerequisites

  • Node.js ≥ 18
  • A STACKIT Partner Portal account with reseller access
  • Your partner organization ID (visible in the Partner Portal URL)

Via Claude Code CLI

claude mcp add stackit-partner -- npx -y @stackit-mcp/partner@latest

Then set your org ID in ~/.claude.json:

"stackit-partner": {
  "type": "stdio",
  "command": "npx",
  "args": ["-y", "@stackit-mcp/partner@latest"],
  "env": {
    "STACKIT_PARTNER_ORG_ID": "<your-partner-org-id>"
  }
}

The org ID is read from the environment at runtime — never stored in the repository.

From source

git clone https://github.com/thosor87/stackit-mcp.git
cd stackit-mcp/partner
npm install && npm run build

Point your MCP client at the local build:

"stackit-partner": {
  "type": "stdio",
  "command": "node",
  "args": ["/absolute/path/to/partner/dist/index.js"],
  "env": {
    "STACKIT_PARTNER_ORG_ID": "<your-partner-org-id>"
  }
}

Authentication

The server uses the public STACKIT CLI OAuth client with PKCE — the same flow as the STACKIT CLI itself. No client secret required.

First use:

auth_login

A browser window opens to accounts.stackit.cloud. After login, the token is cached at ~/.cache/stackit-mcp/partner-auth.json (mode 600). A refresh token keeps the session alive without repeated logins.

Tools:

| Tool | Description | |---|---| | auth_login | Open browser login, cache the token | | auth_logout | Clear the cached token | | auth_set_token | Manually set a Bearer token (fallback) |


Tools

list_customers

Returns all customer organizations with cost data for a given period.

Parameters:

| Parameter | Type | Default | Description | |---|---|---|---| | from | string | First day of previous month | Start date YYYY-MM-DD | | to | string | Last day of previous month | End date YYYY-MM-DD | | granularity | daily | monthly | monthly | Cost granularity |

Response per customer:

{
  "customer_account_id": "uuid",
  "name": "Organization Name",
  "partnership_status": "ACTIVE",
  "list_eur": 12345.67,
  "discount_eur": 7654.32,
  "net_eur": 4691.35,
  "discount_pct": 62.0,
  "project_count": 8,
  "top_project": "project-name-prod",
  "projects": ["project-name-prod", "project-name-dev", "..."]
}

Field semantics per STACKIT API spec:

  • list_eur — gross list price before discounts (totalCharge + totalDiscount)
  • discount_eur — discount amount applied (totalDiscount)
  • net_eur — what the customer actually pays (totalCharge, already "including discounts" per spec)
  • discount_pct — discount as % of list price

Customers are sorted by list_eur descending. Names are resolved live from the STACKIT Partner API — no local mapping file needed.


APIs used

| API | Endpoint | Purpose | |---|---|---| | cost.api.stackit.cloud | GET /v3/costs/{orgId}/customers | Project-level cost data | | partner.api.stackit.cloud | GET /v1/partners/{orgId}/partnerships | Customer names and partnership status | | accounts.stackit.cloud | OIDC / token endpoint | Authentication |

Token cache: ~/.cache/stackit-mcp/partner-auth.json


Development

npm run build   # compile TypeScript
npm test        # run vitest tests

License

MIT — see LICENSE.