Vancam MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Vancam MCP Server find traffic cameras near downtown Vancouver"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Vancam MCP Server
Vancam.ai ā Traffic Cameras & Road Conditions ā as an MCP (Model Context Protocol) server. Gives AI agents live access to the same camera network behind Vancam's road-condition data: over 1 million traffic cameras worldwide, searchable by map bounds, radius, route, or nearest point.
š Search cameras by bounding box, radius, route corridor, or nearest-to-point
šø Fetch live frames by camera asset ID, returned directly in the tool result
š Real-time data from the same backend that powers the Vancam.ai map
š¤ AI-ready ā built with FastMCP, works with Claude Desktop, Claude Code, and any MCP-compatible client
Quick Start
Option A: Install from PyPI
uvx vancam-mcp # or: pip install vancam-mcpOption B: Clone and install dependencies
git clone https://github.com/shughestr/vancam-mcp.git
cd vancam-mcp
pip install -r requirements.txt2. (Optional) Set up an API key
Requests work out of the box using a shared, rate-limited key (1 req/s, 500/month, pooled across all anonymous users). For higher limits, grab a free personal key from your Vancam.ai account page and set it as an environment variable:
cp .env.example .env # then edit .env# .env
VANCAM_API_KEY=your_personal_key_here3. Register the server with your MCP client
For Claude Desktop or Claude Code, add to your MCP config. If installed from PyPI (Option A):
{
"mcpServers": {
"vancam": {
"command": "uvx",
"args": ["vancam-mcp"],
"env": {
"VANCAM_API_KEY": ""
}
}
}
}If running from a local clone (Option B, see .mcp.json in this repo):
{
"mcpServers": {
"vancam": {
"command": "python3",
"args": ["/absolute/path/to/vancam-mcp/vancam_mcp/server.py"],
"env": {
"VANCAM_API_KEY": ""
}
}
}
}VANCAM_API_KEY is optional ā leave it blank to use the shared, rate-limited key.
Restart your client, and the tools below become available.
Related MCP server: ThinAir Geo
Available Tools
list_cameras
List cameras within a bounding box ā the same query the VanCam map runs on pan/zoom.
list_cameras(min_lat=49.2, min_lon=-123.2, max_lat=49.3, max_lon=-123.0, limit=50)Parameter | Type | Description |
| float | Bounding box (WGS84) |
| int, optional | Max results, 1ā100 (default 100) |
| bool, optional | Only |
get_cameras_by_radius
Get cameras within a radius of a point.
get_cameras_by_radius(lat=49.28, lon=-123.12, radius=1.0, limit=20)Parameter | Type | Description |
| float | Center point (WGS84) |
| float, optional | Radius in km (default 1.0) |
| int, optional | Max results (default 50) |
| bool, optional | Only open/live cameras |
get_cameras_along_route
Get cameras along a straight-line corridor between two points.
get_cameras_along_route(
origin_lat=49.2827, origin_lon=-123.1207,
dest_lat=49.1666, dest_lon=-123.1367,
buffer=200.0, limit=50
)Parameter | Type | Description |
| float | Route endpoints |
| float, optional | Corridor width in meters (default 100.0) |
| int, optional | Max results (default 50) |
| bool, optional | Only open/live cameras |
Results are sorted by route_fraction (0 = origin, 1 = destination). Note: this is a straight line between the two points, not a driving route.
get_nearest_cameras
Get the closest cameras to a point.
get_nearest_cameras(lat=49.2827, lon=-123.1207, limit=5)Parameter | Type | Description |
| float | Query point (WGS84) |
| int, optional | Number of cameras (default 5) |
| bool, optional | Only open/live cameras |
get_camera_image
Fetch a camera's live frame by asset ID, returned as image data in the tool result (not just a URL ā the image endpoint requires an API key header that most MCP clients can't attach themselves).
get_camera_image(asset_id="30145")describe_camera_api
Returns documentation for all search modes, camera fields, and image URL patterns. Call this first if you're unsure which tool to use.
API Reference
Every search tool queries the same spatial API that backs the Vancam.ai map:
Purpose | URL |
Spatial search |
|
Live image |
|
Each camera includes asset_id, latitude, longitude, street_address, direction, camera_class (open/premium), level1/level2/level3 (country/state/city), distance_meters (radius/nearest searches), route_fraction (route search), and image_url/image_urls.
Full schema: openapi.yaml.
Environment overrides: VANCAM_API_KEY, VANCAM_CAMERAS_SEARCH_URL, VANCAM_API_IMAGE_URL
Project Structure
vancam-mcp/
āāā vancam_mcp/
ā āāā server.py # MCP server ā registers the tools above
ā āāā camera_api.py # api.vancam.ai client
āāā openapi.yaml # API specification
āāā pyproject.toml # Package metadata (PyPI: vancam-mcp)
āāā requirements.txt # Python dependencies
āāā .mcp.json # Example MCP client configRelated Projects
Vancam.ai ā Web interface for traffic cameras
Model Context Protocol ā MCP specification
Vancam GPT ā Same data, packaged as a ChatGPT GPT
Contributing
Contributions are welcome ā feel free to open an issue or submit a pull request.
License
MIT ā see LICENSE.
Available Tools
6 toolsdescribe_camera_apiA
Describe the spatial camera API exposed by this MCP server.
Call this first when unsure which search tool to use. Documents the same capabilities as the VanCam map web app (bounds pan, radius, route, nearest).
Inputs: no named parameters. Returns: result
get_camera_imageA
Get the live frame for a camera by asset_id, embedded directly in the tool result.
api.vancam.ai requires an x-api-key header this server holds ā an MCP client fetching the bare URL itself (e.g. Claude Desktop opening the link) has no way to attach that header and gets 403 Forbidden. This tool fetches the frame server-side instead and returns the image bytes.
Parameters: asset_id: Vancam camera asset ID (integer as string)
Returns: The live image, plus asset_id/url metadata for reference.
Inputs: asset_id (required).
get_cameras_along_routeA
Get traffic cameras along a straight-line route between two points.
Same API call as the VanCam web app (vancam.ai) route view. Cameras are returned sorted by route_fraction (0 = origin, 1 = destination).
Note: Uses a straight line between origin and destination (PostGIS ST_MakeLine), not a driving route polyline. Buffer is meters perpendicular to that line.
Parameters: origin_lat, origin_lon: Route start (WGS84) dest_lat, dest_lon: Route end (WGS84) buffer: Corridor width in meters (default 100, web app uses 100) limit: Max cameras (1ā100, default 50, web app uses 50) active_only: If true, only camera_class=open
Returns: JSON with type route_search, buffer_meters, cameras[] with route_fraction.
Inputs: dest_lat (required), dest_lon (required), origin_lat (required), origin_lon (required), +3 more. Returns: result
get_cameras_by_radiusA
Get traffic cameras within a radius (km) of a lat/lon point.
Radius search. Use when the user asks for cameras near a place, within X km of coordinates, or around an address they geocoded.
Parameters: lat, lon: Center point (WGS84) radius: Search radius in kilometers (default 1.0, max 50 per API) limit: Max cameras (1ā100, default 50) active_only: If true, only camera_class=open
Returns: JSON with type radius_search, count, radius_km, cameras[].
Inputs: lat (required), lon (required), limit, radius, +1 more. Returns: result
get_nearest_camerasA
Get the nearest traffic cameras to a geographic point.
Nearest-neighbor search. Use when the user asks for the closest camera(s) to a location.
Parameters: lat, lon: Query point (WGS84) limit: Number of cameras (1ā100, default 5) active_only: If true, only camera_class=open
Returns: JSON with type nearest_search and cameras[] ordered by distance_meters.
Inputs: lat (required), lon (required), limit, active_only. Returns: result
list_camerasA
List traffic cameras within a map bounding box.
Same query the VanCam web app (vancam.ai) runs when the user pans/zooms the map. Use when the user asks for cameras in a visible map area or geographic rectangle.
Parameters: min_lat, min_lon, max_lat, max_lon: Bounding box (WGS84) limit: Max cameras to return (1ā100, default 100) active_only: If true, return only camera_class=open (live feeds)
Returns: Bounds search JSON with enriched image_url per camera.
Inputs: max_lat (required), max_lon (required), min_lat (required), min_lon (required), +2 more. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogā¦
TDQS
Scored across 6 tools
Each tool targets a distinct spatial query mode (bounds, radius, route, nearest) plus image retrieval and API documentation. There is no overlap; an agent can easily select the right tool based on the user's query.
All tool names follow a consistent verb_noun pattern in snake_case, with 'camera(s)' as the object. The verbs list, get, and describe are all clear and predictable, making the naming internally consistent.
Six tools is an appropriate size for a camera discovery and retrieval server. Each spatial query type is represented, plus image fetching and a meta-documentation tool, with no unnecessary bloat.
The tool set covers all spatial search modes from the VanCam web app (bounding box, radius, route corridor, nearest neighbor) and includes live image retrieval that works around the API key limitation. There are no obvious gaps for the stated purpose.
Maintenance
Related MCP Connectors
Geocoding, routing, isochrones, traffic, weather, and place search for AI agents. 19 MCP tools.
Routing, geocoding, places, matrix and map tools for location-aware AI workflows.
Free web search, 130M+ business records, local search, weather and travel data for AI agents.
Real-time data API for AI Agents: stocks, weather, forex, logistics, search, scrape, news, IP.
Related MCP Servers
- AlicenseAqualityBmaintenanceProvides seamless access to TomTom's location services including search, routing, traffic and static maps data, enabling easy integration of precise geolocation data into AI workflows and development environments.17196 npm63Apache 2.0

ThinAir Geoofficial
AlicenseAqualityBmaintenanceLocation & routing intelligence for AI agents ā geocoding, truck routing, traffic, weather, and place search.1933 npm1MIT- AlicenseAqualityDmaintenanceOn-demand live vision MCP for AI agents ā open a session at a lat/lng, receive a JPEG snapshot or WebRTC stream, settled per-second in USDC on Base. Four tools (get_session, get_frame, get_stream_url, cancel_session); currently Base Sepolia testnet.41MIT
- AlicenseAqualityCmaintenanceProvides access to real-time Danish road traffic events, roadworks, and queues via public data from Vejdirektoratet, enabling AI assistants to check road conditions without any API keys.3MIT