Package Exports
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@ai28mcp/invoicemcpserver) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
发票处理 MCP 服务器
这是一个用于处理 PDF 发票的 MCP 服务器,提供以下功能:
功能特点
PDF 发票信息提取
- 支持从 PDF 文件中提取发票信息
- 自动验证 PDF 文件格式
Excel 表格生成
- 支持从多个 JSON 文件生成 Excel 表格
- 自动处理异常文件并记录失败原因
- 支持自定义输出路径
使用方法
- 配置 MCP 客户端:
{
"mcpServers": {
"invoicemcpserver": {
"command": "npx",
"args": [
"-y",
"@ai28mcp/invoicemcpserver@latest"
],
"env": {
"INVOICE_API_KEY": "<YOUR_KEY>"
}
}
}
}INVOICE_API_KEY 小红书关注 "AI二八酱" (小红书号:94152668811) 留言获取
- 使用发票提取功能:
extract_invoice({
filePath: "发票文件路径",
apiKey: "API密钥"
});- 使用 Excel 生成功能:
generate_excel({
dirPath: "JSON文件目录",
outputPath: "输出Excel路径"
});注意事项
- 必须设置 API 小红书关注 "AI二八酱" (小红书号:94152668811) 留言获取😊
- API 密钥可以通过以下两种方式提供:
- 环境变量 INVOICE_API_KEY
- 调用参数中的 apiKey
- Excel 生成功能会自动跳过无法解析的文件并记录失败原因