read-image-mcp
A stdio MCP server that enables agents without native vision to ask an OpenAI-compatible vision model to describe, OCR, or extract structured data from images via a single tool.
README
Read Image MCP
read-image-mcp is a stdio MCP server that lets agents without native vision ask an OpenAI-compatible vision model to read images.
It exposes one tool, read_image, with three modes:
describe: general image descriptionocr: visible text and layout notesstructured: JSON extraction with an optional question and optional JSON Schema
Run From GitHub With npx
Recommended MCP command:
{
"command": "npx",
"args": [
"-y",
"--package",
"github:xiayangqun/Read-Image-MCP#main",
"read-image-mcp"
],
"env": {
"READ_IMAGE_MCP_CONFIG": "/absolute/path/read-image-mcp.config.json"
}
}
#main is a rolling GitHub dependency. Restarting a client does not guarantee that npm fetches the newest commit because npm may reuse its cache. If you need an immediate refresh, clear npm cache or temporarily reference a specific commit SHA.
Config
Create a config file:
{
"default_profile": "default",
"profiles": {
"default": {
"base_url": "https://api.example.com/v1",
"api_key": "your-api-key",
"model": "vision-model-name",
"timeout_ms": 60000
}
}
}
Lookup order:
READ_IMAGE_MCP_CONFIGread-image-mcp.config.jsonin the current working directory~/.config/read-image-mcp/config.json
If api_key is empty or omitted, no Authorization header is sent. This is useful for local OpenAI-compatible gateways.
MCP Client Examples
Claude Desktop, Cursor, Codex, and OpenCode all use the same basic stdio command shape:
{
"mcpServers": {
"read-image": {
"command": "npx",
"args": [
"-y",
"--package",
"github:xiayangqun/Read-Image-MCP#main",
"read-image-mcp"
],
"env": {
"READ_IMAGE_MCP_CONFIG": "/absolute/path/read-image-mcp.config.json"
}
}
}
}
This repository is xiayangqun/Read-Image-MCP.
Tool Input
{
"source": {
"type": "path",
"value": "/absolute/path/image.png"
},
"mode": "describe"
}
Supported source types:
pathurlbase64data_url
structured mode supports:
{
"source": {
"type": "url",
"value": "https://example.com/screenshot.png"
},
"mode": "structured",
"question": "Which UI error is visible?",
"schema": {
"type": "object",
"properties": {
"error": { "type": "string" }
},
"required": ["error"],
"additionalProperties": false
}
}
Local Development
npm install
npm test -- --run
npm run typecheck
npm run build
node dist/index.js --help
The built dist/ directory is committed so npx --package github:...#main read-image-mcp can run directly from GitHub without client-side TypeScript compilation.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
Neon Database
MCP server for interacting with Neon Management API and databases
E2B
Using MCP to run code via e2b.
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.