cadlens-mcp
v0.6.0Model Context Protocol server that wraps the CADLens REST API.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
cadlens_parse_file
Parse a local CAD file (DWG/DXF/DWF/DWFx/DGN-V7/PDF, max 100 MB). Polls until the job completes or 5 minutes elapse. Returns a summary including the preview image URL. Use cadlens_get_result with the returned job_id to fetch detailed entity data.
| Parameter | Type | Description |
|---|---|---|
path * | string | Absolute path to the file on the local filesystem. |
notify_email | string | Optional email address CADLens notifies with a job link when the parse finishes unattended. |
webhook_url | string | Optional external webhook URL for state-change notifications. Independent of the auto-registered local receiver. |
cadlens_parse_url
Download a CAD file from a URL (max 100 MB) and parse it. Same output as cadlens_parse_file.
| Parameter | Type | Description |
|---|---|---|
url * | string | HTTPS URL pointing to a CAD file. |
notify_email | string | Optional email address CADLens notifies with a job link when the parse finishes unattended. |
webhook_url | string |
cadlens_get_job
Check the status of a CAD parse job. Returns PENDING, PROCESSING, COMPLETED, or FAILED.
| Parameter | Type | Description |
|---|---|---|
job_id * | string | The job_id returned by parse_file/parse_url. |
cadlens_get_result
Fetch the parsed result of a completed CAD job. Use mode='summary' (default) for an overview, 'entities_by_type' or 'entities_on_layer' for filtered detail, or 'full' for the complete vector JSON (can be very large — only use when explicitly needed).
| Parameter | Type | Description |
|---|---|---|
job_id * | string | |
entity_type | string | Required when mode='entities_by_type'. |
layer_name | string | Required when mode='entities_on_layer'. |
mode | string |
cadlens_refresh_image_url
Re-fetch the presigned preview-image URL for a completed job. Cheaper than re-fetching the full result. The URL is valid for 3600 seconds.
| Parameter | Type | Description |
|---|---|---|
job_id * | string |
cadlens_list_jobs
List the 100 most recent CAD parse jobs for the configured API key, newest first.
cadlens_delete_job
Delete a job and its uploaded file and preview image from CADLens storage. Irreversible.
| Parameter | Type | Description |
|---|---|---|
job_id * | string |