Vancam

io.github.shughestr由 GitHub 帳號 shughestr 發布v0.1.0更新於 Oct 24, 2026

Search 1M+ live traffic cameras worldwide by bounds, radius, route, or nearest point.

已驗證STDIO僅桌面位置與生活媒體與設計

概覽

AI 產生的概覽

讓助理依地圖範圍、半徑、路線或最近點搜尋全球超過一百萬支即時交通攝影機,並取得即時畫面。

可以做什麼
提供多種工具:依邊界框列出攝影機、找出某點半徑內的攝影機、找出兩點之間直線走廊沿線的攝影機,以及取得距離某點最近的攝影機。另有工具可依資產 ID 取得攝影機即時畫面,並將影像資料直接回傳在工具結果中。還有一個文件工具說明各種搜尋方式、攝影機欄位與影像 URL 格式。結果包含 asset_id、經緯度、街道地址、朝向、攝影機類別與地區層級等欄位。
適用情境
當助理需要某地點、走廊或路線附近的即時路況或交通攝影機資訊時適用,例如查看某點附近或沿途的路況。也適合需要把即時攝影機畫面直接回傳到對話,而不只是提供連結的情境。
執行需求
以 Python 套件形式在本機執行(uvx vancam-mcp 或 pip install vancam-mcp),透過 stdio 通訊,並在 Claude Desktop、Claude Code 等 MCP 用戶端中註冊。需要能連線至 Vancam API 的網路。選用的環境變數 VANCAM_API_KEY 可提高速率上限;未設定時會使用共享的限速金鑰。
安裝前請注意
選用的 VANCAM_API_KEY 屬於個人憑證,應透過環境變數提供,不要寫入設定檔。搜尋與影像請求會送往第三方 Vancam API,因此查詢位置會傳送給該服務。共享匿名金鑰為多人共用且有限速(約每秒 1 次請求、每月 500 次),大量使用可能被限流。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Vancam,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

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

Option A: Install from PyPI

bash
uvx vancam-mcp   # or: pip install vancam-mcp

Option B: Clone and install dependencies

bash
git clone https://github.com/shughestr/vancam-mcp.gitcd vancam-mcppip 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:

bash
cp .env.example .env   # then edit .env
bash
# .envVANCAM_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. If installed from PyPI (Option A):

json
{  "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):

json
{  "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.

Available Tools

list_cameras

List cameras within a bounding box — the same query the VanCam map runs on pan/zoom.

python
list_cameras(min_lat=49.2, min_lon=-123.2, max_lat=49.3, max_lon=-123.0, limit=50)
ParameterTypeDescription
min_lat, min_lon, max_lat, max_lonfloatBounding box (WGS84)
limitint, optionalMax results, 1–100 (default 100)
active_onlybool, optionalOnly camera_class=open live feeds (default false)

get_cameras_by_radius

Get cameras within a radius of a point.

python
get_cameras_by_radius(lat=49.28, lon=-123.12, radius=1.0, limit=20)
ParameterTypeDescription
lat, lonfloatCenter point (WGS84)
radiusfloat, optionalRadius in km (default 1.0)
limitint, optionalMax results (default 50)
active_onlybool, optionalOnly open/live cameras

get_cameras_along_route

Get cameras along a straight-line corridor between two points.

python
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)
ParameterTypeDescription
origin_lat, origin_lon, dest_lat, dest_lonfloatRoute endpoints
bufferfloat, optionalCorridor width in meters (default 100.0)
limitint, optionalMax results (default 50)
active_onlybool, optionalOnly 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.

python
get_nearest_cameras(lat=49.2827, lon=-123.1207, limit=5)
ParameterTypeDescription
lat, lonfloatQuery point (WGS84)
limitint, optionalNumber of cameras (default 5)
active_onlybool, optionalOnly 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).

python
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:

PurposeURL
Spatial searchhttps://api.vancam.ai/cameras/cameras
Live imagehttps://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

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 config

Related Projects

Contributing

Contributions are welcome — feel free to open an issue or submit a pull request.

License

MIT — see LICENSE.

來源:README.md,提交 1a3db75

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.1.0最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分