mcpField
L
Laiye Adp Mcp

Laiye Adp Mcp

Remote
github.com/Laiye-ADPAI & Agents0Updated 17w ago
Repository

About Laiye Adp Mcp

Laiye Adp Mcp brings enterprise document processing to AI agents, parsing files and extracting structured fields from invoices, orders, certificates, and other documents. It also supports custom extraction apps created on the ADP platform.

Key features

  1. 01Parse document layouts and tables
  2. 02Extract invoice and order fields
  3. 03Recognize IDs and business certificates
  4. 04Run custom extraction apps
  5. 05Accept files by URL or Base64

Use cases

  1. 01Extract amounts and dates from invoices
  2. 02Enter purchase orders and line items
  3. 03Process ID or business license details
  4. 04Use custom apps to extract fields

MCP support

This MCP server gives AI agents tools for document parsing, document-specific field extraction, and custom extraction apps. It connects remotely over Streamable HTTP or locally via npx over stdio.

Configuration

Remote servers need no local install. Pick your client, then copy the config or install in one click.

Endpointhttps://adp.laiye.com/mcp?key=Your_API_Key
Copy install command
Claude CodeTerminal
Cursor.cursor/mcp.json
VS Code.vscode/mcp.json
Claude Desktopclaude_desktop_config.json
Windsurf~/.codeium/windsurf/mcp_config.json

Run commands in a terminal; paste JSON into the client’s MCP config and restart. Servers that need sign-in will prompt on first connect.

Tools

Details

From the project README

ADP MCP

Enable AI Agents to natively process business documents. It extracts structured data from invoices, purchase orders, contracts, logistics documents, financial statements and other files, supporting file upload, parsing, data extraction and result query directly within chat sessions.


About ADP MCP Server

Laiye Agentic Document Processing (ADP) MCP Server

The ADP MCP Server converts enterprise documents into callable data for AI Agents. Users can directly upload invoices, purchase orders, contracts, bills, images, spreadsheets and other files within chat conversations. ADP automatically executes content recognition, field extraction, and structured data output, cutting manual data entry, copy-pasting operations, and cross-system processing overheads.

Optimized for real-world business scenarios featuring complex layouts, tabular line items, scanned copies, multilingual receipts and lengthy documents, the ADP MCP Server delivers higher accuracy and more consistent structured outputs. It underpins downstream workflows including document review, account reconciliation, data entry, file export, and end-to-end business process automation.


Quick Start

1. Get Your API Key

Sign up at https://adp-global.laiye.com/ and retrieve your API Key from My MCP in personal settings.

README image README image README image
2. Configure Your MCP Client
Option A: Visual Settings UI (Recommended)

Most MCP clients (Cursor, Tongyi Lingma, Coze, etc.) let you add MCP servers directly from their settings panel. Using Cursor as an example:

  1. Open Settings → MCP
  2. Click Add new MCP server
  3. Fill in the following:
    • Name: ADP (any name you like)
    • Type: streamable-http
    • URL: https://adp.laiye.com/mcp?key=<YOUR-ADP-API-Key>
  4. Save — ADP tools will be available in your next conversation
Option B: Edit Config File

For Claude Desktop, add the following to claude_desktop_config.json. Both connection methods are supported:

Remote connection (Streamable HTTP)

{
  "mcpServers": {
    "adp": {
      "url": "https://adp.laiye.com/mcp?key=<YOUR-ADP-API-Key>",
      "transport": "streamable-http"
    }
  }
}

Local command (npx, stdio)

{
  "mcpServers": {
    "adp": {
      "command": "npx",
      "args": ["-y", "@laiye-adp/mcp"],
      "env": {
        "ADP_API_KEY": "<YOUR-ADP-API-Key>"
      }
    }
  }
}

The same parameters apply to any MCP client:

ParameterValue
Endpointhttps://adp.laiye.com/mcp
TransportStreamable HTTP
AuthenticationURL query param ?key=<YOUR-ADP-API-Key>

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

3. Start Using

Once connected, your AI client will automatically discover all available ADP tools. Just describe what you need in natural language:

  • "Parse the structure of this PDF"
  • "Extract the information from this ID card"
  • "Pull the amount and date from this invoice"

Tool Catalog

