ID Verification MCP Tool: Let an AI Agent Check IDs Without Seeing Personal Data A developer released an open-source MCP server tool, parse_id, that lets AI agents verify identity documents while returning only a verdict by default, keeping names, birth dates and document numbers out of the model's context, request logs and saved transcripts. The tool calls an ID Document OCR API and returns fields such as next_step, document type, country, expiry status, an age_18_or_over flag and MRZ-checked fields, with an optional detail="identity" mode that adds personal details with the document number masked to its last four characters. In sessions run in Claude Code on public specimen documents, the agent accepted a valid French ID card, flagged an expired Korean passport, and switched to identity mode on its own when asked to fill a form. Your onboarding or support agent receives a photo of a customer's ID. It needs two answers: is the document usable, and is the person old enough. It does not need the name, the birth date or the document number for that. Yet whatever a tool returns lands in the conversation, the model provider's request, your logs and saved transcripts. This guide adds an ID verification tool to an AI agent through MCP that returns a verdict, not personal data, unless the task needs the identity. The tool is parse id , part of our open source AI Engine MCP server https://github.com/ai-engine-dev/api-examples/tree/master/mcp-server , and it calls the ID Document OCR API https://ai-engine.net/apis/id-document-ocr?utm source=devto&utm medium=referral&utm campaign=crosspost . Sessions below ran in Claude Code on 4 December 2026 on public specimens. detail="verdict" default : next step , document type, country, is expired , age 18 or over , fields checked by the MRZ, anything missing. No name, no birth date, no document number. detail="identity" : adds names, dates, nationality and sex, for tasks like filling a form. The document number is masked except its last 4 characters. min age 18 by default , so the birth date does not have to enter the conversation. Subscribe to the ID Document OCR API on RapidAPI free plan available , then in Claude Code: claude mcp add ai-engine -e RAPIDAPI KEY=your key -- \ uvx --from "git+https://github.com/ai-engine-dev/api-examples subdirectory=mcp-server" ai-engine-mcp A customer uploaded id front.jpg and id back.jpg to open an account. Is the ID valid and is the customer an adult? The full tool result the agent received: { "next step": "accept", "document type": "id card", "country": "FRA", "sides": 2, "status": "ok", "is expired": false, "age 18 or over": true, "checked by mrz": "birth date", "document number", "expiry date", "first name", "last name", "nationality", "sex" , "missing critical fields": , "mismatched fields": , "consistency issues": } Yes on both counts. The ID passes the check and the holder is 18 or older. I asked only for the yes/no result, so no personal details name, date of birth, ID number came into this conversation. If you need them to fill in the account form, I can run it again and ask for them. The agent never opened the images and never saw the name, and still answered completely. Same check for passport.jpg, a new customer: can we open the account? { "next step": "ask for a document that is not expired", "document type": "passport", "country": "KOR", "sides": 1, "status": "ok", "is expired": true, "age 18 or over": true, "checked by mrz": "birth date", "document number", "expiry date", "first name", "last name", "nationality", "sex" , "missing critical fields": , "mismatched fields": , "consistency issues": } Not yet. The passport is expired, so ask the customer for a document that is still valid. I ran the check without personal details, so I didn't see the name, birth date or document number. If you need them, for example to fill in the account form, I can run it again with the identity details turned on. next step folds verdict, expiry and age into one instruction, so the agent does not have to combine them. Fill form.json with the customer's details from id front.jpg and id back.jpg. The agent chose detail="identity" by itself. The identity part of the result: { "fields": { "last name": { "value": "MARTIN", "status": "mrz confirmed" }, "first name": { "value": "MAELYS GAELLE MARIE", "status": "mrz confirmed" }, "birth date": { "value": "1990-07-13", "status": "mrz confirmed" }, "expiry date": { "value": "2030-02-11", "status": "mrz confirmed" }, "nationality": { "value": "FRA", "status": "mrz confirmed" }, "sex": { "value": "F", "status": "mrz confirmed" }, "document number": { "value": " PFW4", "status": "mrz confirmed" } } } Even here the document number arrived as PFW4 . If a form needs the full number, read it in backend code, not through the chat. The full tool code, a test client and production tips are in the original article: ID Verification MCP Tool on ai-engine.net https://ai-engine.net/blog/id-verification-mcp-tool?utm source=devto&utm medium=referral&utm campaign=crosspost . For the face step of remote onboarding, see the selfie to ID verification guide https://ai-engine.net/blog/ekyc-saas-selfie-id-verification?utm source=devto&utm medium=referral&utm campaign=crosspost . Get a key on the ID Document OCR API page https://ai-engine.net/apis/id-document-ocr?utm source=devto&utm medium=referral&utm campaign=crosspost , add the server with the command above and ask your assistant to check the French ID card specimen.