invoicemcpserver
If you are the rightful owner of invoicemcpserver and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
This is an MCP server designed for processing PDF invoices, offering features like PDF invoice information extraction and Excel spreadsheet generation.
发票处理 MCP 服务器
这是一个用于处理 PDF 发票的 MCP 服务器,提供以下功能:
功能特点
-
PDF 发票信息提取
- 支持从 PDF 文件中提取发票信息
- 自动验证 PDF 文件格式
-
Excel 表格生成
- 支持从多个 JSON 文件生成 Excel 表格
- 自动处理异常文件并记录失败原因
- 支持自定义输出路径
使用方法
- 配置 MCP 客户端:
{
"mcpServers": {
"invoicemcpserver": {
"command": "npx",
"args": [
"-y",
"@ai28mcp/invoicemcpserver@latest"
],
"env": {
"INVOICE_API_KEY": "你的API密钥" // 小红书关注 "AI二八酱" (小红书号:94152668811) 留言获取
}
}
}
}
- 使用发票提取功能:
extract_invoice({
filePath: "发票文件路径",
apiKey: "API密钥"
});
- 使用 Excel 生成功能:
generate_excel({
dirPath: "JSON文件目录",
outputPath: "输出Excel路径"
});
注意事项
- 必须设置 API 小红书关注 "AI二八酱" (小红书号:94152668811) 留言获取😊
- API 密钥可以通过以下两种方式提供:
- 环境变量 INVOICE_API_KEY
- 调用参数中的 apiKey
- Excel 生成功能会自动跳过无法解析的文件并记录失败原因