Document Parsing
Tool NameTitleDescription
parse_documentGeneral Document ParsingParse PDF, image, Word, Excel, PPT and other documents for layout analysis, returning structured text blocks, tables, reading order and page coordinates. Use when the document type is unknown and you need raw structure for further processing; for invoices, ID cards or other specific types, prefer the dedicated extraction tool.
Invoice & Order Extraction
Tool NameTitleDescription
extract_china_invoiceChina Invoice / BillCovers 30+ common Chinese bill types: fully-digitalized e-invoices, general VAT invoices, special VAT invoices, taxi receipts, train tickets, air itineraries, fiscal invoices, etc. Extracts invoice number, date, amount, buyer, seller and other key fields; also supports invoice authenticity verification.
extract_global_invoiceGlobal Invoice / ReceiptExtract key fields (invoice number, date, amount, tax, currency, line items, etc.) from overseas invoices, receipts or bills in PDF or image format. Ideal for cross-border trade, reimbursement and accounts-payable automation; for Chinese VAT invoices, use the dedicated China invoice tool.
extract_purchase_orderPurchase / Sales OrderExtract key fields (order number, buyer/seller info, order date, item details, quantity, unit price, total amount, shipping address, etc.) from purchase or sales orders in PDF or image format. Suitable for e-commerce order entry, supply-chain reconciliation and warehouse management automation.
Card & Certificate Extraction
Tool NameTitleDescription
extract_id_cardChina ID CardExtract key fields (name, gender, ethnicity, date of birth, ID number, address, issuing authority, validity period, etc.) from Chinese mainland resident ID card images. Supports both front and back sides. For HK/Macao/Taiwan permits or passports, use the corresponding tool.
extract_bank_cardBank CardExtract key fields (card number, issuing bank, card type, expiration date, etc.) from the front side of a bank card image. Only public card-face information is recognized; sensitive fields such as CVV are not extracted.
extract_vehicle_certVehicle CertificateExtract key fields (certificate number, vehicle brand, model, VIN, engine number, manufacturing date, etc.) from vehicle certificate of conformity images. Suitable for vehicle registration, used-car transactions and fleet management.
extract_account_permitBank Account PermitExtract key fields (company name, basic account number, bank name, approval number, issue date, etc.) from corporate bank-account opening permit images.
extract_driver_licenseChina Driver LicenseExtract key fields (name, gender, nationality, date of birth, license number, permitted vehicle class, first issue date, validity period, etc.) from Chinese motor-vehicle driver license images. Supports both main and supplementary pages.
extract_business_licenseBusiness LicenseExtract key fields (company name, unified social credit code, legal representative, registered capital, establishment date, business scope, registered address, etc.) from Chinese business license images.
extract_passport_cnChina PassportExtract key fields (Chinese name, romanized name, gender, date of birth, passport number, nationality, issue date, validity period, issuing authority, etc.) from PRC passport images. Foreign passports are not supported.
extract_vehicle_licenseVehicle LicenseExtract key fields (plate number, vehicle type, owner, VIN, engine number, registration date, issue date, etc.) from Chinese motor-vehicle license images. Supports both main and supplementary pages.
extract_org_code_certOrganization Code CertificateExtract key fields (organization name, organization code, legal representative, address, issue date, validity period, etc.) from organization code certificate images. For newly registered enterprises, use the Business License tool instead.
extract_household_bookHousehold RegisterExtract key fields (household number, household type, address, family member list including name, ID number and relationship to head of household, etc.) from Chinese household register (Hukou) images. Supports both index and individual pages.
extract_hk_macao_permitHK/Macao Travel PermitExtract key fields (name, gender, date of birth, permit number, issue date, validity period, issuing authority, etc.) from Exit-Entry Permit for Travelling to and from Hong Kong and Macao images.
Custom Extraction

In addition to the out-of-the-box tools above, MCP provides two fixed tools for working with custom extraction apps you create on the ADP platform:

Tool NameTitleDescription
list_custom_extract_appsList Custom Extraction AppsList all custom document extraction apps created by the current user, returning each app's ID, name, description, labels and output field definitions. Use this to find the app_id needed by execute_custom_extract_app.
execute_custom_extract_appExecute Custom Extraction AppProcess a file using a specified custom document extraction app. Use list_custom_extract_apps first to obtain the app_id.

Workflow: Call list_custom_extract_apps to browse available apps and get the target app_id, then call execute_custom_extract_app with the app_id and file to perform extraction.


Tool Input Parameters

Document Parsing & OOTB Extraction Tools

All out-of-the-box tools share a unified input schema:

ParameterTypeRequiredDescription
filestringYesFile URL or Base64-encoded 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

In addition to the parameters above:

ParameterTypeRequiredDescription
app_idstringYesCustom extraction app ID (obtained from list_custom_extract_apps)
list_custom_extract_apps

No input parameters required.

File input methods:

  • URL: pass a link starting with http://, https://, or file:// as file
  • Base64: pass Base64-encoded file content as file (auto-detected when not a URL)

