modelscope·@nfshanq/mcp-invoice
暂无描述。
This is a project for an MCP (Model Context Protocol) server developed using Python, focusing on a suite of tools for invoice and receipt processing. The project leverages OCR technology to achieve invoice recognition, data extraction, and PDF processing functions, providing AI assistants with the capability to handle invoices.
bash pip install uv
bash git clone https://github.com/[username]/mcp-invoice.git cd mcp-invoice uv venv source .venv/bin/activate uv pip install -e .
pdf2image requires Poppler to be installed on the system:
bash brew install poppler
There are two ways to deploy the MCP service:
bash
mcp-invoice
MCP_INVOICE_DEBUG=true mcp-invoice
invoice_server.py Scriptbash
python invoice_server.py
MCP_INVOICE_DEBUG=true python invoice_server.py
You can configure the MCP service as a system service so that it starts automatically when the system boots up:
bash mkdir -p ~/Library/LaunchAgents cat > ~/Library/LaunchAgents/com.user.mcp-invoice.plist << EOF
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>Label</key> <string>com.user.mcp-invoice</string> <key>ProgramArguments</key> <array> <string>$(which python)</string> <string>$(pwd)/invoice_server.py</string> </array> <key>RunAtLoad</key> <true/> <key>KeepAlive</key> <true/> <key>StandardOutPath</key> <string>$(pwd)/logs/mcp-invoice.log</string> <key>StandardErrorPath</key> <string>$(pwd)/logs/mcp-invoice-error.log</string> <key>WorkingDirectory</key> <string>$(pwd)</string> <key>EnvironmentVariables</key> <dict> <key>PATH</key> <string>/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin</string> </dict> </dict> </plist> EOFmkdir -p logs
launchctl load ~/Library/LaunchAgents/com.user.mcp-invoice.plist
bash launchctl start com.user.mcp-invoice
bash launchctl stop com.user.mcp-invoice
In the Cursor editor, you can add the MCP Invoice service through the following configuration:
Open the MCP configuration file for Cursor:
$HOME/Library/Application Support/Cursor/tools/tools.json$HOME/.config/Cursor/tools/tools.json%APPDATA%Cursor\tools\tools.jsonAdd the MCP Invoice service configuration in the tools.json file:
json { "tools": { "invoice": { "command": "uv", "args": [ "--directory", "/path/to/mcp-invoice", "run", "invoice_server.py" ], "env": { "MCP_INVOICE_DEBUG": "false" }, "alwaysAllow": [ "process_file", "process_directory", "merge_pdfs" ] } } }3. After restarting Cursor, you can directly request to use features in the AI assistant, for example: "Please use the OCR tool to read the file: /path/to/document.pdf" "Please merge these PDF files: /path/to/file1.pdf, /path/to/file2.pdf"
Integrating MCP with Cline is similar to Cursor:
To integrate MCP Invoice service in Roocode:
bash MCP_INVOICE_DEBUG=true mcp-invoice
bash ps aux | grep mcp-invoice
bash tail -f logs/mcp-invoice.log
The MCP server provides the following main tools:
process_file: Processes a single file and extracts text.
file_path - The absolute path of the file.process_directory: Processes all PDF and image files in a directory.
directory_path - The absolute path of the directory.merge_pdfs: Merges multiple PDF and/or image files into one PDF.
file_paths - A list of paths to the files to be merged.output_path - The path for the output PDF.ModelContextProtocol服务器适用于Magic UI,它通过提供诸如跑马灯、动画、特效和互动背景等组件的代码,使AI助手能够轻松为Web应用程序实现UI组件。
一个提供网页开发工具的MCP服务器,例如屏幕捕捉功能,可以让AI代理获取并处理用户屏幕的截图。
一个由人工智能驱动的工具,可以从自然语言描述生成现代UI组件,并与流行的IDE集成,以简化UI开发工作流程。
通过模型上下文协议(MCP)将Blender连接到Claude AI,使Claude能够直接与Blender交互并对其进行控制,从而实现AI辅助的3D建模、场景操作和渲染。
集成了Dify AI API,为Ant Design组件提供代码生成服务,支持文本和图像输入,并具备流式处理能力。
一种模型上下文协议服务器,提供创建、管理和导出Excalidraw绘图的API功能,支持SVG、PNG和JSON等多种格式。