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

mcp-invoice-excel

v1.1.1

Published

MCP server for generating Excel invoices from input data

Readme

MCP Invoice Excel

The Universal MCP Server for generating Excel invoices from structured data input.

Installation

Prerequisites

  • Node.js 18+
  • Set MCP_INVOICE_EXCEL_API_KEY in your environment (if using external services)

Get an API key

  • This server operates locally and doesn't require external API keys
  • Skip this step for basic invoice generation

Install from npm (Recommended)

npm install -g mcp-invoice-excel

Build locally (Development)

cd /path/to/mcp-invoice-excel
npm i
npm run build

Setup: Claude Code (CLI)

Use this one-liner (replace with your real values):

claude mcp add "mcp-invoice-excel" -s user -- npx mcp-invoice-excel

To remove:

claude mcp remove "mcp-invoice-excel"

Setup: Cursor

Create .cursor/mcp.json in your client (do not commit it here):

{
  "mcpServers": {
    "mcp-invoice-excel": {
      "command": "npx",
      "args": ["mcp-invoice-excel"],
      "env": {},
      "autoStart": true
    }
  }
}

Other Clients and Agents

Install via URI or CLI:

code --add-mcp '{"name":"mcp-invoice-excel","command":"npx","args":["mcp-invoice-excel"],"env":{}}'

Follow the MCP install guide and reuse the standard config above.

  • Command: npx
  • Args: ["mcp-invoice-excel"]
  • Env: {}
  • Type: STDIO
  • Command: npx
  • Args: mcp-invoice-excel
  • Enabled: true

Example ~/.config/opencode/opencode.json:

{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "mcp-invoice-excel": {
      "type": "local",
      "command": ["npx", "mcp-invoice-excel"],
      "enabled": true
    }
  }
}

Add a new MCP and paste the standard JSON config.

See docs and reuse the standard config above.

Setup: Codex (TOML)

Example (Serena):

[mcp_servers.serena]
command = "uvx"
args = ["--from", "git+https://github.com/oraios/serena", "serena", "start-mcp-server", "--context", "codex"]

This server (minimal):

[mcp_servers.mcp-invoice-excel]
command = "npx"
args = ["mcp-invoice-excel"]
# Optional:
# MCP_NAME = "mcp-invoice-excel"

Configuration (Env)

  • MCP_NAME: Server name override (default: mcp-invoice-excel)
  • No API keys required for local invoice generation

Available Tools

create_invoice

  • Description: Create an Excel invoice with specified data
  • Inputs:
    • invoiceData (object, required):
      • invoiceNumber (string, required)
      • issueDate (string, required) - Format: YYYY-MM-DD
      • dueDate (string, optional) - Format: YYYY-MM-DD
      • sender (object, required):
        • companyName (string, required)
        • address (string, optional)
        • phone (string, optional)
        • email (string, optional)
        • taxId (string, optional)
      • recipient (object, required):
        • companyName (string, required)
        • address (string, optional)
        • phone (string, optional)
        • email (string, optional)
        • taxId (string, optional)
      • items (array, required):
        • description (string, required)
        • quantity (number, required)
        • unitPrice (number, required)
        • taxRate (number, optional) - Tax rate as decimal (e.g., 0.1 for 10%)
      • paymentMethod (string, optional)
      • bankAccount (string, optional)
      • notes (string, optional)
    • outputPath (string, required) - Path where the Excel file should be saved
  • Output: Success message with file path and invoice details

create_invoice_from_template

  • Description: Create an invoice by filling an existing Excel template
  • Inputs:
    • templatePath (string, required) - Path to the Excel template file
    • invoiceData (object, required) - Same structure as create_invoice
    • outputPath (string, required) - Path where the filled Excel file should be saved
  • Output: Success message with template and output paths

analyze_template

  • Description: Analyze an Excel template to understand its structure
  • Inputs:
    • templatePath (string, required) - Path to the Excel template file to analyze
  • Output: Analysis results including worksheets, placeholders, and structure

fill_japanese_template ⭐ Perfect Template Reproduction

  • Description: Fill a Japanese invoice template with 100% perfect formatting preservation using revolutionary file cloning technology
  • Features:
    • 🎯 100% Perfect Reproduction - Exact template formatting preserved (fonts, colors, borders, cell sizes)
    • 🇯🇵 Japanese Business Ready - Full support for Japanese text, dates, and business formats
    • 🧮 Formula Preservation - All Excel formulas remain intact and functional
    • 🚀 High Performance - File cloning approach for efficient processing
  • Inputs:
    • templatePath (string, required) - Path to the Japanese Excel template file
    • invoiceData (object, required):
      • invoiceNumber (string, required) - Invoice number
      • issueDate (string, required) - Issue date (YYYY-MM-DD)
      • dueDate (string, optional) - Due date (YYYY-MM-DD)
      • companyName (string, required) - Your company name
      • companyPostal (string, optional) - Your company postal code (e.g., 〒111-0000)
      • companyAddress (string, optional) - Your company address (use \n for line breaks)
      • companyEmail (string, optional) - Your company email
      • clientName (string, required) - Client company name
      • clientPostal (string, optional) - Client postal code (e.g., 〒111-2222)
      • clientAddress (string, optional) - Client address (use \n for line breaks)
      • bankAccount (string, optional) - Bank account information for payment
      • bankName (string, optional) - Account holder name
      • items (array, required):
        • description (string, required) - Item description
        • quantity (number, required) - Quantity
        • unitPrice (number, required) - Unit price
        • taxRate (number, optional) - Tax rate as decimal (e.g., 0.1 for 10%)
      • notes (string, optional) - Additional notes
    • outputPath (string, required) - Path where the filled Excel file should be saved
  • Output: Success message with perfect template reproduction confirmation

