---
title: "MCP (Model Context Protocol) endpoint"
method: POST
path: "/api/mcp"
tags: ["agents"]
---

# MCP (Model Context Protocol) endpoint

`POST /api/mcp`

## Request

- Base URL: `https://cityalert.live`
- URL: `https://cityalert.live/api/mcp`
- Auth: none declared

JSON-RPC 2.0 MCP server exposing the incident data as tools for AI assistants (initialize, tools/list, tools/call). Connect with any MCP client. Historical tools (get_trends, get_crime_year) require a Pro-plan x-api-key.

## Request body

- object

## Response `200`

JSON-RPC response (may be SSE depending on client)

## Other responses

- `401`: Historical tools require an API key
- `403`: Historical tools require a Pro plan
- `429`: Daily plan limit reached

---

[API](https://skmtc.dev/cityalert/apis/cityalert-live-api.md) · [All operations](https://skmtc.dev/cityalert/apis/cityalert-live-api/llms.txt) · [OpenAPI document](https://skmtc.dev/cityalert/apis/cityalert-live-api/revisions/75ee240bd387?raw)