Sync vs Async:

  • wait=true (default): blocks until processing completes, returns the result directly
  • wait=false: returns immediately with a task_id for later status queries

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": [
        {
          "type": "Text",
          "text": "Paragraph content...",
          "position": [{"points": [{"x": 311, "y": 50}, {"x": 500, "y": 50}, {"x": 500, "y": 80}, {"x": 311, "y": 80}]}],
          "ocr_confidence": {
            "ocr_mean_confidence": 0.999,
            "ocr_min_confidence": 0.998,
            "is_overall_confidence": 1
          }
        },
        {
          "type": "Table",
          "text": "Column A\tColumn B\nValue 1\tValue 2",
          "position": [{"points": [...]}],
          "ocr_confidence": {...}
        },
        {
          "type": "Picture",
          "text": "https://adp.laiye.com/web/.../file/abc123",
          "position": [{"points": [...]}],
          "ocr_confidence": {...}
        }
      ]
    }
  ]
}
FieldTypeDescription
task_idstringTask ID
statusintegerTask status code
messagestringStatus message
doc_recognize_resultarrayPer-page recognition results
doc_recognize_result[].page_numintegerPage number (1-indexed)
doc_recognize_result[].document_contentstringFull text of the page in reading order
doc_recognize_result[].document_detailsarrayElement-level details
document_details[].typestringElement type: Text, Table, or Picture
document_details[].textstringText content; image URL for Picture type
document_details[].positionarrayBounding box coordinates (4 corner points)
document_details[].ocr_confidence.ocr_mean_confidencefloatAverage OCR confidence (0–1)
document_details[].ocr_confidence.ocr_min_confidencefloatMinimum OCR confidence (0–1)
extract 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": []
        }
      ]
    },
    {
      "field_key": "line_items",
      "field_name": "Product Details",
      "references": [],
      "field_confidence": 1.0,
      "table_values": [
        [
          {
            "field_name": "Description",
            "field_key": "line_items_description",
            "field_values": [
              {
                "field_value": "TESLA MODEL 3",
                "field_confidence": 1.0,
                "references": "Description: TESLA MODEL 3"
              }
            ]
          }
        ]
      ]
    }
  ]
}

Regular field (no table_values):

FieldTypeDescription
field_keystringMachine-readable field identifier
field_namestringHuman-readable field name
field_valuesarrayExtracted values
field_values[].field_valuestringThe extracted value
field_values[].field_confidencefloatConfidence score (0–1)

Table field (has table_values):

FieldTypeDescription
field_keystringTable identifier
field_namestringTable name
table_valuesarray[array]2D array: rows of cells, each cell has field_name, field_key, field_values

How to distinguish: Field object contains table_values → table field; only field_values → regular field.

Async Response (wait=false)
{
  "task_id": "fabd7f0a4e7211f1bbc4d85ed35661fd",
  "status": "running"
}

Task Status Codes

Status CodeMCP StatusDescription
0runningUnknown
1runningReady / Queued
2runningProcessing
4successSuccess
5failedFailed
6failedCancelled

Supported File Formats

FormatExtensionsNotes
PDF.pdfSupports both scanned and electronic
Image.jpg .jpeg .png .bmp .tiff .webpSupports camera photos
Word.doc .docx-
Excel.xls .xlsx-
PPT.ppt .pptx-

Authentication

ADP MCP Server uses API Key authentication, passed via URL query parameter:

https://adp.laiye.com/mcp?key=<YOUR-ADP-API-Key>
  • API Key is available from the My MCP page in the ADP console
  • Each API Key is bound to a single user and can only access that user's apps and data
  • API Key never appears in request bodies or responses

FAQ

Q: Some card/certificate tools don't appear after connecting?

A: The tool list is dynamically generated based on your initialized apps. On first connection, the system automatically initializes all out-of-the-box apps. Refresh the tool list once initialization completes to see all available tools.

Q: A card tool returns "extraction failed"?

A: Make sure the uploaded file matches the tool type (e.g., use extract_id_card for ID card images, not extract_vehicle_cert). The file must be in a supported image or PDF format.

Q: How to handle timeouts?

A: The default timeout is 300 seconds (5 minutes). You can adjust it via the timeout_seconds parameter (max 900). For large files or complex documents, use wait=false for async mode and query results later using the task_id.

Q: How does MCP compare to ADP CLI / OpenAPI?

A: All three provide equivalent functionality — the difference is in the integration method:

MethodBest For
MCP ServerAI clients (Claude Desktop, Cursor, etc.) — no code required
ADP CLITerminal, scripting, AI Skill integration
OpenAPIBusiness system integration, backend service calls

License

  • MCP Server: Free to connect, provided as part of the ADP platform
  • ADP Service: Cloud-based AI document processing, usage-based billing

Free tier: new users receive 100 free credits per month upon registration

Get started


Support & Contact

Build the Future of Agentic AI with ❤️ Copyright © 2026 [Laiye Technology (Beijing) Co., Ltd.] All rights reserved.

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.