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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@rikukawa/invoice-parser-mcp

v1.0.0

Published

MCP server for parsing invoices and saving to Google Sheets

Downloads

53

Readme

Invoice Parser MCP Server

Claude用のMCPサーバーで、請求書PDFから抽出したデータをGoogle Sheetsに自動転記します。

機能

  • Claudeが請求書PDFから抽出した以下の情報をGoogle Sheetsに保存
    • 請求日(オプション)
    • 請求元(オプション)
    • 請求項目と金額

セットアップ

  1. Google Cloud Projectの設定

    • Google Cloud Consoleで新しいプロジェクトを作成
    • Google Sheets APIを有効化
    • サービスアカウントを作成し、JSONキーをダウンロード
    • ダウンロードしたJSONキーをcredentials.jsonとして保存
  2. インストールと設定

# 依存パッケージのインストール
npm install

# ビルド
npm run build
  1. MCP設定ファイルの更新
{
  "mcpServers": {
    "invoice-parser": {
      "command": "node",
      "args": ["/path/to/invoice-parser/build/index.js"],
      "env": {
        "GOOGLE_CREDENTIALS_PATH": "/path/to/credentials.json",
        "SPREADSHEET_ID": "your-spreadsheet-id"
      },
      "disabled": false,
      "alwaysAllow": []
    }
  }
}

使用方法

  1. Claudeに請求書PDFをアップロード
  2. 以下のようにMCPツールを使用してデータを保存
await use_mcp_tool({
  server_name: "invoice-parser",
  tool_name: "save_to_sheet",
  arguments: {
    items: [
      { item: "商品A", amount: 1000 },
      { item: "商品B", amount: 2000 }
    ],
    invoiceDate: "2023年10月1日",    // オプション
    sender: "株式会社〇〇"           // オプション
  }
});

スプレッドシートの形式

  • ヘッダー行(1行目)

    • A1: 請求日
    • B1: 請求元
    • C1: 項目
    • D1: 金額
  • データ行(2行目以降)

    • 1つ目の項目: すべての情報(請求日、請求元、項目、金額)
    • 2つ目以降の項目: 項目と金額のみ(請求日と請求元は空欄)

開発

# 開発用ビルド(ファイル変更の監視)
npm run dev

# 本番用ビルド
npm run build