cadlens-mcp

v0.6.0
io.github.cadlens-co/cadlens-mcp Checked 2 days ago Published 3 months ago

Model 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.

ParameterTypeDescription
path *stringAbsolute path to the file on the local filesystem.
notify_emailstringOptional email address CADLens notifies with a job link when the parse finishes unattended.
webhook_urlstringOptional 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.

ParameterTypeDescription
url *stringHTTPS URL pointing to a CAD file.
notify_emailstringOptional email address CADLens notifies with a job link when the parse finishes unattended.
webhook_urlstring

cadlens_get_job

Check the status of a CAD parse job. Returns PENDING, PROCESSING, COMPLETED, or FAILED.

ParameterTypeDescription
job_id *stringThe 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).

ParameterTypeDescription
job_id *string
entity_typestringRequired when mode='entities_by_type'.
layer_namestringRequired when mode='entities_on_layer'.
modestring

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.

ParameterTypeDescription
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.

ParameterTypeDescription
job_id *string