Metadata-Version: 2.4
Name: invoice-ocr-mcp
Version: 1.0.4
Summary: 企业发票OCR识别MCP服务器 - 基于ModelScope的专业发票识别解决方案
Author-email: Invoice OCR Team <team@example.com>
License: MIT
Project-URL: Homepage, https://github.com/your-org/invoice-ocr-mcp
Project-URL: Documentation, https://github.com/your-org/invoice-ocr-mcp/docs
Project-URL: Repository, https://github.com/your-org/invoice-ocr-mcp.git
Project-URL: Issues, https://github.com/your-org/invoice-ocr-mcp/issues
Keywords: mcp,ocr,invoice,modelscope,ai
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: Topic :: Office/Business :: Financial
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: mcp>=1.0.0
Requires-Dist: opencv-python>=4.8.0
Requires-Dist: Pillow>=10.0.0
Requires-Dist: numpy>=1.24.0
Requires-Dist: asyncio>=3.4.3
Requires-Dist: aiofiles>=23.2.0
Requires-Dist: aiohttp>=3.8.0
Requires-Dist: jsonschema>=4.17.0
Requires-Dist: pydantic>=2.0.0
Requires-Dist: python-dotenv>=1.0.0
Requires-Dist: PyYAML>=6.0.1
Requires-Dist: structlog>=23.1.0
Requires-Dist: rapidocr==3.2.0
Provides-Extra: dev
Requires-Dist: pytest>=7.4.0; extra == "dev"
Requires-Dist: pytest-asyncio>=0.21.0; extra == "dev"
Requires-Dist: pytest-mock>=3.11.0; extra == "dev"
Requires-Dist: pytest-cov>=4.1.0; extra == "dev"
Requires-Dist: black>=23.0.0; extra == "dev"
Requires-Dist: flake8>=6.0.0; extra == "dev"
Requires-Dist: isort>=5.12.0; extra == "dev"
Requires-Dist: mypy>=1.5.0; extra == "dev"
Provides-Extra: gpu
Requires-Dist: torch[cuda]>=2.0.0; extra == "gpu"
Requires-Dist: torchvision[cuda]>=0.15.0; extra == "gpu"
Provides-Extra: monitoring
Requires-Dist: prometheus-client>=0.17.0; extra == "monitoring"
Requires-Dist: redis>=4.6.0; extra == "monitoring"
Provides-Extra: performance
Requires-Dist: cachetools>=5.3.0; extra == "performance"
Requires-Dist: scikit-image>=0.21.0; extra == "performance"
Dynamic: license-file

# 企业发票OCR识别MCP服务器

基于ModelScope生态构建的专业企业发票OCR识别MCP服务器，为企业财务数字化提供智能化解决方案。

## 🚀 产品特性

- **标准化接入**：符合MCP协议规范，无缝集成各类AI应用
- **专业发票识别**：支持13种主流发票类型，准确率达99%+
- **结构化输出**：自动提取发票关键信息，输出标准JSON格式
- **企业级服务**：支持批量处理，满足大规模业务需求

## 📋 支持的发票类型

- 01: 增值税专用发票
- 02: 机动车增值税专用发票
- 03: 增值税普通发票
- 04: 增值税电子普通发票
- 05: 增值税普通发票（卷式）
- 06: 增值税普通发票（通行费）
- 07: 二手车发票
- 08: 增值税电子专用发票
- 09: 数电发票（增值税专用发票）
- 10: 数电发票（普通发票）
- 11: 数电发票（航空运输电子客票行程单）
- 12: 数电发票（铁路电子客票）
- 13: 区块链发票（支持深圳、北京和云南地区）

## 🛠️ 安装与启动

### 环境要求

- Python 3.8+
- 至少4GB内存
- 推荐GPU支持

### 快速开始

```bash
# 推荐方式：通过PyPI安装
pip install invoice-ocr-mcp

# 启动服务
invoice-ocr-mcp
```

## ⚡ MCP平台集成配置（uvx示例）

如需在 MCP 平台集成本服务，推荐使用如下 mcpServers 配置：

```json
{
  "mcpServers": {
    "invoice-ocr-mcp": {
      "command": "uvx",
      "args": [
        "invoice-ocr-mcp"
      ],
      "env": {
        "PYTHONUNBUFFERED": "1"
      }
    }
  }
}
```

- 如需自定义环境变量，可在 env 字段补充。

## 📊 性能指标

- **识别准确率**: >99%
- **处理速度**: 单张发票<3秒
- **并发支持**: 支持多线程并行处理
- **服务可用性**: >99.9%

© 2024 Invoice OCR MCP Server. All rights reserved. 
