MCP Server

image-ocr

co.kymac.ocr/image-ocr
Media & Content Unavailable MCP 2026-07-28

What this MCP does

Extracts plain text from images provided by URL using OCR, with caller key and prepaid credit management.

checkout_credits
Checkout credit pack — image ocr, ocr text, vision text
Stripe TEST PaymentIntent for a pack (POST /credits/checkout). Intent only — returns credits_pending; credits are not granted or spendable until confirm_credits succeeds. Requires a caller key.
Input schema
{'type': 'object', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'required': ['pack_id'], 'properties': {'pack_id': {'type': 'string', 'description': 'Pack id from list_credit_packs (e.g. pack_10).'}}}
confirm_credits
Confirm TEST credit purchase — image ocr, ocr text, vision text
Confirm a TEST PaymentIntent with Stripe test card pm_card_visa (POST /credits/confirm). This is when credits become granted/spendable (appends credit.purchase with credits_added). TEST only.
Input schema
{'type': 'object', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'required': ['stripe_payment_intent_id'], 'properties': {'stripe_payment_intent_id': {'type': 'string', 'description': 'PaymentIntent id (pi_â\x80¦) from checkout_credits.'}}}
credit_balance
Credit balance — image ocr, ocr text, vision text
Derived prepaid balance for this caller_id (GET /credits/balance).
Read only
Input schema
{'type': 'object', 'properties': {}}
credit_events
Credit ledger events — image ocr, ocr text, vision text
Append-only Ledger events for this caller_id (GET /credits/events): credit.grant (first_key), credit.purchase, credit.debit, optional credit.balance_snapshot.
Read only
Input schema
{'type': 'object', 'properties': {}}
health
Health — image ocr, ocr text, vision text
Public readiness (GET /health): billing (test|gated) and runner_ready. No key.
Read only
Input schema
{'type': 'object', 'properties': {}}
issue_key
Issue caller key — image ocr, ocr text, vision text
Mint a caller key (POST /keys). Bot install starts at GET https://ocr.kymac.co/llms.txt (sole advertised entry). Secret ocr_… is returned once. Prefer Authorization: Bearer; X-API-Key is an alias. First issue grants 1 free credit (credit.grant reason=first_key). Quote cost with quote_credits before ocr_extract.
Input schema
{'type': 'object', 'properties': {}}
list_credit_packs
List credit packs — image ocr, ocr text, vision text
Prepaid TEST packs (GET /credits/packs). checkout_credits is intent only; credits grant after confirm_credits.
Read only
Input schema
{'type': 'object', 'properties': {}}
ocr_extract
OCR image URL to plain text — image ocr, ocr text, vision text
Image OCR (POST /ocr). Install via GET https://ocr.kymac.co/llms.txt only. Prefer Authorization: Bearer; X-API-Key is an alias. Golden URL https://placehold.co/600x160/000000/FFFFFF/png?text=HELLO+OCR — compare ok true JSON in llms.txt. First key includes 1 free credit. Quote first with quote_credits (no debit). Debits 1 credit on ok:true (credit.debit reason=ocr_success). 200 bodies include credits_burned and credits_remaining. HTTP fails use code/message/retryable/next (error aliases message). 401 next=refresh key. 402: code=insufficient_credits, retryable=false, next=buy credits. Retryable fails use next=retry.
Read only
Input schema
{'type': 'object', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'required': ['url'], 'properties': {'url': {'type': 'string', 'description': 'Absolute http(s) image URL to OCR. Golden proof URL: https://placehold.co/600x160/000000/FFFFFF/png?text=HELLO+OCR'}}}
quote_credits
Quote credit cost — image ocr, ocr text, vision text
Dry-run cost for an op without debit (GET /credits/quote?op=ocr). Returns cost, balance, and would_succeed.
Read only
Input schema
{'type': 'object', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'properties': {'op': {'type': 'string', 'description': 'Operation to quote. Defaults to ocr.'}}}
revoke_key
Revoke caller key — image ocr, ocr text, vision text
Invalidate the presented secret (POST /keys/revoke). Same id is revoked; old secret then fails 401 invalid_api_key. Prefer Authorization: Bearer; X-API-Key is an alias only. No ops file-edit.
Destructive
Input schema
{'type': 'object', 'properties': {}}
rotate_key
Rotate caller key — image ocr, ocr text, vision text
Replace the presented secret (POST /keys/rotate). Same id/caller_id and credits. New ocr_… is returned once. Old secret then fails 401 invalid_api_key. Prefer Authorization: Bearer; X-API-Key is an alias only. No ops file-edit.
Input schema
{'type': 'object', 'properties': {}}
verify_key
Verify caller key — image ocr, ocr text, vision text
Confirm IMAGE_OCR_API_KEY or Authorization: Bearer (GET /keys/verify). X-API-Key is an alias only. Does not echo the secret.
Read only
Input schema
{'type': 'object', 'properties': {}}
Added
health
Sept. 19, 2026, 2:40 a.m.
Added
ocr_extract
Sept. 19, 2026, 2:40 a.m.
Added
credit_events
Sept. 19, 2026, 2:40 a.m.
Added
credit_balance
Sept. 19, 2026, 2:40 a.m.
Added
quote_credits
Sept. 19, 2026, 2:40 a.m.
Added
confirm_credits
Sept. 19, 2026, 2:40 a.m.
Added
checkout_credits
Sept. 19, 2026, 2:40 a.m.
Added
list_credit_packs
Sept. 19, 2026, 2:40 a.m.
Added
revoke_key
Sept. 19, 2026, 2:40 a.m.
Added
rotate_key
Sept. 19, 2026, 2:40 a.m.
Added
verify_key
Sept. 19, 2026, 2:40 a.m.
Added
issue_key
Sept. 19, 2026, 2:40 a.m.