AI agents, MCP & API
Connect an agent. Or call the API.
MSD exposes its security design tools through the Model Context Protocol and an HTTP API. The assistant does not invent dimensions. MSD does the calculations. Every result is a draft for a competent security designer. It is not a certified design.
What an agent can do
Call describe_capabilities for the live list, catalogues and lens ranges. The tools below use the same functions as the web app.
- Projects: create, rename, set the customer, list versions, restore a version, and move a project to the trash (
confirm: true). - Plans: PNG or JPG, a PDF page, DXF line geometry as walls, a street map fetched from the same tiles as the design tool, OpenStreetMap buildings fetched the same way, and a glTF or OBJ model. Calibrate the scale. Add floors, walls, openings, columns, obstacles, scene objects and layers.
- CCTV: place and edit cameras (mount, bearing, tilt, roll, lens and focal length), requirements, IEC 62676-4:2025 pixel-density checks, and coverage gaps.
- Access control: controlled doors, readers, locks, REX, contacts, controllers, groups, schedules and access levels, plus the resilience checks.
- Intruder detection: areas, zones, detectors, grade and standby, bus and battery checks.
- Cables, network and storage: devices, cable routes, voltage drop, PoE, bandwidth and recording.
- Hostile-vehicle lines and offshore platform, deck and hazardous zones, with the calculations read back.
- Monitor wall and layouts. Proposal text, then a Word or PDF proposal.
- Exports: ask for
export_package. That ZIP is the complete download: the PDF (with 3D views, a simulated view of every camera, and the monitor wall), the DXF set, the IFC model (model.ifc), the spreadsheet, the proposal, and the .msdz file.
There is no separate blind-spot tool. read_calculations with kind gaps reports the uncovered area. The drawing grid and the 3D orbit are views: they are not stored, and they do not change a calculation or an export. import_map fetches the street map from the same OpenFreeMap source as the design tool. import_osm fetches buildings from the Overpass API. The company logo set at sign-up or in settings appears on exports automatically.
Each save is a new version. Trashing a project does not purge it.
Addresses
- MCP (Streamable HTTP):
https://mastermindsecuritydesign.com/mcp - API:
https://mastermindsecuritydesign.com/api/v1 - OpenAPI:
/oauth/openapi.json
Grok, ChatGPT, Claude, Cursor and other MCP clients use the MCP address. Send a normal User-Agent. Cloudflare blocks the default Python urllib User-Agent, so a script that leaves it unchanged will not reach MSD.
Supported operations and authentication are described in this page and in the OpenAPI document. Agent access is off until an owner or admin allows it. A connection is for one workspace and cannot do more than that person’s role. A viewer cannot change a design.
Before you connect
- Sign in to MSD. If your account uses two-step sign-in, finish that first.
- Agent access is off until an owner or admin turns on Allow AI agents in Settings > AI agents.
- On the consent screen, Turn on and connect does both when you are allowed to.
- Approve Read to inspect a project. Approve Design only if that person should add cameras, walls, doors and windows. Approve Export only if they should download drawings.
Grok
Add a custom MCP server and paste the MCP address. Sign in when asked, pick the workspace, and approve the scopes you intend to allow.
ChatGPT
In developer mode, add a remote app with the same address. ChatGPT opens MSD’s consent page. Leave the draft notice visible when you share a result.
Claude
Add a custom connector with the address above. Claude registers itself and then asks you to approve the workspace. The same scopes apply.
Cursor
Add an MCP server in Cursor settings. Use the address above and complete the sign-in in the browser. Cursor can then call the same tools as the other assistants.
Any other MCP assistant, or your own application
Point it at the MCP address and follow the sign-in link. If it cannot use sign-in, an owner or admin can create an API key in Settings > AI agents. The key is shown once. It is stored only as a hash, and it still cannot exceed that person’s role. Scripts call /api/v1 with that key. The OpenAPI document lists the operations.
What the assistant must ask you
- A floor plan as a PNG or JPG, or the width and depth of the site in metres.
- A known distance on the image, so the plan can be calibrated. Nothing is placed before that.
- Mount height, the direction the camera looks, the target height and the distance you care about.
- A lens size. Ask
list_cataloguewithkind: lenses. Passlens_mmtoplace_camera. That uses the typical angle for the size.resolution_wandresolution_hset the pixels and do not change the horizontal angle.hfov_degandvfov_degreplace the typical angle with a datasheet figure, marked datasheet (entered).camera_typesets the symbol only. An exact camera is still available:kind: presetsandpreset_idsuch as TUR-019@6mm. There, datasheet means the angle is published for that focal length, and calculated means the focal length sits between the published ends.
If a measurement is missing, MSD says what it needs and does not guess. The pass rule is the strictest of the horizontal and vertical checks, min(M1, M3h, M3v).
Drawings
PDF, spreadsheet, DXF and IFC downloads use the same design as the tool, with the draft notice added to the report. Open the DXF in AutoCAD, or in other DXF-compatible CAD: the units are metres, the layers are organised, and device IDs and tags are kept. Ask for export_ifc, or use Model (IFC) in the tool, for an IFC4 model. Open it in Revit with Open IFC, or link it into your project model. It also opens in other IFC-compatible BIM tools. The model includes walls with door openings, doors, columns, racking, security devices, cable routes and containment, and fire-stopped wall penetrations. Camera view volumes are optional and sit on the layer MSD_ViewVolumes. Mounting height, lens, tilt, IEC 62676-4:2025 distances, and cable ID and length are typed properties, so they can be scheduled in Revit. The complete package includes the DXF and model.ifc. These files are a starting point for coordination and detailed design, and remain subject to professional review.