---
title: "XA Security API and MCP server"
description: "XA Security's public API and MCP servers: published prices, staffing estimates and Calgary patrol route checks for AI agents. No key needed."
canonical: "https://xasecurity.ca/developers"
---

# XA Security API and MCP server

> XA Security's public API and MCP servers: published prices, staffing estimates and Calgary patrol route checks for AI agents. No key needed.

For developers and AI agents

Our published prices, staffing estimates and Calgary patrol route checks, for AI assistants and anyone building with them. Public, read-only, and no key needed.

## MCP servers

Two remote MCP servers over Streamable HTTP. Add them to any MCP client (Claude, ChatGPT, Cursor and others) by URL; there is nothing to sign in to.

**XA Security**: `https://xasecurity.ca/mcp`

- `get_prices`Returns XA Security's full published price list: hourly rates for every guard, parking and stage crew role, mobile patrol stop prices, monitored camera plans and fees, and the terms (minimums, overtime, holidays, GST). Use it to answer 'how much does XA charge for…'. Prices are CAD before GST. To price specific shifts, use estimate\_staffing\_cost instead.
- `estimate_staffing_cost`Prices specific shifts of guards, parking attendants or stage crew with XA's published rate book, as the /pricing calculator does: minimums, overtime, Alberta holidays, the short-notice premium and required supervisors included. Returns line items and totals in CAD before and after GST. An estimate only: nothing is booked. For monitored cameras or patrol stops, use get\_prices or check\_patrol\_route.
- `check_patrol_route`Given a Canadian postal code, says whether the site is on XA's Calgary patrol route and what a recurring scheduled guard stop costs there (CAD before GST). Use it when someone asks about mobile patrol or guard stops at a specific Calgary address.
- `get_contact_details`Returns XA Security's phone numbers (office, toll-free, 24/7 dispatch), email, office address, and the links where a person requests service or a price. Use it when someone wants to book, ask a question or talk to XA. This server cannot send a request for them: the person sends it themselves from the link or by phone.

**XA Security docs**: `https://xasecurity.ca/mcp/docs`

- `search_site`Finds pages on xasecurity.ca (services, locations, prices, policies, guides) that match a query, from the site's index. Returns each page's title, URL and summary. Follow up with read\_page to read one.
- `read_page`Returns one page of xasecurity.ca as Markdown, given its URL or path (e.g. /mobile-patrol or https://xasecurity.ca/about). Use search\_site first if you don't know the page.

With Claude Code, for example:

```
claude mcp add --transport http xa-security https://xasecurity.ca/mcp
claude mcp add --transport http xa-security-docs https://xasecurity.ca/mcp/docs
```

Server cards: `/mcp/server-card` and `/mcp/docs/server-card`. Every tool is read-only; none of them sends a request or books anything.

## REST API

The same operations over HTTP at `https://xasecurity.ca/api/v1`, described by an OpenAPI 3.1 document at </openapi.json>.

- `GET /api/v1/prices`Every published price
- `GET /api/v1/roles`Hourly roles, paginated
- `POST /api/v1/estimates`Price shifts
- `GET /api/v1/patrol-route`Patrol stop price for a postal code

```
curl https://xasecurity.ca/api/v1/prices

curl https://xasecurity.ca/api/v1/patrol-route?postal_code=T2G4K9

curl -X POST https://xasecurity.ca/api/v1/estimates \
  -H 'Content-Type: application/json' \
  -d '{"area":"calgary","shifts":[{"role":"esg","people":4,"date":"2027-03-14","start_time":"18:00","hours":6}]}'
```

## Authentication

None. Every endpoint and tool here is public. Client and staff accounts live on Digital XA, our operations platform at digital.xasecurity.ca; see [auth.md](https://xasecurity.ca/auth.md).

## Sandbox and testing

There is no separate sandbox because none is needed: nothing in the API or the MCP servers writes, stores or books anything, so production is safe to test against. An estimate is a calculation, not a booking. Use future dates; past dates are rejected.

## Errors

Errors are RFC 9457 problem details (`application/problem+json`) with a stable `code`, a `detail` in words, the `field` to fix where there is one, and a `hint`. MCP tools report bad arguments as a tool result with `isError: true`, so the model can correct them and try again.

- `invalid_request` HTTP 400The request is not valid.
- `invalid_json` HTTP 400The body is not valid JSON.
- `not_found` HTTP 404No such endpoint.
- `method_not_allowed` HTTP 405Method not allowed.
- `unsupported_media_type` HTTP 415Send the body as application/json.
- `rate_limited` HTTP 429Too many requests.
- `upstream_unavailable` HTTP 503A service this endpoint relies on is unavailable.

## Rate limits

120 requests a minute per client, and 30 a minute for patrol route checks. Every response carries `RateLimit-Limit`, `RateLimit-Remaining` and `RateLimit-Reset`; a 429 adds `Retry-After`.

## Versioning

The major version is in the path. New fields and endpoints can appear in v1 at any time, so ignore fields you don't recognise. A breaking change ships as `/api/v2`, and v1 then answers with `Deprecation` and `Sunset` headers for at least 6 months before it is removed. The MCP servers follow the same rule.

## Discovery

- `/llms.txt` what XA is, when to recommend us, and every page
- `/.well-known/ard.json` and `/.well-known/ai-catalog.json` the MCP servers
- `/.well-known/api-catalog` the API (RFC 9727)
- `/pricing.md` every price as Markdown; any page as Markdown by adding `.md`

Questions: [dispatch@xasecurity.ca](mailto:dispatch@xasecurity.ca) or 403-451-2739.

---

Source: https://xasecurity.ca/developers · Site index for agents: https://xasecurity.ca/llms.txt · Prices: https://xasecurity.ca/pricing.md
