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

@wanadev/pennylane-mcp

v0.2.0

Published

MCP server for the Pennylane v2 API — auto-generated from the official OpenAPI spec.

Readme

pennylane-mcp

MCP server for the Pennylane v2 API, auto-generated from the official OpenAPI spec. Exposes 165 tools covering customers, invoices, suppliers, products, transactions, ledger entries, journals, quotes, categories, and more.

Install & run

Requires Node.js 18.17+.

From npm (once published)

npx -y @wanadev/pennylane-mcp

From source

git clone <this-repo> && cd pennylane-mcp
npm install   # runs `npm run generate && npm run build` via prepare
node build/server.js

Authentication

The server resolves the API key in this order:

  1. PENNYLANE_API_KEY environment variable
  2. --apiKey <key> CLI flag

Generate a Company API token at https://pennylane.readme.io/docs/generating-my-api-token.

Use with Claude Desktop

Edit your Claude Desktop config:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "pennylane": {
      "command": "npx",
      "args": ["-y", "@wanadev/pennylane-mcp"],
      "env": {
        "PENNYLANE_API_KEY": "your-token-here"
      }
    }
  }
}

Restart Claude Desktop and the Pennylane tools will appear under the hammer icon.

Tool naming

Each operation in the OpenAPI spec becomes a tool named pennylane_<operationId_in_snake_case>. Examples:

| Tool | Endpoint | | ----------------------------------- | ------------------------------------------ | | pennylane_get_me | GET /me | | pennylane_get_customers | GET /customers | | pennylane_get_customer | GET /customers/{id} | | pennylane_post_company_customer | POST /company_customers | | pennylane_get_customer_invoices | GET /customer_invoices | | pennylane_finalize_customer_invoice | POST /customer_invoices/{id}/finalize | | pennylane_get_supplier_invoices | GET /supplier_invoices | | pennylane_get_products | GET /products | | pennylane_get_trial_balance | GET /trial_balance |

List endpoints accept cursor and limit for cursor-based pagination.

Development

npm run sync:openapi   # re-fetch openapi/accounting.json from pennylane.readme.io
npm run generate       # regenerate src/generated/tools.ts from the OpenAPI
npm run build          # compile TypeScript → build/
npm run dev            # run the server with tsx (no compile step)

src/generated/tools.ts is git-ignored — it's a build artifact regenerated by the prepare script.

Architecture

src/
├── server.ts          MCP server entry-point (CLI, stdio transport, signals)
├── client.ts          Axios-based Pennylane client (Bearer auth, error wrapping)
├── auth.ts            Resolves API key from env / CLI flag
└── generated/
    └── tools.ts       165 registerTool() calls, generated from OpenAPI

scripts/
├── sync-openapi.ts    Re-fetch the OpenAPI spec
└── generate-tools.ts  OpenAPI → src/generated/tools.ts

openapi/
└── accounting.json    Vendored OpenAPI 3.0 spec (1.9 MB, 120 paths, 165 ops)

Limits

  • Rate limits: Pennylane caps requests at 4/s globally and 2/s on customer_invoices. The server does not throttle; rapid loops may hit 429 Too Many Requests.
  • File downloads: endpoints returning binary data (e.g. invoice PDFs) currently return the raw response as a JSON-stringified blob. A proper MCP resource mapping is a follow-up.
  • OAuth2: only static API keys are supported. OAuth2 flows are a follow-up.

License

MIT