mcpField
发
发票pdf转excel台账 Mcp 服务器

发票pdf转excel台账 Mcp 服务器

Local
github.com/zzmtechFiles & Storage1Updated 78w ago

About 发票pdf转excel台账 Mcp 服务器

This MCP server extracts invoice data from PDF files and creates Excel spreadsheets from JSON files. It is intended for invoice processing and ledger preparation, with failed or unreadable files skipped and recorded.

Key features

  1. 01Extract invoice data from PDFs
  2. 02Validate PDF file format
  3. 03Create Excel files from multiple JSON files
  4. 04Skip invalid files and record failure reasons
  5. 05Set a custom output path

Use cases

  1. 01Extract data from PDF invoices
  2. 02Compile JSON invoice data into an Excel ledger
  3. 03Process a directory while noting files that fail

MCP support

Exposes tools to MCP clients for extracting invoice information from PDFs and generating Excel files from JSON files. Invoice extraction requires an API key, provided through an environment variable or tool argument.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"invoicemcpserver": {
"command": "npx",
"args": [
"-y",
"@ai28mcp/invoicemcpserver"
],
"env": {
"INVOICE_API_KEY": "<INVOICE_API_KEY>"
}
}
}
}
Run commandnpx -y @ai28mcp/invoicemcpserver
Environment variables to set
INVOICE_API_KEYSecret

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npm@ai28mcp/invoicemcpserver

Tools

2

Saved tool list · updated 2w ago

ParameterTypeRequiredDescription
filePathstringYesPDF file path

Details

From the project README

发票处理 MCP 服务器

这是一个用于处理 PDF 发票的 MCP 服务器,提供以下功能:

功能特点

  1. PDF 发票信息提取

    • 支持从 PDF 文件中提取发票信息
    • 自动验证 PDF 文件格式
  2. Excel 表格生成

    • 支持从多个 JSON 文件生成 Excel 表格
    • 自动处理异常文件并记录失败原因
    • 支持自定义输出路径

使用方法

  1. 配置 MCP 客户端:
{
  "mcpServers": {
    "invoicemcpserver": {
      "command": "npx",
      "args": [
        "-y",
        "@ai28mcp/invoicemcpserver@latest"
      ],
      "env": {
        "INVOICE_API_KEY": "你的API密钥"  // 小红书关注 "AI二八酱"  (小红书号:94152668811) 留言获取
      }
    }
  }
}
  1. 使用发票提取功能:
extract_invoice({
  filePath: "发票文件路径",
  apiKey: "API密钥"
});
  1. 使用 Excel 生成功能:
generate_excel({
  dirPath: "JSON文件目录",
  outputPath: "输出Excel路径"
});

注意事项

  1. 必须设置 API 小红书关注 "AI二八酱" (小红书号:94152668811) 留言获取😊
  2. API 密钥可以通过以下两种方式提供:
    • 环境变量 INVOICE_API_KEY
    • 调用参数中的 apiKey
  3. Excel 生成功能会自动跳过无法解析的文件并记录失败原因

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.