Prerequisites
This tutorial uses MCP / CLI and the CZUR Open SDK Runtime on your computer. Checking the environment first helps keep command-path, device, and authorization issues separate.
Prepare the host computer
- Install Node.js 20 or later and ensure its npm command is available.
- Choose a Runtime installer matching your operating system and processor architecture. See Device and system compatibility.
- For MCP, your AI client must support a local stdio MCP server and be able to start Node.js commands. A client that only supports remote HTTP MCP cannot use the local launch configuration in this tutorial directly.
- The tool process needs access to local Runtime and your input and output directories. Do not assume a remote server, container, or virtual machine can directly access USB devices attached to the host computer.
Check your terminal:
node --version
npm --versionIf either command is missing, finish installing Node.js and reopen the terminal. The terminal and AI client may have different environments. After using a Node.js version manager, also check that the AI client can find the same executable paths.
Prepare a device or local images
For your first scan, prepare:
- A powered CZUR device connected to this computer by USB.
- A flat, evenly lit sheet without sensitive information.
- A writable local result directory, such as
scansunder your working directory.
Close other scanning or video applications that may hold the device. After installation and authorization, use czur-open device list to check which devices are accessible.
You can also start with a local JPG or PNG image to try text extraction or image processing without a scanner. Local Runtime and authorization are still required.
Choose an authorization method
| Method | What to prepare | Typical use |
|---|---|---|
| Account login | Access to the account service and a browser to confirm login | Interactive local use with account authorization shared by CLI and MCP |
| API Key | A Key obtained from the CZUR User Center | Environment-managed credentials, automation, or offline/private-network deployment |
Individual users can apply for an API Key without creating a developer app. With CZUR_OPEN_API_KEY configured, the tools do not require account login first, but Runtime authorization checks still apply.
Obtaining packages and a Key may require network access. For offline or private-network deployment, read the deployment and authorization requirements and check the data flows of your OCR service, AI client, and model.
Check file and AI permissions
- The user running CLI or MCP Server must be able to read input images and write to the output directory.
- Use clear absolute paths for MCP directories. Quote terminal paths containing spaces; escape backslashes in Windows paths inside JSON.
- Do not run an AI agent with unnecessary administrator privileges. Its file access depends on the process's operating-system permissions.
- AI clients may send images and recognized text to a model service. Check behavior with a nonsensitive sample before using real documents.