OCR.space MCP by usefulapi
Read text and tables from images and PDFs, and make searchable PDFs, in OCR.space.
사용해야 할까요
품질 및 안전성
발견 사항 (1)
- LOWocrspace_list_languages에서
도구 정의와 프로토콜 준수에 대한 자동 분석을 기반으로 합니다.
컨텍스트 비용
이는 서버의 도구가 모델의 컨텍스트에 로드될 때마다 소비되는 대략적인 토큰 수입니다. 수치가 높을수록 다른 작업에 사용할 수 있는 주의가 줄어듭니다.
설치
원클릭 설치
`claude_desktop_config.json` 파일에 다음을 추가하세요:
{
"mcpServers": {
"ocr-space": {
"url": "https://ocr-space.usefulapi.io/mcp"
}
}
}원격 엔드포인트
https://ocr-space.usefulapi.io/mcpstreamable-http할 수 있는 일
도구 목록
도구 (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).
입력 스키마
{
"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.
입력 스키마
{
"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).
입력 스키마
{
"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.
입력 스키마
{
"type": "object",
"properties": {},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}커뮤니티
증거