Example invocations (MCP tool calls)

Standard Invoice Creation

{
  "tool": "create_invoice",
  "arguments": {
    "invoiceData": {
      "invoiceNumber": "INV-2025-001",
      "issueDate": "2025-01-21",
      "dueDate": "2025-02-21",
      "sender": {
        "companyName": "Your Company Inc.",
        "address": "123 Business St, City, State 12345",
        "phone": "+1-234-567-8900",
        "email": "[email protected]",
        "taxId": "12-3456789"
      },
      "recipient": {
        "companyName": "Client Corp.",
        "address": "456 Client Ave, City, State 54321",
        "email": "[email protected]"
      },
      "items": [
        {
          "description": "Consulting Services - January 2025",
          "quantity": 40,
          "unitPrice": 150,
          "taxRate": 0.1
        },
        {
          "description": "Software License",
          "quantity": 1,
          "unitPrice": 500,
          "taxRate": 0.1
        }
      ],
      "paymentMethod": "Bank Transfer",
      "bankAccount": "Account: 1234567890, Routing: 987654321",
      "notes": "Thank you for your business!"
    },
    "outputPath": "/path/to/invoice_2025_001.xlsx"
  }
}

Perfect Japanese Template Reproduction ⭐

{
  "tool": "fill_japanese_template",
  "arguments": {
    "templatePath": "/path/to/japanese_invoice_template.xlsx",
    "invoiceData": {
      "invoiceNumber": "INV-2025-001",
      "issueDate": "2025-01-22",
      "dueDate": "2025-02-28",
      "companyName": "株式会社サンプル",
      "companyPostal": "〒150-0002",
      "companyAddress": "東京都渋谷区渋谷2-21-1\nヒカリエ15F",
      "companyEmail": "[email protected]",
      "clientName": "クライアント株式会社",
      "clientPostal": "〒100-0005",
      "clientAddress": "東京都千代田区丸の内1-9-1\nグラントウキョウサウスタワー8F",
      "bankAccount": "みずほ銀行 渋谷支店(002) 普通 1234567",
      "bankName": "カブシキガイシャサンプル",
      "items": [
        {
          "description": "ウェブサイト開発",
          "quantity": 1,
          "unitPrice": 500000
        },
        {
          "description": "システム保守・運用",
          "quantity": 3,
          "unitPrice": 100000
        }
      ],
      "notes": "お振込み確認後、作業開始とさせていただきます。"
    },
    "outputPath": "/path/to/perfect_japanese_invoice.xlsx"
  }
}

Key Features

🎯 Perfect Template Reproduction (v1.1.0+)

  • Revolutionary file cloning technology ensures 100% exact template formatting preservation
  • Zero formatting drift - your template's appearance is perfectly maintained
  • Japanese business ready with full support for Japanese text, dates, and business formats
  • Formula preservation - all Excel calculations remain intact and functional

🛠️ Multiple Invoice Creation Methods

  • create_invoice - Generate invoices from scratch with standard formatting
  • create_invoice_from_template - Fill existing templates with placeholder replacement
  • fill_japanese_template - Perfect reproduction for Japanese business templates
  • analyze_template - Understand your template structure before filling

Troubleshooting

  • Ensure Node 18+ is installed
  • Local runs: npx mcp-invoice-excel after npm run build
  • Inspect publish artifacts: npm pack --dry-run
  • For template analysis, provide the path to your Excel template file
  • For perfect Japanese template reproduction, use fill_japanese_template tool

References

  • MCP SDK: https://modelcontextprotocol.io/docs/sdks
  • Architecture: https://modelcontextprotocol.io/docs/learn/architecture
  • Server Concepts: https://modelcontextprotocol.io/docs/learn/server-concepts
  • Specification: https://modelcontextprotocol.io/specification/2025-06-18/server/index

Name Consistency & Troubleshooting

  • Always use CANONICAL_ID (mcp-invoice-excel) for identifiers and keys.
  • Use CANONICAL_DISPLAY (MCP Invoice Excel) only for UI labels.
  • Do not mix legacy keys after registration.

Consistency Matrix:

  • npm package name → mcp-invoice-excel
  • Binary name → mcp-invoice-excel
  • MCP server name (SDK metadata) → mcp-invoice-excel
  • Env default MCP_NAME → mcp-invoice-excel
  • Client registry key → mcp-invoice-excel
  • UI label → MCP Invoice Excel

Conflict Cleanup:

  • Remove any stale keys (e.g., old display names) and re-add with mcp-invoice-excel only.
  • Cursor: configure in the UI; this project intentionally omits .cursor/mcp.json.