Skip to main content

Overview

ADP MCP Server is the Model Context Protocol server for Laiye ADP. It lets MCP-compatible AI clients, such as Claude Desktop, Cursor, Copilot Chat, Tongyi Lingma, and Coze, call ADP document parsing and extraction without writing code. Unlike the CLI, MCP Server runs over Streamable HTTP. A single connection can discover available tools, submit processing tasks, and query results inside the chat window. ADP combines vision language models, large language models, and agentic decision-making. It upgrades rule-driven field extraction into goal-driven document automation. ADP can classify and extract key fields from invoices, domestic bills, purchase contracts, logistics documents, financial reports, transaction contracts, and more. It supports table parsing, content verification, and multilingual recognition without manual templates, labeled data, or rule maintenance.

Try ADP

Sign up for ADP. New users receive 100 free credits each month.

Quick start

1. Get an API key

Visit adp-global.laiye.com, register an ADP account, and get your API key from My MCP in personal settings.

2. Configure your MCP client

For private deployments, replace the domain with your actual service address.

3. Start using ADP

After connection, the AI client discovers all available ADP tools. Describe your task in chat, for example:
  • “Parse the structure of this PDF.”
  • “Extract information from this ID card.”
  • “Extract amount and date from this invoice.”

Tools

Document parsing

ToolDescription
parse_documentParse PDFs, images, Word, Excel, PPT, and other documents. Returns structured text blocks, tables, reading order, and page coordinates. Use this when the document type is unknown or when you need the raw structure first.

Bills and order extraction

ToolTitleDescription
extract_china_invoiceChina billsCovers 30+ common China bill types, including electronic invoices, common invoices, special VAT invoices, taxi tickets, train tickets, air itineraries, and fiscal invoices.
extract_global_invoiceGlobal invoices/receiptsExtracts key fields from global invoices and receipts, including invoice number, amount, tax, currency, and line items.
extract_purchase_orderOrdersExtracts order number, buyer and seller information, line items, and total amount from purchase and sales orders.

Cards and certificates

ToolTitleDescription
extract_id_cardID cardMainland China resident ID card. Front and back sides are supported.
extract_bank_cardBank cardBank card front side, including card number, bank, card type, and validity period.
extract_vehicle_certVehicle certificateMotor vehicle certificate of conformity.
extract_account_permitAccount opening permitEnterprise account opening permit.
extract_driver_licenseDriver licenseChina motor vehicle driver license. Main and secondary pages are supported.
extract_business_licenseBusiness licenseChina business license.
extract_passport_cnChinese passportPeople’s Republic of China passport.
extract_vehicle_licenseVehicle licenseChina motor vehicle license. Main and secondary pages are supported.
extract_org_code_certOrganization code certificateOrganization code certificate.
extract_household_bookHousehold registerChina household register. Home page and personal pages are supported.
extract_hk_macao_permitHong Kong and Macao permitExit-entry permit for Hong Kong and Macao.

Custom extraction

MCP also provides two tools for custom extraction applications created in the ADP platform:
ToolDescription
list_custom_extract_appsList all custom extraction applications for the current user, including app ID, name, description, labels, and output field definitions.
execute_custom_extract_appProcess a file with a specified custom extraction application. Use list_custom_extract_apps to get the app_id first.
First call list_custom_extract_apps to find the target app_id, then call execute_custom_extract_app with the file and app_id.

Tool input parameters

Document parsing and OOTB extraction tools

All out-of-the-box tools share the same input schema:
ParameterTypeRequiredDescription
filestringYesFile URL or Base64 content.
file_namestringNoFile name with extension.
with_rec_resultbooleanNoWhether to include OCR intermediate results. Default: true.
waitbooleanNoWhether to wait synchronously for the result. Default: true.
timeout_secondsintegerNoSynchronous wait timeout in seconds. Default: 300, range 1-900.

execute_custom_extract_app

