Skip to main content

iApp AI MCP Server

MCP (Model Context Protocol) server for the iApp AI Marketplace — connect AI assistants like Claude to 30+ Thai-focused AI APIs: OCR, eKYC, Thai NLP, LLMs, speech, and image/video generation.

Features

Category Tools
eKYC Thai ID card OCR (front/back/photocopy), passport OCR, driver license OCR, bank book OCR, face verification, face detection, face liveness, face+ID KYC, face recognition (1:N)
Document OCR General Thai document OCR (text, layout, Word, PowerPoint, Excel, searchable PDF), receipt, credit card statement, tax deduction certificate (50 ทวิ), civil registration certificate, resume/CV extraction + AI evaluation, job description extraction
Thai NLP Chinda MT Thai-English translation with rules, multilingual translation (28 languages), summarization, sentiment analysis, toxicity classification, Thai QA, question generation
LLM DeepSeek-V3.2, DeepSeek V4 (Flash/Pro), OpenThai 2.0 (Thai vision-language), OpenThai SystemOne (typed decisions), OpenThai 2.0 Legal (RAG-grounded Thai law), Thanoy Thai Legal AI
Speech Chinda ASR Pro v2 speech-to-text (Thai/English/Chinese, up to 8 hours, speaker labels, vocabulary), Chinda TTS text-to-speech (3 voices + a library of 10, 8 styles), voice cloning, AI audio watermark detection
Image/Video Image generation (Google Nano Banana / Pro), images with exact Thai text (19 Thai typefaces), slide generation, 2x/4x image upscaling, background removal, Seedance 2.5 video generation (async submit + status)
Smart City & Data Thai license plate recognition, power/water meter OCR, route optimization, Thai holiday data

Prerequisites

  • An iApp API key:
    1. Login / register at iapp.co.th
    2. Go to API Keys in the control panel
    3. Click Create New API Key, name it, and create
    4. Copy the key — it is only shown once!

Installation

The server is published as iapp-mcp on PyPI and iapp-mcp on npm — use whichever package manager you prefer:

Python (3.10+)

Package manager Run without installing Install permanently
uv uvx iapp-mcp uv tool install iapp-mcp
pip — pip install iapp-mcp

Node.js (18+)

The npm package is a thin launcher for the Python server, so uv must be installed (one time): curl -LsSf https://astral.sh/uv/install.sh | sh or brew install uv

Package manager Run without installing Install permanently
npm npx -y iapp-mcp npm install -g iapp-mcp
yarn yarn dlx iapp-mcp yarn global add iapp-mcp
pnpm pnpm dlx iapp-mcp pnpm add -g iapp-mcp

Every "install permanently" option gives you the same iapp-mcp command:

IAPP_API_KEY=YOUR_API_KEY iapp-mcp

Configuration

Claude Code

Use the claude mcp add CLI — pick the command matching how you installed (see above), pass your API key with -e, and add -- before the launch command:

# uv / uvx (recommended, nothing to install)
claude mcp add iapp-mcp -s user -e IAPP_API_KEY=YOUR_API_KEY -- uvx iapp-mcp

# npm / npx
claude mcp add iapp-mcp -s user -e IAPP_API_KEY=YOUR_API_KEY -- npx -y iapp-mcp

