Vancam MCP Server
Provides AI agents with live access to over 1 million traffic cameras worldwide, enabling search by bounding box, radius, route, or nearest point and fetching live frames.
README
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
1. Clone and install dependencies
git clone https://github.com/<your-org>/mcp-vancam.git
cd mcp-vancam
pip install -r requirements.txt
2. (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_here
3. Register the server with your MCP client
For Claude Desktop or Claude Code, add to your MCP config (see .mcp.json in this repo for a working example):
{
"mcpServers": {
"vancam": {
"command": "python3",
"args": ["/absolute/path/to/mcp-vancam/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.
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 |
|---|---|---|
min_lat, min_lon, max_lat, max_lon |
float | Bounding box (WGS84) |
limit |
int, optional | Max results, 1–100 (default 100) |
active_only |
bool, optional | Only camera_class=open live feeds (default false) |
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 |
|---|---|---|
lat, lon |
float | Center point (WGS84) |
radius |
float, optional | Radius in km (default 1.0) |
limit |
int, optional | Max results (default 50) |
active_only |
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 |
|---|---|---|
origin_lat, origin_lon, dest_lat, dest_lon |
float | Route endpoints |
buffer |
float, optional | Corridor width in meters (default 100.0) |
limit |
int, optional | Max results (default 50) |
active_only |
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 |
|---|---|---|
lat, lon |
float | Query point (WGS84) |
limit |
int, optional | Number of cameras (default 5) |
active_only |
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 | https://api.vancam.ai/cameras/cameras |
| Live image | https://api.vancam.ai/api?asset_id={id} |
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
mcp-vancam/
├── server.py # MCP server — registers the tools above
├── camera_api.py # api.vancam.ai client
├── openapi.yaml # API specification
├── requirements.txt # Python dependencies
└── .mcp.json # Example MCP client config
Related 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.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。