OCR.space MCP by usefulapi
Read text and tables from images and PDFs, and make searchable PDFs, in OCR.space.
¿Debería usar esto?
Calidad y seguridad
Hallazgos (1)
- LOWen ocrspace_list_languages
Basado en el análisis automatizado de las definiciones de herramientas y el cumplimiento del protocolo.
Costo de contexto
Este es el número aproximado de tokens que se consumen cada vez que las herramientas del servidor se cargan en el contexto de un modelo. Los recuentos más altos reducen la atención disponible para otras tareas.
Instalar
Instalación con un clic
Agrega esto a tu archivo `claude_desktop_config.json`:
{
"mcpServers": {
"ocr-space": {
"url": "https://ocr-space.usefulapi.io/mcp"
}
}
}Puntos de conexión remotos
https://ocr-space.usefulapi.io/mcpstreamable-httpQué puede hacer
Inventario de herramientas
Herramientas (4)
🟢ocrspace_ocr_url(url, language, engine, filetype, is_table, ...)
Extract text from an image or PDF at a public https URL with OCR.space (POST /parse/image). Returns the text per page (a PDF gives one entry per page; the free plan reads the first 3 pages and files up to 1 MB). Uses one request of your OCR.space quota (free key: 25,000 requests per month and 500 requests per day). Options: language, engine (1-3), is_table (line-by-line text for tables, receipts, invoices), detect_orientation, scale (upscale low-resolution scans), include_overlay (word coordinates; slower).
Esquema de entrada
{
"type": "object",
"properties": {
"url": {
"type": "string",
"minLength": 8,
"maxLength": 2048,
"description": "Public https URL of the image or PDF (the file must be reachable without login and served with an image/* or application/pdf content type)."
},
"language": {
"description": "Document language, a 3-letter code such as eng, ger, fre, spa, chs (see ocrspace_list_languages). Default eng. 'auto' works with engine 2 and 3 only.",
"type": "string",
"enum": [
"ara",
"bul",
"chs",
"cht",
"hrv",
"cze",
"dan",
"dut",
"eng",
"fin",
"fre",
"ger",
"gre",
"hun",
"kor",
"ita",
"jpn",
"pol",
"por",
"rus",
"slv",
"spa",
"swe",
"tha",
"tur",
"ukr",
"vnm",
"auto"
]
},
"engine": {
"description": "OCR engine 1, 2 or 3. Default 2 (best all-round). 3 = highest accuracy, handwriting, tables as Markdown, 200+ languages, slower, and has its own smaller quota. 1 = fastest but deprecated.",
"type": "integer",
"minimum": 1,
"maximum": 3
},
"filetype": {
"description": "Force the file type when the URL's content type is wrong (default: detected).",
"type": "string",
"enum": [
"PDF",
"GIF",
"PNG",
"JPG",
"TIF",
"BMP"
]
},
"is_table": {
"description": "Return text line by line, best for tables, receipts and invoices.",
"type": "boolean"
},
"detect_orientation": {
"description": "Auto-rotate the image; the page's text_orientation reports the rotation.",
"type": "boolean"
},
"scale": {
"description": "Upscale internally; helps low-resolution PDF scans.",
"type": "boolean"
},
"include_overlay": {
"description": "Also return word coordinates (left/top/width/height in pixels), capped at 1000 words.",
"type": "boolean"
}
},
"required": [
"url"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢ocrspace_ocr_base64(image_base64, mime_type, language, engine, filetype, ...)
Extract text from a small file passed as base64 (POST /parse/image with base64Image). Up to 1,400,000 base64 characters (about 1 MB, the free plan's file limit); use ocrspace_ocr_url for bigger files. Pass either a full data URI (data:image/png;base64,...) or the raw base64 plus mime_type. Uses one request of your OCR.space quota (free key: 25,000 requests per month and 500 requests per day). Options as in ocrspace_ocr_url.
Esquema de entrada
{
"type": "object",
"properties": {
"image_base64": {
"type": "string",
"minLength": 8,
"maxLength": 1400200,
"description": "The file as base64 (a data: URI, or raw base64 together with mime_type). Whitespace and newlines are removed."
},
"mime_type": {
"description": "MIME type of the file; required when image_base64 has no data: prefix.",
"type": "string",
"enum": [
"image/jpeg",
"image/png",
"image/gif",
"image/bmp",
"image/tiff",
"application/pdf"
]
},
"language": {
"description": "Document language, a 3-letter code such as eng, ger, fre, spa, chs (see ocrspace_list_languages). Default eng. 'auto' works with engine 2 and 3 only.",
"type": "string",
"enum": [
"ara",
"bul",
"chs",
"cht",
"hrv",
"cze",
"dan",
"dut",
"eng",
"fin",
"fre",
"ger",
"gre",
"hun",
"kor",
"ita",
"jpn",
"pol",
"por",
"rus",
"slv",
"spa",
"swe",
"tha",
"tur",
"ukr",
"vnm",
"auto"
]
},
"engine": {
"description": "OCR engine 1, 2 or 3. Default 2 (best all-round). 3 = highest accuracy, handwriting, tables as Markdown, 200+ languages, slower, and has its own smaller quota. 1 = fastest but deprecated.",
"type": "integer",
"minimum": 1,
"maximum": 3
},
"filetype": {
"description": "Force the file type when the URL's content type is wrong (default: detected).",
"type": "string",
"enum": [
"PDF",
"GIF",
"PNG",
"JPG",
"TIF",
"BMP"
]
},
"is_table": {
"description": "Return text line by line, best for tables, receipts and invoices.",
"type": "boolean"
},
"detect_orientation": {
"description": "Auto-rotate the image; the page's text_orientation reports the rotation.",
"type": "boolean"
},
"scale": {
"description": "Upscale internally; helps low-resolution PDF scans.",
"type": "boolean"
},
"include_overlay": {
"description": "Also return word coordinates, capped at 1000 words.",
"type": "boolean"
}
},
"required": [
"image_base64"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟡ocrspace_create_searchable_pdf(url, language, engine, filetype, hide_text_layer)
Run OCR on a public https image/PDF URL and have OCR.space build a searchable PDF (a copy of the file with a text layer). Returns searchable_pdf_url, a download link that expires after one hour, plus the recognized text. The free plan adds a 'Generated by OCR.space' watermark. Engine 3 cannot make searchable PDFs, so only engine 1 or 2 is accepted (default 2). Uses one request of your OCR.space quota (free key: 25,000 requests per month and 500 requests per day).
Esquema de entrada
{
"type": "object",
"properties": {
"url": {
"type": "string",
"minLength": 8,
"maxLength": 2048,
"description": "Public https URL of the image or PDF."
},
"language": {
"description": "Document language, a 3-letter code such as eng, ger, fre, spa, chs (see ocrspace_list_languages). Default eng. 'auto' works with engine 2 and 3 only.",
"type": "string",
"enum": [
"ara",
"bul",
"chs",
"cht",
"hrv",
"cze",
"dan",
"dut",
"eng",
"fin",
"fre",
"ger",
"gre",
"hun",
"kor",
"ita",
"jpn",
"pol",
"por",
"rus",
"slv",
"spa",
"swe",
"tha",
"tur",
"ukr",
"vnm",
"auto"
]
},
"engine": {
"description": "OCR engine 1 or 2 (default 2); engine 3 does not create searchable PDFs.",
"type": "integer",
"minimum": 1,
"maximum": 2
},
"filetype": {
"description": "Force the file type when the URL's content type is wrong (default: detected).",
"type": "string",
"enum": [
"PDF",
"GIF",
"PNG",
"JPG",
"TIF",
"BMP"
]
},
"hide_text_layer": {
"description": "Hide the text layer (default false = visible text layer). The text layer exists either way.",
"type": "boolean"
}
},
"required": [
"url"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢ocrspace_list_languages
Reference (no request to OCR.space, no quota used): the documented language codes for the language option, what OCR engines 1, 2 and 3 do, and the free-plan limits.
Esquema de entrada
{
"type": "object",
"properties": {},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}Comunidad
Evidencia