# already installed permanently (pip / uv tool / npm / yarn / pnpm)
claude mcp add iapp-mcp -s user -e IAPP_API_KEY=YOUR_API_KEY -- iapp-mcp
  • -s user registers it for every project (use -s project to check it into this repo's .mcp.json and share with teammates, or -s local for just the current project on this machine).
  • Verify it's connected: claude mcp list (or /mcp inside a Claude Code session).
  • Remove it later with claude mcp remove iapp-mcp.

Once added, no special syntax is needed to use it — just describe what you want in chat (see Usage Examples below) and Claude Code automatically calls the right iapp-mcp tool.

Other MCP clients (Claude Desktop, Cursor, etc.)

Add the server to your MCP client's configuration file. Pick the block matching how you installed:

PyPI + uv (recommended):

{
  "mcpServers": {
    "iapp-mcp": {
      "command": "uvx",
      "args": ["iapp-mcp"],
      "env": {
        "IAPP_API_KEY": "YOUR_API_KEY"
      }
    }
  }
}

npm:

{
  "mcpServers": {
    "iapp-mcp": {
      "command": "npx",
      "args": ["-y", "iapp-mcp"],
      "env": {
        "IAPP_API_KEY": "YOUR_API_KEY"
      }
    }
  }
}

Installed permanently (pip / uv tool / npm / yarn / pnpm):

{
  "mcpServers": {
    "iapp-mcp": {
      "command": "iapp-mcp",
      "env": {
        "IAPP_API_KEY": "YOUR_API_KEY"
      }
    }
  }
}

The server runs over stdio, so any MCP client (desktop apps, IDEs, custom apps using the MCP SDK) can launch it with any of the commands above and the IAPP_API_KEY environment variable set.

Tools Reference

All 48 tools, what they do, and their key inputs. File inputs are local file paths; generated files are saved to the output_path you specify.

eKYC

Tool What it does Key inputs
iapp_thai_id_card_ocr Read data from a Thai national ID card photo file_path, side (front/back)
iapp_thai_id_card_photocopy_ocr Read a photocopied ID card + detect signature file_path
iapp_passport_ocr Read MRZ + personal data from any passport file_path, segmentation (for skewed photos)
iapp_thai_driver_license_ocr Read a Thai driver license file_path
iapp_book_bank_ocr Read account name/number from a bank book page file_path
iapp_face_verification Check if two face photos are the same person (1:1) image1_path, image2_path, threshold
iapp_face_detection Find face(s) + bounding boxes in a photo file_path, mode (single/multi)
iapp_face_liveness Detect photo-of-photo / screen spoofing file_path
iapp_face_id_card_kyc Match a selfie against the face on an ID card id_card_path, selfie_path
iapp_face_recognition Enroll & search faces in a company database (1:N) action (add/remove/check/recognize_single/recognize_multi), company, file_path, name, password

Thai Document OCR

Tool What it does Key inputs
iapp_document_ocr OCR any Thai document (0.049 IC a page for text, 0.15 IC for the rest) file_path, mode: text (raw text), layout (structure + bounding boxes), docx / pptx / xlsx (convert to Word, PowerPoint, Excel), searchablePDF
iapp_receipt_ocr Extract line items & totals from Thai receipts file_path, return_ocr
iapp_credit_card_statement_ocr Extract transactions from card statements file_path, return_ocr
iapp_tax_deduction_certificate_ocr Read withholding tax certificates (50 ทวิ) file_path, return_ocr
iapp_civil_registration_ocr Read Thai civil registration certificates file_path, return_ocr
iapp_resume_ocr Extract structured data from a resume/CV + AI evaluation file_path
iapp_job_description_ocr Extract structured data from a job description file_path

Large Language Model

Tool What it does Key inputs
iapp_llm_chat Chat with LLMs hosted on iApp (OpenAI-compatible) prompt (or full messages), model: deepseek-chat (default) / deepseek-reasoner / deepseek-v4-flash / deepseek-v4-pro / openthai2.0, system_prompt, image_path and thinking (openthai2.0), max_tokens, temperature
iapp_openthai_systemone Typed decisions (choice / score / yes-no) with calibrated probabilities, no text generated (free preview) state, questions, order_invariant
iapp_openthai_legal_chat Ask Thai legal questions with verifiable มาตรา citations, grounded in the 2,065 Thai laws of its retrieval index; returns the statute sections used prompt (or full messages), rag (default true), rag_top_k (max 20), rag_inject (user/system), max_tokens, temperature
iapp_thanoy_legal_qa Ask Thai legal questions (Thanoy Legal AI) query
Tool What it does Key inputs
iapp_thai_law_list Catalogue of the indexed Thai laws (free); call first to get valid law names q (optional name filter)
iapp_thai_law_section Verbatim มาตรา text; optionally the Supreme Court decisions citing it law (exact name, e.g. ประมวลกฎหมายอาญา), section (e.g. 335), with_deka
iapp_thai_law_search Semantic search over 2,346 Thai laws from a Thai fact pattern query, top_k (1–20, default 8)
iapp_thai_deka_search Precedent search across 133,159 Supreme Court documents; filter to decisions citing a section query, cites_law (e.g. ป.อ.), cites_section, year_from (default 2540), top_k (default 5)
iapp_thai_deka_get One ruling by ฎีกา number (1234/2565 or 1234-2565) case_id, include_body (up to 4,000 chars)
iapp_thai_legal_ask Grounded legal answer with machine-verified citations; refuses instead of guessing question, include_deka (default true)

Thai NLP

Tool What it does Key inputs
iapp_translate Thai-English with Chinda MT (follows your rules); 28 languages otherwise text, source_lang, target_lang (e.g. th, en, ja, zh, ko, …), rules (th-en only)
iapp_summarize Summarize Thai/English text text, style (standard/clarify/friendly), language (th/en)
iapp_sentiment_analysis Classify Thai text as positive/neutral/negative text
iapp_toxicity_classification Detect toxic Thai text text
iapp_thai_qa Answer a question from a given Thai document (extractive QA) question, document
iapp_question_generation Generate Q&A pairs from Thai text text

Speech Technology

Tool What it does Key inputs
iapp_speech_to_text Transcribe audio or video (up to 8 h) into timestamped, speaker-labelled segments with Chinda ASR Pro v2 file_path, language (th/en/zh), quality (pro-v2 default / base / pro), vocabulary, speaker_labels
iapp_text_to_speech Speak Thai text with Chinda TTS and save the audio text, output_path, voice (kaitom/kaimook/kaidang or a library voice: child-f ... senior-m), style (8), format (wav/mp3)
iapp_voice_clone_tts Speak any text in a voice cloned from a 10-20 s sample text, ref_audio_path, output_path, consent, style, format, denoise
iapp_ai_audio_detection Check if audio was AI-generated audio_path

Image and Video Generation

Tool What it does Key inputs
iapp_image_generation Generate an image from text (Google Nano Banana) prompt, output_path, model (nanobanana / nanobanana-pro)
iapp_thai_image_generation Generate an image with Thai text rendered exactly, in 19 Thai typefaces prompt, output_path, text, font, size
iapp_slide_generation Generate a finished presentation slide as an image title, content, output_path, style, aspect_ratio
iapp_image_upscale Enlarge an image 2x or 4x with reconstructed detail file_path, output_path, scale, model (photo/anime/fast), output_format
iapp_remove_background Remove the background from an image file_path, output_path
iapp_video_generation_submit Submit an async Seedance video job prompt, model (seedance-2.5 default / seedance / seedance-fast), duration (up to 30 s on 2.5), ratio, resolution, generate_audio
iapp_video_generation_status Poll a video job and get the download URL task_id

Smart City AI and Thai Data

Tool What it does Key inputs
iapp_license_plate_ocr Read Thai vehicle license plates from photos file_path
iapp_meter_ocr Read power/water meter values from photos file_path
iapp_route_optimization Optimize delivery routes for multiple drivers (≤100 stops) origin_address + coordinates, stops, driver_count
iapp_thai_holidays Look up Thai public holidays year, or start_date+end_date, or nothing (around today)

Usage Examples

Once connected — in Claude Code, Claude Desktop, or any other MCP client — just ask in plain language; no special command syntax is needed:

1. Electronic Know Your Customer (eKYC)

  • "อ่านข้อมูลจากบัตรประชาชนในไฟล์ idcard.jpg" — Thai National ID Card OCR (iapp_thai_id_card_ocr, front/back)
  • "อ่านสำเนาบัตรประชาชนที่มีลายเซ็นในไฟล์ copy.png" — Photocopied ID Card With Signature Detection (iapp_thai_id_card_photocopy_ocr)
  • "Extract the MRZ data from passport.jpg" — Passport OCR (iapp_passport_ocr)
  • "อ่านข้อมูลใบขับขี่จาก license.png" — Thai Driver License OCR (iapp_thai_driver_license_ocr)
  • "อ่านเลขบัญชีจากหน้าสมุดบัญชี bookbank.png" — Thai Bank Book OCR (iapp_book_bank_ocr)
  • "เช็คว่ารูป selfie.jpg กับ idcard.jpg เป็นคนเดียวกันไหม" — Face Verification (iapp_face_verification)
  • "หาใบหน้าทั้งหมดในรูป group.jpg" — Face Detection (iapp_face_detection, single/multi)
  • "ตรวจว่ารูป face.jpg เป็นภาพถ่ายคนจริงหรือภาพปลอม" — Face Passive Liveness / Spoofing Check (iapp_face_liveness)
  • "ทำ KYC: เทียบหน้าใน selfie.jpg กับรูปบนบัตรประชาชน idcard.jpg" — Face and ID Card Verification for KYC (iapp_face_id_card_kyc)
  • "ลงทะเบียนใบหน้าพนักงานใหม่ แล้วลองค้นหาว่าใบหน้าในรูปนี้คือใคร" — Face Recognition 1:N (iapp_face_recognition: add / recognize / check / remove)

2. Large Language Model

  • "ถาม DeepSeek ว่า ส้มตำมีกี่แคลอรี่" — DeepSeek-V3.2 non-thinking, ค่าเริ่มต้น (iapp_llm_chat, model=deepseek-chat)
  • "ใช้ DeepSeek V4 Flash ช่วยจัดหมวดหมู่ข้อความลูกค้าพวกนี้" — DeepSeek V4 Flash/Pro (iapp_llm_chat, model=deepseek-v4-flash / deepseek-v4-pro)
  • "ใช้ DeepSeek reasoner วิเคราะห์โจทย์คณิตข้อนี้แบบละเอียด" — DeepSeek-V3.2 thinking/non-thinking (iapp_llm_chat, model=deepseek-reasoner / deepseek-chat)
  • "ใช้ OpenThai 2.0 อ่านลายมือในรูป note.jpg ออกมาเป็นข้อความ" — OpenThai 2.0 vision (iapp_llm_chat, model=openthai2.0, image_path, thinking=false)
  • "จัดตั๋วลูกค้าพวกนี้เข้าทีมที่ถูก และบอกว่าลูกค้าโกรธแค่ไหน" — OpenThai SystemOne typed decisions (iapp_openthai_systemone)
  • "ลักทรัพย์ในเวลากลางคืน ผิดมาตราใด อ้างอิงตัวบทด้วย" — OpenThai 2.0 Legal, ตอบพร้อมมาตราที่ค้นคืนมา (iapp_openthai_legal_chat)
  • "ถามทนอย: สัญญาเช่าบ้านไม่มีลายเซ็นพยานมีผลไหม" — Thanoy Thai Legal AI Chatbot (iapp_thanoy_legal_qa)
  • "ขอตัวบท ป.อ. มาตรา 335 พร้อมฎีกาที่เกี่ยวข้อง" — Thai Legal Data, มาตราตรงตัว + ฎีกาที่อ้างถึง (iapp_thai_law_section)
  • "หาฎีกาที่ตีความ ป.อ. มาตรา 335 หลังปี 2560" — ค้นฎีกาแบบกรองตามมาตรา (iapp_thai_deka_search)
  • "ลักทรัพย์ในเวลากลางคืนมีโทษอย่างไร ตอบแบบอ้างอิงได้" — ถาม-ตอบอิงข้อมูลจริงพร้อมการอ้างอิงที่ตรวจสอบแล้ว (iapp_thai_legal_ask)

3. Image Generation

  • "สร้างรูปแมวใส่ชุดไทยนั่งริมเจ้าพระยา เซฟเป็น cat.png" — Google Nano Banana Image Generation (iapp_image_generation, nanobanana / nanobanana-pro)
  • "ทำโปสเตอร์ลดราคา เขียนว่า 'ลดทั้งร้าน 50%' ฟอนต์ Kanit เซฟเป็น sale.png" — Image Generation with exact Thai text (iapp_thai_image_generation)
  • "ขยายรูป logo.png ให้ใหญ่ขึ้น 4 เท่า" — Image Upscaler (iapp_image_upscale)
  • "ลบพื้นหลังออกจากรูปสินค้า product.jpg" — Background Removal (iapp_remove_background)

4. Thai Document OCR

  • "OCR เอกสาร contract.pdf เอาข้อความทั้งหมด" — General Thai Document OCR, raw text (iapp_document_ocr, mode=text)
  • "วิเคราะห์โครงสร้างเอกสาร report.jpg เอา bounding box ด้วย" — Document Structure Analysis + OCR (iapp_document_ocr, mode=layout)
  • "แปลงเอกสารสแกนนี้เป็นไฟล์ Word" — OCR to DOCX (iapp_document_ocr, mode=docx; also pptx, xlsx, searchablePDF)
  • "สกัดข้อมูลจาก resume.pdf แล้วประเมินความเหมาะสมกับตำแหน่ง" — AI Resume / CV Extraction + Evaluation (iapp_resume_ocr)
  • "อ่านรายการใช้จ่ายจาก statement บัตรเครดิต statement.jpg" — Thai Credit Card Statement OCR (iapp_credit_card_statement_ocr)
  • "สกัดข้อมูลตำแหน่งงานจากไฟล์ jd.pdf" — Job Description OCR + Extraction (iapp_job_description_ocr)
  • "อ่านข้อมูลทะเบียนบ้านจาก house_reg.jpg" — Thai Civil Registration Certificate OCR (iapp_civil_registration_ocr)
  • "OCR ใบเสร็จ receipt.jpg แล้วรวมยอดให้หน่อย" — Thai Receipt OCR (iapp_receipt_ocr)
  • "อ่านหนังสือรับรองหักภาษี ณ ที่จ่าย (50 ทวิ) ไฟล์นี้" — Thai Tax Deduction Certificate OCR (iapp_tax_deduction_certificate_ocr)

5. Video Generation

  • "Generate a 5-second video of a cat surfing at sunset" — Seedance 2.5 Video Generation (iapp_video_generation_submit → iapp_video_generation_status)

6. Speech Technology

  • "ถอดเสียงไฟล์ประชุม meeting.mp3 พร้อมระบุว่าใครพูด ชื่อในที่ประชุมมี ศรัณย์ และ ไอแอพพ์" — Chinda ASR Pro v2 with speaker labels and vocabulary (iapp_speech_to_text, language=th, vocabulary)
  • "Transcribe interview.mp3 (English audio)" — Chinda ASR Pro v2 English (iapp_speech_to_text, language=en)
  • "ถอดเสียงไฟล์เสียงภาษาจีนนี้" — Chinda ASR Pro v2 Chinese (iapp_speech_to_text, language=zh)
  • "อ่านข้อความนี้ด้วยเสียงไข่มุก แบบเป็นกันเอง เซฟเป็น speech.wav" — Chinda TTS (iapp_text_to_speech, voice=kaimook, style=friendly)
  • "ให้เสียงคุณตาเล่านิทานประโยคนี้" — Chinda TTS voice library (iapp_text_to_speech, voice=senior-m)
  • "โคลนเสียงของฉันจาก ref.wav แล้วให้พูดประโยคนี้" — Voice Cloning TTS (iapp_voice_clone_tts, consent=true)
  • "เช็คว่าไฟล์เสียง audio.wav เป็นเสียง AI สร้างหรือเสียงคนจริง" — AI Audio Detection (iapp_ai_audio_detection)

7. Smart City AI

  • "จัดเส้นทางส่งของ 20 จุดนี้ให้คนขับ 3 คน เริ่มจากคลังสินค้า" — Automatic Route Optimization (iapp_route_optimization)
  • "อ่านป้ายทะเบียนรถจากภาพกล้องวงจรปิด cctv.jpg" — Thai Vehicle License Plate OCR (iapp_license_plate_ocr)
  • "อ่านเลขมิเตอร์น้ำ/ไฟจากรูป meter.jpg" — Power & Water Meter OCR (iapp_meter_ocr)

8. Thai Natural Language Processing

  • "สรุปบทความยาว ๆ นี้ให้เหลือย่อหน้าเดียว" — Text Summarization (iapp_summarize)
  • "จากเอกสารนี้ ช่วยตอบคำถาม: โครงการเริ่มเมื่อไหร่" — Thai Auto Question Answering / ThaiQA (iapp_thai_qa)
  • "สร้างคำถาม-คำตอบจากเนื้อหาบทเรียนนี้ไว้ทำแบบทดสอบ" — Thai Question Generator (iapp_question_generation)
  • "แปลสัญญานี้เป็นภาษาอังกฤษ ใช้ภาษาทางการ และแปล บาท เป็น THB" — Chinda MT with rules (iapp_translate, th to en, rules)
  • "แปลข้อความนี้เป็นภาษาญี่ปุ่น" — Multilingual Translation, 28 languages (iapp_translate)
  • "วิเคราะห์ว่ารีวิวลูกค้าพวกนี้เป็นบวกหรือลบ" — Thai Sentiment Analysis (iapp_sentiment_analysis)
  • "ตรวจว่าคอมเมนต์พวกนี้มีข้อความ toxic ไหม" — Thai Text Toxicity Classification (iapp_toxicity_classification)

9. Thai Data API

  • "วันหยุดราชการไทยปีหน้ามีวันไหนบ้าง" — Thai Holiday Data API (iapp_thai_holidays)

Notes

  • Most tools consume iApp credits (IC) per call — costs are documented in each tool description.
  • File-based tools accept local file paths; generated audio/images are saved to the path you specify.
  • Large base64 blobs in API responses (e.g. cropped face images) are truncated in tool output to keep context small.
  • Seedance video generation requires a paid iApp account (any IC package purchase unlocks it).

Support

License

© iApp Technology Co., Ltd.

Metadata

Release files for iapp-mcp 2.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for iapp-mcp 2.2.0
File Size Uploaded Provenance Actions
iapp_mcp-2.2.0.tar.gz 36.6 kB Without provenance Details for iapp_mcp-2.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for iapp-mcp 2.2.0
File Interpreter ABI Platform Actions
iapp_mcp-2.2.0-py3-none-any.whl Python 3 none any Details for iapp_mcp-2.2.0-py3-none-any.whl

Total release size: 78.4 kB

Release files / iapp_mcp-2.2.0.tar.gz

Download URL iapp_mcp-2.2.0.tar.gz
Size 36.6 kB
Tags Source
SHA-256 checksum
How to use checksums
39b4dedc433a28b9b309214fc5aa131d19dee499418999db0a96ba2ae0458545
BLAKE2b-256 checksum
How to use checksums
53dd45fd85eaf43507a93452be2586589a7fbc441b186d9c930c60dfa0d5cf9c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.7.19

Release files / iapp_mcp-2.2.0-py3-none-any.whl

Download URL iapp_mcp-2.2.0-py3-none-any.whl
Size 41.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0b1d0c0f3b6ef550ca966d3b9ae3a6648c7e36903b1d1e10054511184d391969
BLAKE2b-256 checksum
How to use checksums
6774340856780020129db06a6924920fc49c0dcc67f0f02e467c8d8aca1ccd75
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.7.19

Security for iapp-mcp 2.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page