Your first AI agent
Let an AI assistant discover a device, capture a page, and retrieve the local image. Complete Installation and authorization first, and choose a client that supports a local stdio MCP server. A client that only supports remote HTTP MCP cannot use the launch configuration below directly.
1. Add an MCP server
Add czur-open to your AI client's MCP configuration. The examples use the common mcpServers JSON format; follow your client's instructions for the configuration location and accepted fields.
With CLI account login
Complete czur-open auth login in a terminal, then have the client start the server as the same operating-system user:
{
"mcpServers": {
"czur-open": {
"command": "npx",
"args": ["-y", "@czur/open-mcp@latest"],
"env": {},
"disabled": false
}
}
}The first npx launch may need network access to obtain the npm package. Let the client start and manage the server; you do not need to run it manually in another terminal. Starting the server and listing tools do not require login; authorization is checked when a protected capability is called.
With a User Center API Key
Alternatively, obtain a Key from the CZUR User Center and configure it in the server environment, without account login:
{
"mcpServers": {
"czur-open": {
"command": "npx",
"args": ["-y", "@czur/open-mcp@latest"],
"env": {
"CZUR_OPEN_API_KEY": "REPLACE_WITH_YOUR_API_KEY"
},
"disabled": false
}
}
}Replace the placeholder and protect the configuration file. A nonempty Key takes precedence over account authorization and does not fall back if invalid. Never paste a real Key into a conversation or pass it as a tool argument.
Desktop apps may not inherit terminal export settings. After changing the MCP configuration or environment variables, restart the server or client so the new process receives the updated environment.
2. Check the executable and output directory
The client must be able to find npx and Node.js. If commands work in a terminal but not in the client, check the client's PATH and, if needed, use the full executable path in command.
If you installed MCP with npm install -g @czur/open-mcp@latest, you can change command to czur-open-mcp and args to []. For offline deployment, install software in advance and check the Runtime authorization and local-service requirements. A Key does not automatically make OCR or AI models offline.
By default, scan images are saved in the local user's cache directory. To choose a location, add CZUR_OPEN_MCP_IMAGE_DIR to env with an absolute directory you can write to; scans are saved in session subdirectories beneath it. Escape backslashes in Windows paths inside JSON, for example C:\\Users\\YOUR_USER\\Pictures\\CZUR Open.
3. Ask your assistant to scan a page
Start your AI agent and check that the CZUR tools have loaded. Try this request:
Please use CZUR MCP to scan a single-page document, save it as a JPG image, and analyze its contents.
Your client may ask you to approve tool calls. Check the device and operation before approving. Once an image enters the AI conversation, whether it is sent to a model service depends on the client and model configuration. Review privacy and data flows before using sensitive material.
4. Follow the scan tool sequence
These are tool-call examples, not shell commands to paste into a terminal. The assistant normally makes these calls for you.
- Call
device.listand select the actualdevice_idfrom the response. Usedevice.getfor device details if needed. - Call
scan.startto set the capture options for this session:
{
"name": "scan.start",
"arguments": {
"device_id": "YOUR_DEVICE_ID",
"page_processing": "single_page",
"color_mode": "auto_optimize",
"format": "jpg"
}
}- Capture a page with the returned
scan_id, replacing the placeholder below:
{
"name": "scan.capture",
"arguments": { "scan_id": "RETURNED_SCAN_ID" }
}- For another page, change the material and confirm before calling
scan.captureagain. When finished, call:
{
"name": "scan.finish",
"arguments": { "scan_id": "RETURNED_SCAN_ID" }
}Finish the session to release the device even if no further processing is needed. scan.finish does not delete files already delivered.
5. Retrieve images and optionally run OCR
scan.capture returns image content and an images list with local_path, file_uri, and other file information. If the client cannot display the image, open its local path instead. Do not assume an output filename.
Complete scan.finish before starting standalone OCR or enhancement tasks. Keep only one active scan session or long-running task at a time. Ask the assistant to use the returned, actual local_path in a call such as:
{
"name": "ocr.extract_text",
"arguments": { "input_path": "/ABSOLUTE/PATH/TO/your-scan.jpg" }
}The assistant can use the returned text and structured recognition data for summaries or questions. The input file must be readable by the process running MCP Server; a path on a remote client is not automatically a local input.
To export a document, use ocr.recognize, for example with input_paths and format: "pdf". Keep the returned handle, query with ocr.get, and retrieve the local file information in assets when complete. Use ocr.cancel to request cancellation. Both query and cancellation take the same handle; do not resubmit simply because a task is still running.
For startup, image-display, or session issues, see FAQ and troubleshooting.