# Ceptory MCP server > Ceptory's MCP server lets any MCP client or agent (Claude, Cursor, VS Code, Codex, Gemini CLI, Windsurf, OpenAI Agents SDK, LangChain…) do what a user does in Ceptory: set up camera workflows, manage people and plate lists, read and resolve alerts, follow movement across cameras, upload and search video, and run AI detection engines. The agent acts as the user who approved it, with their workspace, role and prepaid balance. ## Connect - URL: https://mcp.ceptory.com/mcp (Streamable HTTP, MCP 2026-07-28; 2025-era clients supported) - Auth: OAuth 2.1 with PKCE, discovered from the URL (401 → WWW-Authenticate resource_metadata → https://www.ceptory.com/.well-known/oauth-authorization-server, dynamic client registration). The user approves in the browser on ceptory.com; no key to copy. - Without browser sign-in: create a token at https://www.ceptory.com/dashboard/mcp and send `Authorization: Bearer `, or run `CEPTORY_TOKEN= npx -y ceptory-mcp` (stdio; adds upload_video_file and image_path for local files). - Human docs: https://www.ceptory.com/mcp ## Client setup ### Claude Code Run in your terminal, then type /mcp in Claude Code and choose Authenticate. Your browser opens Ceptory to approve. ``` claude mcp add --transport http ceptory https://mcp.ceptory.com/mcp ``` ### Claude Desktop & claude.ai Settings → Connectors → Add custom connector. Paste the URL, then click Connect and approve in the browser. ``` Name: Ceptory URL: https://mcp.ceptory.com/mcp ``` ### Cursor Add to ~/.cursor/mcp.json (or .cursor/mcp.json in a project). Cursor asks you to sign in to Ceptory. ``` { "mcpServers": { "ceptory": { "url": "https://mcp.ceptory.com/mcp" } } } ``` ### VS Code Add to .vscode/mcp.json (GitHub Copilot agent mode), or run “MCP: Add Server”. VS Code asks you to sign in. ``` { "servers": { "ceptory": { "type": "http", "url": "https://mcp.ceptory.com/mcp" } } } ``` ### Codex Run in your terminal. Codex opens the browser to sign in. ``` codex mcp add ceptory --url https://mcp.ceptory.com/mcp codex mcp login ceptory ``` ### Gemini CLI Add to ~/.gemini/settings.json, then run /mcp auth ceptory in Gemini CLI. ``` { "mcpServers": { "ceptory": { "httpUrl": "https://mcp.ceptory.com/mcp" } } } ``` ### Windsurf Add to ~/.codeium/windsurf/mcp_config.json. Windsurf asks you to sign in. ``` { "mcpServers": { "ceptory": { "serverUrl": "https://mcp.ceptory.com/mcp" } } } ``` ### Any other agent Any MCP client or agent framework (OpenAI Agents SDK, LangChain, Mastra, n8n…). Clients that support MCP auth discover sign-in from the URL. Otherwise send a token from the dashboard as a Bearer header, or run CEPTORY_TOKEN= npx -y ceptory-mcp for stdio. ``` URL: https://mcp.ceptory.com/mcp Transport: Streamable HTTP (MCP 2026-07-28, 2025 clients supported) Auth: OAuth 2.1 sign-in (discovered automatically), or Authorization: Bearer ``` ## Tools ### Cameras & workflows - list_camera_workflows: The 10 workflows (PPE, person down, fire & hazards, intrusion, face access, loitering, unattended bags, crowd limit, illegal parking, rider helmets) with every setting explained. - create_camera: Connect a camera with a workflow, settings, a watched zone and Discord alerts. - update_camera: Rename, change rules, schedule or zone, pause or resume. - list_cameras / get_camera: Status (online, offline, paused), settings, people and recent alerts. - add_camera_person / remove_camera_person: People lists for face access cameras: staff, watchlist, and your own allow or alert lists. - update_plate_list / read_plates: Allowed and alert-on-sight number plate lists for parking cameras; read plates from a photo. - geocode_address: Find an address to place a camera on the map. - send_camera_frame: Run a camera's rules on one frame and create any alerts. - get_camera_snapshot: The latest frame as an image. - test_discord_webhook: Check an alert channel works. - list_camera_groups / create_camera_group / update_camera_group / delete_camera_group: Sites and areas that group cameras. - get_movement / get_sighting_image: Journeys of people and vehicles across a group's cameras, with photos and map positions. - delete_camera: Remove a camera (agents ask first). ### Alerts - list_alerts: Open, acknowledged or resolved alerts, by camera and time. - update_alert: Acknowledge, resolve or re-open. - get_alert_image: The annotated photo captured when the alert fired. ### Video chats & search - list_chats / create_chat / get_chat / rename_chat / delete_chat: The same chats as the dashboard. - add_video_from_url: Index a video from an HTTPS link. - create_upload_url / complete_upload: Upload a local file (up to 2 GB). The npm bridge does this in one step with upload_video_file. - get_chat_videos / list_videos: Indexing status and every video in the workspace. - search_videos: Find moments in plain language, with start and end times. - ask_video / analyze_video / get_video: Answers, summaries and the indexed timeline of a video. - get_video_info / get_video_storyboard / get_video_frames: Watch a video yourself: a storyboard grid of timestamped frames, then full frames to zoom in. Free, no indexing wait. - retry_video / delete_video: Fix failed indexing, or remove a video. ### Camera intelligence - count_objects: Arrivals and people / vehicles in view per hour or day, from what the cameras recorded. - search_people / search_vehicles: Find tracked people by clothing and bags, and vehicles by type (auto-rickshaws included), colour, make or partial plate. - camera_health / find_anomalies: Covered, blurred, moved or frozen cameras, and hours that looked unusual. - find_in_camera / read_text_in_camera / suggest_zones: Find anything described in words, read signs and container numbers, and get ready-made zones from a camera's view. - verify_alert / listen_for_sounds: A second opinion on an alert, and screams, glass breaking or alarms in a clip. - redact_media / make_video_synopsis: Blur faces and plates before sharing, and condense hours of video into minutes. ### AI engines & account - list_engines / run_engine: Run any single detector (PPE, fire, plates, faces, vehicles, crowd…) on an image, with the annotated result. - get_account: Who the agent acts as, the workspace, plan and prepaid balance. ## Example requests - "Set up a camera called Loading dock that alerts our Discord when anyone isn't wearing a helmet and a hi-vis vest." - "Watch the back fence for people or vehicles between 10pm and 6am India time. Only the left half of the frame matters." - "Which cameras are offline right now? Show me today's open alerts with their photos, then resolve the false alarms." - "Raise the crowd limit on the lobby camera to 25 and pause the parking camera." - "Put the gate, lobby and car park cameras in a group called North site and show me where people went in the last hour." - "Make a chat called Night shift, add this video link, and tell me every time a white van appears." - "Run the fire and smoke engine on this photo and tell me what it found." - "How many trucks came through the main gate yesterday, by hour? Were any cameras covered or blurred last night?" - "Find anyone in a red shirt with a backpack near the store room after 10pm, then blur faces in that alert clip so I can share it." ## Notes - To set up monitoring from a plain-language request: list_camera_workflows, map the request onto the workflow's configKeys, then create_camera / update_camera. - Search, analysis, indexing and engines use the workspace's prepaid balance (get_account). - Delete tools are marked destructive; confirm with the user first.