maps-fetcher-mcp
maps-fetcher-mcp
MCP 服务器 + CLI:通过链接获取任意 Google Maps 地点 — 完整的商家元数据,以及最高分辨率下的全部相册照片和视频。
安装
pip install maps-fetcher-mcp # or: uv pip install maps-fetcher-mcp
maps-fetcher-setup # one-time: browser download (~120MB)Related MCP server: Local Business Data MCP Server
作为 MCP 服务器使用(任意 MCP 客户端)
{
"mcpServers": {
"maps_fetcher": {
"command": "maps-fetcher-mcp"
}
}
}适用于:Hermes Agent、Claude Desktop、Cursor、opencode、Cline、Zed — 任何支持 MCP(stdio)的工具。
作为 CLI 使用
maps-fetcher "https://maps.app.goo.gl/XXXX" # everything
maps-fetcher "https://maps.app.goo.gl/XXXX" --include info # metadata only (~20s)
maps-fetcher "https://maps.app.goo.gl/XXXX" --include photos
maps-fetcher "https://maps.app.goo.gl/XXXX" --include videos
maps-fetcher --list # what's been fetched暴露的工具(MCP)
Tool | 用途 | 典型耗时 |
| 仅元数据:名称、电话、评分、地址、营业时间、坐标 | ~20s |
| 仅媒体( | 40-220s |
| 一次性获取全部( | 60-220s |
| 之前获取过的地点 | 即时 |
同一地点在 24 小时内重新获取会复用抓取结果(约 2 秒)。
功能特性
短链接解析并规范化;搜索链接被干净地拒绝
伪装成照片的视频磁贴;DASH/HLS 清单与音频混合
过期 URL、头像垃圾、运动模糊帧、感知重复(隔离而非删除)、无间隙文件编号
非确定性相册懒加载:抓取重试并合并
机器人墙检测(reCAPTCHA / 异常流量)并给出清晰错误;通过 Patchright 使用隐身浏览器,回退到普通 Playwright
安全:所有媒体下载的 google 主机白名单、按文件和按地点的大小上限、解压炸弹防护、无密钥
输出
<root>/<place-slug>/
photos/photo_01.jpg ... videos/video_01.mp4 ... quarantine/
info_pw.json contact_sheet.jpg默认根目录:/mnt/d/Projects/maps-data-fetcher/places(WSL 布局;可通过 output_dir 或 MAPS_FETCHER_ROOT 覆盖)。
限制
非官方抓取 — 适合低量批量收集。Google 标记变更可能导致其失效(修复通常很小)。不适合高量生产环境;请使用付费的 Google Places API。CAPTCHA 会被检测并报告,但不会自动解决。
开发
源码结构:maps_fetcher/core.py(引擎)、mcp_server.py(MCP 工具)、cli.py(CLI)、setup.py(浏览器安装助手)。
Available Tools
4 toolsfetch_maps_placeA
Fetch a Google Maps place by link (maps.app.goo.gl/... or full google.com/maps URL). Downloads gallery media at max resolution plus business metadata (name, phone, website, rating, address, plus code, hours, coordinates).
Args: url: Google Maps place link (single place only, not search links). output_dir: optional root directory (default: /mnt/d/Projects/maps-data-fetcher/places). A per-place subfolder is created with photos/, videos/, info_pw.json, contact_sheet.jpg. include: "all" (default) | "info" (metadata only, fast) | "photos" | "videos" | "media" (photos+videos). meta_only: deprecated alias for include="info".
Returns JSON summary: place data, media counts, output paths. Typical run: info ~20-40s, full fetch 60-220s.
Inputs: url (required), include, meta_only, output_dir. Returns: result
get_place_infoA
Fast metadata-only fetch: name, phone, website, rating, address, plus code, hours, coordinates. No media downloaded. Use when the agent only needs business info. ~20-40s.
Inputs: url (required), output_dir. Returns: result
get_place_mediaA
Media-only fetch: downloads gallery photos and/or videos, skips verbose metadata in the response. Use when the agent only needs the images/videos.
Args: kind: "both" (default) | "photos" | "videos". Returns JSON: place name, counts, output dirs.
Inputs: url (required), kind, output_dir. Returns: result
list_maps_placesC
List previously fetched places under the output root with photo/video counts and metadata.
Inputs: output_dir. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
There is significant overlap: fetch_maps_place with include='info' does exactly what get_place_info does, and with include='media' does what get_place_media does. While the descriptions clarify the intended use cases, an agent may struggle to pick the right tool since fetch_maps_place is a superset. The tools are not clearly distinct in purpose.
The naming mixes conventions: 'get_place_info' and 'get_place_media' follow a get_place_N pattern, but 'fetch_maps_place' uses a different verb (fetch) and noun order, and 'list_maps_places' uses plural. The pattern is not consistent across all tools, though the tools are readable.
At 4 tools, the server is well-scoped for a maps fetcher. However, the presence of get_place_info and get_place_media is redundant given fetch_maps_place can achieve the same via its include parameter, suggesting the count could be trimmed to 2–3 tools without losing functionality.
The core lifecycle for fetching Google Maps place data is covered: retrieving metadata, media, or both, plus listing previously fetched places. There are no obvious dead ends for the stated purpose. Missing delete/update operations are not essential for a fetcher, so the surface feels complete.
Maintenance
Related MCP Connectors
Ask high-complexity questions where the best answer is required — coding, hard reasoning, and more.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables web searching via Google Search and AI Mode, plus advanced web scraping capabilities including content extraction in multiple formats, link extraction, and batch scraping of multiple URLs.21 npmMIT
- AlicenseBqualityDmaintenanceEnables access to Google Maps business data including search, reviews, photos, and geocoding. Supports searching businesses by location, area, or coordinates, retrieving detailed business information, reviews, and performing reverse geocoding operations.13MIT
- FlicenseNot gradedqualityDmaintenanceEnables advanced web crawling and content extraction with JavaScript support, AI-powered analysis, PDF/Office document processing, YouTube transcript extraction, Google search integration, and multi-format data export capabilities.2-
- FlicenseNot gradedqualityDmaintenanceEnables AI assistants to search and scrape Google Maps places data (name, rating, address, etc.) directly without an API key.1-