Back to MCP directory
publicPublicdnsLocal runtime

rapidocr-mcp

基于RapidOCR的MCP服务器,提供便捷的OCR接口服务

article

README

🚀 RapidOCR MCP 服务

RapidOCR MCP 服务是基于 RapidOCR 的 MCP 服务器,为用户提供了简单易用的 OCR 接口,能高效处理图像文字识别需求。

🚀 快速开始

运行服务

使用以下命令来启动 RapidOCR MCP 服务:

uvx run rapidocr-mcp

💻 使用示例

基础用法

本服务提供了两个主要的 OCR 处理方法,以下是它们的详细介绍:

ocr_by_content

该方法用于对图像内容进行 OCR 处理。

  • 参数base64_data (str),即图像的 base64 编码数据。
  • 返回值List[TextContent],一个文本内容列表。

ocr_by_path

此方法用于对图像文件进行 OCR 处理。

  • 参数path (str),也就是图像文件的路径。
  • 返回值List[TextContent],一个文本内容列表。
help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client