PolarHub
  • Agents
  • MCP Servers
  • Skills
  • PolarBear
PolarHub © 2026
MCP Serversimage-and-video-processingnfshanq
返回「image-and-video-processing」

nfshanq

modelscope·@nfshanq/mcp-invoice

image-and-video-processing0下载LocalModelScope

简介

暂无描述。

MCP Server 详情

来自 ModelScope 索引

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.

Features

  • Invoice and Receipt OCR Processing:
    • High-accuracy text recognition using the macOS Vision framework
    • Supports processing of individual PDF or image files (JPEG, PNG)
    • Supports batch processing of all invoice and receipt files in a directory
    • Supports OCR recognition for both Chinese and English, suitable for various invoice formats
    • Provides structured data extraction for easy subsequent analysis
  • PDF Merging and Management Functions:
    • Supports merging multiple invoice or receipt PDF files into one
    • Supports merging multiple invoice images (JPEG, PNG) into a single PDF file
    • Supports mixed merging of different formats of invoices and receipts
  • Efficient memory handling to reduce disk I/O and improve processing speed

MCP Deployment Guide

Environment Requirements

  • macOS system (supports Vision framework)
  • Python 3.10 or higher
  • uv dependency management tool

Installation from GitHub

  1. Ensure that uv is installed:

bash pip install uv

  1. Clone the project from GitHub and install dependencies:

bash git clone https://github.com/[username]/mcp-invoice.git cd mcp-invoice uv venv source .venv/bin/activate uv pip install -e .

Install PDF Processing Dependencies

pdf2image requires Poppler to be installed on the system:

bash brew install poppler

Deploy as MCP Service

There are two ways to deploy the MCP service:

1. Run the Server Directly

bash

Standard mode

mcp-invoice

Or enable debug mode (includes text position information)

MCP_INVOICE_DEBUG=true mcp-invoice

2. Use the invoice_server.py Script

bash

Standard mode

python invoice_server.py

Or enable debug mode

MCP_INVOICE_DEBUG=true python invoice_server.py

Configure as System Service

You can configure the MCP service as a system service so that it starts automatically when the system boots up:

  1. Create a LaunchAgent plist file:

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> EOF

Create log directory

mkdir -p logs

Load the service

launchctl load ~/Library/LaunchAgents/com.user.mcp-invoice.plist

  1. Start the service:

bash launchctl start com.user.mcp-invoice

  1. Stop the service:

bash launchctl stop com.user.mcp-invoice

AI Editor Integration

Configuring MCP in Cursor

In the Cursor editor, you can add the MCP Invoice service through the following configuration:

  1. Open the MCP configuration file for Cursor:

    • macOS: $HOME/Library/Application Support/Cursor/tools/tools.json
    • Linux: $HOME/.config/Cursor/tools/tools.json
    • Windows: %APPDATA%Cursor\tools\tools.json
  2. Add 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"

Configuring MCP in Cline

Integrating MCP with Cline is similar to Cursor:

  1. Update the Cline configuration file to add this MCP tool.
  2. Restart the Cline client.
  3. Request to process invoice files in the same way as with Cursor.

Configuring MCP in Roocode

To integrate MCP Invoice service in Roocode:

  1. Configure external tools according to the Roocode documentation.
  2. Point to the deployed MCP Invoice service.
  3. Use natural language in Roocode to request processing of invoice files.

MCP Service Debugging

  1. Enable detailed logging:

bash MCP_INVOICE_DEBUG=true mcp-invoice

  1. Check if the service is running properly:

bash ps aux | grep mcp-invoice

  1. View logs:

bash tail -f logs/mcp-invoice.log

Usage

The MCP server provides the following main tools:

  1. process_file: Processes a single file and extracts text.

    • Parameters: file_path - The absolute path of the file.
    • Returns: A dictionary containing the file path and extracted text.
  2. process_directory: Processes all PDF and image files in a directory.

    • Parameters: directory_path - The absolute path of the directory.
    • Returns: A list of dictionaries, each containing the file path and extracted text.
  3. merge_pdfs: Merges multiple PDF and/or image files into one PDF.

    • Parameters: file_paths - A list of paths to the files to be merged.
    • Parameters: output_path - The path for the output PDF.
    • Returns: The path of the merged …

相关 MCP Servers(来自「image-and-video-processing」)

魔法组件协议

ModelContextProtocol服务器适用于Magic UI,它通过提供诸如跑马灯、动画、特效和互动背景等组件的代码,使AI助手能够轻松为Web应用程序实现UI组件。

@magicuidesign/mcp

网页开发MCP

一个提供网页开发工具的MCP服务器,例如屏幕捕捉功能,可以让AI代理获取并处理用户屏幕的截图。

@ZukAi-MCP/webdev-mcp

智能组件生成器

一个由人工智能驱动的工具,可以从自然语言描述生成现代UI组件,并与流行的IDE集成,以简化UI开发工作流程。

@21st-dev/magic-mcp

Blender

通过模型上下文协议(MCP)将Blender连接到Claude AI,使Claude能够直接与Blender交互并对其进行控制,从而实现AI辅助的3D建模、场景操作和渲染。

@ahujasid/blender-mcp

Dify组件生成器

集成了Dify AI API,为Ant Design组件提供代码生成服务,支持文本和图像输入,并具备流式处理能力。

@AI-FE/dify-mcp-server

Excalidraw MCP绘图管理器

一种模型上下文协议服务器,提供创建、管理和导出Excalidraw绘图的API功能,支持SVG、PNG和JSON等多种格式。

@i-tozer/excalidraw-mcp

自动安装

点击按钮会唤起 PolarBear 客户端,并把当前 MCP Server 的 Markdown 详情文档地址传给客户端。

/api/mcps/nfshanq-mcp-invoice/markdown
打开 PolarBear 安装查看 Markdown 文档

手动安装

在 PolarBear 或其他支持 MCP 的客户端中,新建 MCP Server,并参考下方来源或安装提示配置。

暂未识别到安装命令,请打开 ModelScope 详情查看完整配置。

基本信息

分类
image-and-video-processing / documentation-access
运行方式
No
许可证
Unknown
详情文件
nfshanq-mcp-invoice.md