EM

everaldo/mcp-mistral-ocr

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

40 stars 13 forks 품질 71 트렌드 0MIT

everaldo/mcp-mistral-ocr는 MCP 서버 후보가 https://github.com/everaldo/mcp-mistral-ocr.에서 수입되었습니다

개요

everaldo/mcp-mistral-ocr는 MCP 서버 후보가 https://github.com/everaldo/mcp-mistral-ocr.에서 수입되었습니다

개요(AI 번역)

Mistral AI의 OCR API를 사용하여 OCR 기능을 제공하는 MCP 서버. 이 서버는 로컬 파일과 URL을 모두 처리 할 수 있으며 이미지와 PDF를 지원합니다.

특징

  • Mistral의 OCR을 사용하여 로컬 파일 (이미지 및 PDF) 처리
  • 명시된 파일 형식의 URL에서 프로세스 파일
  • 여러 파일 형식 지원 (JPG, PNG, PDF 등)
  • 타임스탬프와 JSON 파일로 저장된 결과
  • 도커 컨테이너화
  • UV 패키지 관리

환경 변수

  • MISTRAL_API_KEY: Mistral AI API 키
  • OCR_DIR: 로컬 파일 처리의 디렉토리 경로. 컨테이너 내부, 이것은 항상 /data/ocr에 맵핑된다

설치

Smithery를 통해 설치

Smithery를 통해 Claude Desktop용 Mistral OCR을 자동으로 설치하십시오.

Docker 사용

  1. Docker 이미지를 만듭니다:

  2. 콘테이너를 실행하십시오:

지역 개발

  1. UV 포장 매니저 설치:

  2. 가상 환경을 만들고 활성화하십시오:

  3. 의존성 설치:

Claude 데스크탑 구성

claude desktop config.json에 이 구성을 추가하십시오:

사용 가능한 도구

1 프로세스 local file

구성 된 OCR DIR 디렉토리에서 파일을 처리하십시오.

##2 프로세스 url file

URL에서 파일을 처리하십시오.

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

README

원문 README의 일부입니다. 원문 보기.

MCP Mistral OCR

An MCP server that provides OCR capabilities using Mistral AI’s OCR API. This server can process both local files and URLs, supporting images and PDFs.

Features

  • Process local files (images and PDFs) using Mistral’s OCR
  • Process files from URLs with explicit file type specification
  • Support for multiple file formats (JPG, PNG, PDF, etc.)
  • Results saved as JSON files with timestamps
  • Docker containerization
  • UV package management

Environment Variables

  • MISTRAL_API_KEY: Your Mistral AI API key
  • OCR_DIR: Directory path for local file processing. Inside the container, this is always mapped to /data/ocr

Installation

Installing via Smithery

To install Mistral OCR for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install @everaldo/mcp/mistral-crosswalk --client claude

Using Docker

  1. Build the Docker image:
docker build -t mcp-mistral-ocr .
  1. Run the container:
docker run -e MISTRAL_API_KEY=your_api_key -e OCR_DIR=/data/ocr -v /path/to/local/files:/data/ocr mcp-mistral-ocr

Local Development

  1. Install UV package manager:
pip install uv
  1. Create and activate virtual environment:
uv venv
source .venv/bin/activate  # On Unix
# or
.venv\Scripts\activate  # On Windows
  1. Install dependencies:
uv pip install .

Claude Desktop Configuration

Add this configuration to your claude_desktop_config.json:

{
  "mcpServers": {
    "mistral-ocr": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "MISTRAL_API_KEY",
        "-e",
        "OCR_DIR",
        "-v",
        "C:/path/to/your/files:/data/ocr",
        "mcp-mistral-ocr:latest"
      ],
      "env": {
        "MISTRAL_API_KEY": "",
        "OCR_DIR": "C:/path/to/your/files"
      }
    }
  }
}

Available Tools

1. process_local_file

Process a file from the configured OCR_DIR directory.

{
    "name": "process_local_file",
    "arguments": {
        "filename": "document.pdf"
    }
}

2. process_url_file

Process a file from a URL. Requires explicit file type specification.

{
    "name": "process_url_file",
    "arguments": {
        "url": "https://example.com/document",
        "file_type": "image"  // or "pdf"
    }
}

Output

GitHub에서 전체 README 보기

설치

docker run -i --rm -e MISTRAL_API_KEY -e OCR_DIR -v C:/path/to/your/files:/data/ocr mcp-mistral-ocr:latest
MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

{ "mcpServers": { "mistral-ocr": { "command": "docker", "args": [ "run", "-i", "--rm", "-e", "MISTRAL_API_KEY", "-e", "OCR_DIR", "-v", "C:/path/to/your/files:/data/ocr", "mcp-mistral-ocr:latest" ], "env": { "MISTRAL_API_KEY": "<YOUR_MISTRAL_API_KEY>", "OCR_DIR": "C:/path/to/your/files" } } } }