文档分析服务器

Orion Vision MCP服务器是一个基于Model Context Protocol的文档分析工具,支持与Azure Form Recognizer无缝集成,提供文档分析和表单数据提取功能。

  • by Cognitive-Stack
  • TypeScript
  • 本地部署
  • 2 星标
  • 更新于
在 GitHub 查看 cognitive-stack/orion-vision-mcp

使用说明

Orion Vision MCP服务器🚀

🔌 兼容Cline、Cursor、Claude Desktop和任何其他MCP客户端!

Orion Vision MCP也与任何MCP客户端兼容

模型上下文协议(MCP)是一个开放标准,使人工智能系统能够与各种数据源和工具无缝交互,促进安全的双向连接。

Orion Vision MCP服务器提供:

  • 与Azure表单识别器/文档智能无缝集成
  • 文档分析和表单数据提取功能
  • 支持各种文档类型(收据、发票、身份证件等)
  • 使用TypeScript进行类型安全操作

先决条件🔧

在开始之前,请确保您已经:

  • Azure表单识别器/文档智能端点和密钥
  • 克劳德桌面或光标
  • Node.js(v20或更高版本)
  • Git已安装(仅在使用Git安装方法时需要)

Orion Vision MCP服务器安装⚡

使用NPX运行

npx -y orion-vision-mcp@latest

通过Smithery安装

要通过Smithery为Claude Desktop自动安装Orion Vision MCP服务器,请执行以下操作:

npx -y @smithery/cli install @orion-vision/mcp --client claude

配置MCP客户端⚙️

配置Cline🤖

在Cline中设置Orion Vision MCP服务器的最简单方法是单击一下市场:

  1. 在VS代码中打开Cline
  2. 点击侧边栏中的Cline图标
  3. 导航到“MCP服务器”选项卡(4个方块)
  4. 搜索“Orion Vision”并点击“安装”
  5. 出现提示时,输入您的Azure表单识别器凭据

或者,您可以在Cline中手动设置Orion Vision MCP服务器:

  1. 打开Cline MCP设置文件:
# For macOS:
code ~/Library/Application\ Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json

# For Windows:
code %APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
  1. 将Orion Vision服务器配置添加到文件中:
{
  "mcpServers": {
    "orion-vision-mcp": {
      "command": "npx",
      "args": ["-y", "orion-vision-mcp@latest"],
      "env": {
        "AZURE_FORM_RECOGNIZER_ENDPOINT": "your-endpoint-here",
        "AZURE_FORM_RECOGNIZER_KEY": "your-key-here"
      },
      "disabled": false,
      "autoApprove": []
    }
  }
}
  1. 保存文件并重新启动Cline(如果它已经在运行)。

配置光标🖥️

备注:需要Cursor 0.45.6或更高版本

在Cursor中设置Orion Vision MCP服务器:

  1. 打开光标设置
  2. 导航到功能>MCP服务器
  3. 点击“+添加新MCP服务器”按钮
  4. 填写以下信息:
    • 名字:输入服务器的昵称(例如“orion vision mcp”)
    • 类型:选择“command”作为类型
    • 命令:输入运行服务器的命令:
    env AZURE_FORM_RECOGNIZER_ENDPOINT=your-endpoint AZURE_FORM_RECOGNIZER_KEY=your-key npx -y orion-vision-mcp@latest
    

    重要:替换 your-endpoint 和 your-key 使用您的Azure表单识别器凭据

配置Claude Desktop应用程序🖥️

对于macOS:

# Create the config file if it doesn't exist
touch "$HOME/Library/Application Support/Claude/claude_desktop_config.json"

# Opens the config file in TextEdit
open -e "$HOME/Library/Application Support/Claude/claude_desktop_config.json"

对于Windows:

code %APPDATA%\Claude\claude_desktop_config.json

添加Orion Vision服务器配置:

{
  "mcpServers": {
    "orion-vision-mcp": {
      "command": "npx",
      "args": ["-y", "orion-vision-mcp@latest"],
      "env": {
        "AZURE_FORM_RECOGNIZER_ENDPOINT": "your-endpoint-here",
        "AZURE_FORM_RECOGNIZER_KEY": "your-key-here"
      }
    }
  }
}

在Claude桌面应用程序中的使用🎯

一旦安装完成,并且配置了Claude桌面应用程序,您必须完全关闭并重新打开Claude桌面程序,才能看到orion vision mcp服务器。您应该在应用程序的左下角看到一个锤子图标,指示可用的MCP工具。

Orion视觉示例

  1. 分析文档:
Analyze the document at "https://example.com/document.pdf" using Azure Form Recognizer.
  1. 提取表单数据:
Extract data from the invoice at "https://example.com/invoice.pdf".
  1. 进程ID文档:
Process the ID document at "https://example.com/id.pdf" and extract relevant information.

故障排除🛠️

常见问题

  1. 找不到服务器

    • 通过运行验证npm安装 npm --version
    • 检查Claude Desktop配置语法
    • 通过运行以下命令确保Node.js已正确安装 node --version
  2. Azure表单识别器凭据问题

    • 确认您的Azure表单识别器端点和密钥有效
    • 检查配置中是否正确设置了凭据
    • 验证凭据周围没有空格或引号
  3. 文档处理问题

    • 验证文档URL是否可访问
    • 检查文档格式是否受支持
    • 确保文档未损坏或受密码保护

致谢✨

  • MCP规范的模型上下文协议
  • 克劳德桌面的拟人化
  • 用于表单识别器/文档智能的Microsoft Azure