OpenAI OCR MCP Server

OpenAI OCR MCP Server

openai-ocr-mcp•bycjus

A Model Context Protocol server that extracts text from images using OpenAI's vision capabilities and saves the extracted text alongside the source image.

License: MIT License•Runtime: Awaiting documentation review•Category: productivity work

WHAT IT DOES

  • •Extracts text from images using OpenAI's GPT-4.1-mini vision model with high-detail analysis.
  • •Automatically saves extracted text as a file next to the source image, named with a content-based hash.
  • •Supports JPG, PNG, GIF, and WebP image formats with a 5MB file size limit.
  • •Provides detailed error messages and debug-friendly logging for troubleshooting.

BEST FOR

  • •Extracting text from images inside the Cursor IDE workflow.
  • •Capturing OCR results as saved text files for later reference.

ABOUT OPENAI-OCR-MCP

OpenAI OCR MCP Server is cataloged as an MCP server attributed to cjus. A Model Context Protocol server that extracts text from images using OpenAI's vision capabilities and saves the extracted text alongside the source image. It is categorized under productivity work. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT License. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for OpenAI OCR MCP Server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Which vision model does the server use for OCR?

It uses OpenAI's GPT-4.1-mini model, optimized for text extraction from images with high-detail analysis.

How are output text files named?

Output files use the original image name plus a unique 8-character content hash, e.g. document-a1b2c3d4.txt.

Upstream README

View this exact version on GitHub

README.md · 004adeeee06e · Fetched 2026-11-13 10:30:53 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

OpenAI OCR MCP Server

A Model Context Protocol (MCP) server that provides OCR (Optical Character Recognition) functionality using OpenAI's vision capabilities. This server integrates with Cursor IDE to provide seamless text extraction from images.

Features

  • Image Text Extraction: Extract text from various image formats using OpenAI's GPT-4.1-mini vision model
  • Automatic Text File Creation: Automatically saves extracted text alongside the source image
  • Content-Based File Naming: Uses unique content hashing for organized file management
  • Multiple Image Format Support: Supports JPG, PNG, GIF, and WebP formats
  • Robust Error Handling: Comprehensive validation and error reporting
  • Detailed Logging: Debug-friendly logging for troubleshooting

Technical Details

Vision Model

  • Uses OpenAI's GPT-4.1-mini model
  • Optimized for text extraction from images
  • Supports high-detail image analysis
  • Processes images through OpenAI's vision API

File Processing

  • Automatic text file creation
  • Content-based hash generation
  • Support for multiple image formats
  • Built-in file size validation

Installation

  1. Clone the repository
  2. Install dependencies:
    npm install
    
  3. Build the TypeScript code:
    npm run build
    
  4. Set up your OpenAI API key in a .env file:
    OPENAI_API_KEY=your_api_key_here
    

Usage

In Cursor IDE

  1. Configure the MCP server in your Cursor settings
  2. Use the OCR tool through Cursor's command palette
  3. Select an image file to process
  4. The extracted text will be:
    • Displayed in Cursor
    • Saved as a text file next to the image

Text File Output

For each processed image, the server creates a text file with the following naming convention:

{original_image_name}-{content_hash}.txt

Example:

  • Input image: document.jpg
  • Output file: document-a1b2c3d4.txt

The content_hash is a unique 8-character hash generated from the extracted text, ensuring:

  • Unique filenames for different text content
  • Easy matching between source images and extracted text
  • Version tracking when the same image produces different results

Supported Image Formats

  • JPEG/JPG
  • PNG
  • GIF
  • WebP

File Size Limits

  • Maximum file size: 5MB
  • Files exceeding this limit will be rejected with an error message

Error Handling

The server provides detailed error messages for common issues:

  • Invalid image formats
  • File size exceeded
  • File access problems
  • API key issues
  • Text extraction failures

Development

Building from Source

npm run build

Running Tests

npm test

Debugging

The server provides detailed logs including:

  • API key validation
  • File processing steps
  • Text extraction results
  • File saving operations

Environment Variables

  • OPENAI_API_KEY: Your OpenAI API key (required)
  • Supports both standard (sk-...) and project-specific (sk-proj-...) API keys

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

MIT License

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for OpenAI OCR MCP Server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/openai-ocr-mcp)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related productivity work MCP Servers

Alternative and complementary servers in the same category

View all in productivity work →
Tuqui hosted MCP server for Odoo
tuqui-odoo-mcp-for-claude-chatgpt•tuqui-ai

Tuqui is a hosted MCP server that connects Odoo with Claude and ChatGPT so users can ask about sales, stock, customers and overdue invoices in plain language.

Repository stats unavailable
Productivity & Ops