This tool also requires:
ParameterTypeRequiredDescription
app_idstringYesCustom extraction application ID from list_custom_extract_apps.
File input: Values starting with http://, https://, or file:// are treated as URLs. Other values are treated as Base64 content.Sync vs async: wait=true blocks until processing completes. wait=false returns task_id immediately for later querying.

Tool output

parse_document output

{
  "task_id": "fabd7f0a4e7211f1bbc4d85ed35661fd",
  "status": 4,
  "message": "",
  "doc_recognize_result": [
    {
      "page_num": 1,
      "document_content": "Full text content of this page...",
      "document_details": []
    }
  ]
}
FieldTypeDescription
task_idstringTask ID.
statusintegerTask status code.
messagestringStatus message.
doc_recognize_resultarrayPage-level recognition results.
doc_recognize_result[].page_numintegerPage number, starting from 1.
doc_recognize_result[].document_contentstringFull page text in reading order.
doc_recognize_result[].document_detailsarrayElement-level details.
document_details[].typestringElement type, such as Text, Table, or Picture.
document_details[].textstringText content. Picture elements return image URLs.
document_details[].positionarrayBounding box coordinates.
document_details[].ocr_confidenceobjectOCR confidence values from 0 to 1.

Extraction tool output

{
  "task_id": "91283e544e7111f18cd6d85ed35661fd",
  "status": 4,
  "message": "",
  "extraction_result": [
    {
      "field_key": "invoice_number",
      "field_name": "Invoice number",
      "field_values": [
        {
          "field_value": "24VLT0591617",
          "field_confidence": 1.0,
          "references": []
        }
      ]
    }
  ]
}
Normal fields:
FieldTypeDescription
field_keystringField key.
field_namestringField name.
field_values[].field_valuestringExtracted value.
field_values[].field_confidencefloatConfidence from 0 to 1.
Table fields:
FieldTypeDescription
field_keystringTable key.
field_namestringTable name.
table_valuesarray[array]Two-dimensional array. Each row contains cells with field_name, field_key, and field_values.
If a field object contains table_values, it is a table field. If it only contains field_values, it is a normal field.

Async response with wait=false

{
  "task_id": "fabd7f0a4e7211f1bbc4d85ed35661fd",
  "status": "running"
}

Task status codes

CodeMCP statusDescription
0runningUnknown.
1runningReady or queued.
2runningProcessing.
4successSucceeded.
5failedFailed.
6failedCancelled.

Supported file formats

FormatExtensionDescription
PDF.pdfScanned and digital PDFs are supported.
Images.jpg .jpeg .png .bmp .tiff .webpMobile photos are supported.
Word.doc .docxSupported.
Excel.xls .xlsxSupported.
PPT.ppt .pptxSupported.

Authentication

ADP MCP Server uses API key authentication through a URL query parameter:
https://adp-global.laiye.com/mcp?key=<YOUR-ADP-API-Key>
  • Get the API key from My MCP in the ADP console.
  • Each API key is bound to one user and can access only that user’s applications and data.
  • The API key is used only for authentication and does not appear in request or response bodies.

FAQ

The tool list is generated dynamically based on applications initialized for the current user. On first connection, the system initializes all out-of-the-box applications. Refresh the tool list after initialization.
Make sure the uploaded file matches the tool type. For example, use extract_id_card for ID card images, not extract_vehicle_cert. The file must be a supported image or PDF.
The default timeout is 300 seconds. You can set timeout_seconds up to 900 seconds. For large or complex documents, use wait=false and query the result with task_id.
They provide equivalent capabilities but use different integration methods.
MethodBest for
MCP ServerAI clients such as Claude Desktop and Cursor. No code required.
ADP CLITerminal commands, script automation, and AI Skill integration.
OpenAPIBusiness system integration and backend service calls.

Support

OpenAPI guide

API documentation

Public cloud user guide

ADP user guide

License

  • MCP Server: Free access as part of the ADP product.
  • ADP service: Public cloud AI document processing service billed by usage. New users receive 100 free credits each month.