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

ifirma-mcp-server

v1.0.0

Published

MCP server for the iFirma.pl Polish accounting API

Readme

ifirma-mcp-server

npm version License: MIT

MCP server for the iFirma.pl Polish accounting API. Enables AI assistants (Claude, Cursor, Windsurf) to manage invoices, expenses, contractors, and more through natural language.

Setup

Claude Code

claude mcp add ifirma \
  -e [email protected] \
  -e IFIRMA_API_KEY_INVOICE=hex_key_faktura \
  -e IFIRMA_API_KEY_EXPENSE=hex_key_wydatek \
  -e IFIRMA_API_KEY_ACCOUNT=hex_key_abonent \
  -e IFIRMA_API_KEY_RECEIPT=hex_key_rachunek \
  -- npx -y ifirma-mcp-server

Other MCP clients

Run via npx -y ifirma-mcp-server with the environment variables below.

API Keys

  1. Log in to ifirma.pl
  2. Go to Settings > API
  3. Generate keys for: Faktura, Wydatek, Abonent
  4. Copy the hex keys into environment variables

Environment Variables

| Variable | Required | Description | |---|---|---| | IFIRMA_USERNAME | Yes | iFirma login (email) | | IFIRMA_API_KEY_INVOICE | No* | API key for invoices (faktura) | | IFIRMA_API_KEY_EXPENSE | No* | API key for expenses (wydatek) | | IFIRMA_API_KEY_ACCOUNT | No* | API key for account operations (abonent) | | IFIRMA_API_KEY_RECEIPT | No* | API key for receipts (rachunek) | | IFIRMA_DRY_RUN | No | Test mode — logs requests without sending |

* At least one API key is required.

Available Tools

Invoices (faktura key)

| Tool | Description | |---|---| | list_invoices | List issued invoices with filters | | create_domestic_invoice | Domestic VAT invoice | | create_domestic_invoice_non_vat | Domestic invoice for non-VAT payers | | create_proforma | Proforma invoice | | create_export_invoice | Export invoice | | create_wdt_invoice | Intra-community supply (WDT) invoice | | create_eu_service_invoice | EU service invoice (art. 28b) | | create_foreign_currency_invoice | Foreign currency invoice | | create_correction_invoice | Correction invoice | | create_receipt_invoice | Receipt invoice (faktura do paragonu) | | create_oss_invoice | One Stop Shop invoice | | create_ioss_invoice | Import One Stop Shop invoice | | send_invoice_email | Send invoice by email | | send_invoice_post | Send invoice via postal mail | | send_invoice_ksef | Submit invoice to KSeF |

Contractors (faktura key)

| Tool | Description | |---|---| | search_contractors | Search by name or NIP | | get_contractor | Contractor details by ID | | create_contractor | Add new contractor | | update_contractor | Update contractor (requires all fields) |

Payments (faktura key)

| Tool | Description | |---|---| | register_payment | Register payment against an invoice |

VAT Rates (faktura key)

| Tool | Description | |---|---| | get_eu_vat_rates | EU VAT rates by country code |

Expenses (wydatek key)

| Tool | Description | |---|---| | create_cost_expense | Business cost with VAT invoice | | create_goods_purchase_expense | Goods/materials purchase | | create_other_cost_expense | Non-invoice cost (receipt, contract, etc.) | | create_telecom_expense | Phone/internet expense |

Account (abonent key)

| Tool | Description | |---|---| | get_accounting_month | Current accounting month | | set_accounting_month | Change accounting month | | get_api_limits | Check API rate limits |

Orders (abonent key)

| Tool | Description | |---|---| | create_order | Create e-commerce order |

HR (abonent key)

| Tool | Description | |---|---| | manage_employee_questionnaire | Employee personal questionnaire |

Development

git clone https://github.com/adriandmitroca/ifirma-mcp-server.git
cd ifirma-mcp-server
npm install
npm run dev
npm test                           # Unit tests (no API access needed)
IFIRMA_DRY_RUN=true npm run dev    # Dry-run mode

See CONTRIBUTING.md for more details.

License

MIT