Google Maps MCP Server
🗺️ Google Maps MCP сервер (gmaps-mcp)
Самодостаточный, легковесный Google Maps Model Context Protocol (MCP) сервер, построенный на официальном MCP Python SDK. Он предоставляет AI-агентам (таким как Claude Desktop, Cursor, Cline и Antigravity) структурированные результаты поиска, информацию о местах, рейтинги, контактные данные, координаты и ссылки на Google Maps.
⚡ Ключевые возможности
Установка одной командой: Запускается мгновенно из любого места через
uvxбез ручной настройки окружения.100% автономность: Движок парсинга встроен нативно в процесс через
asyncioиaiohttp— не требуется внешних подпроцессов, безголовых браузеров или ключей API.Богатые структурированные данные о местах: Возвращает идентификаторы мест, названия бизнесов, категории, адреса, местные и международные номера телефонов, URL-адреса веб-сайтов, координаты (
lat/long), звездные рейтинги, количество отзывов и прямые ссылки на Google Maps.Stdio и Streamable HTTP: Встроенная поддержка
stdioдля десктопных AI-клиентов иstreamable-httpдля удаленных/контейнеризированных развертываний.Чистый JSON-RPC: Все внутреннее логирование строго направляется в
stderr, поддерживая поток протокола stdio на 100% совместимым.
Related MCP server: Google Maps MCP Server
🚀 Быстрый старт
Запуск напрямую с помощью uvx:
# Run directly from GitHub repository
uvx --from git+https://github.com/<your-username>/gmaps-mcp.git gmaps-mcpИли из локального клона:
uv run gmaps-mcp🛠️ Настройка MCP-клиента
1. Claude Desktop
Добавьте это в ваш claude_desktop_config.json (~/Library/Application Support/Claude/claude_desktop_config.json на macOS, или %APPDATA%\Claude\claude_desktop_config.json на Windows):
{
"mcpServers": {
"google-maps": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/<your-username>/gmaps-mcp.git",
"gmaps-mcp"
]
}
}
}Если запуск из локальной папки:
{
"mcpServers": {
"google-maps": {
"command": "uv",
"args": [
"run",
"--directory",
"/absolute/path/to/gmap-mcp",
"gmaps-mcp"
]
}
}
}2. Cursor IDE
В Cursor откройте Settings → Features → MCP (или отредактируйте .cursor/mcp.json в вашем проекте):
{
"mcpServers": {
"google-maps": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/<your-username>/gmaps-mcp.git",
"gmaps-mcp"
]
}
}
}3. Cline (расширение VS Code)
В настройках Cline (cline_mcp_settings.json):
{
"mcpServers": {
"google-maps": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/<your-username>/gmaps-mcp.git",
"gmaps-mcp"
]
}
}
}🧰 Доступные инструменты
1. search_google_maps
Поиск по Google Maps для бизнесов, достопримечательностей, услуг и ориентиров.
Параметр | Тип | По умолчанию | Описание |
|
| (обязательно) | Поисковый запрос (например, |
|
|
| Максимальное количество результатов для возврата (от |
|
|
| Двухбуквенный код страны ISO для локализации региона (например, |
|
|
| Код языка для результатов (например, |
Структура вывода
{
"query": "coffee in Koramangala Bangalore",
"country": "in",
"language": "en",
"total_results": 2,
"places": [
{
"place_id": "ChIJ80IECk8UrjsRqCffDjE09lw",
"name": "Dyu Art Cafe",
"category": "Art cafe",
"address": "KHB MIG Colony, 1st Cross Rd, Koramangala 8th Block, Bengaluru, Karnataka 560095",
"phone": "096113 19774",
"international_phone": "+91 96113 19774",
"website": "http://www.dyuartcafe.com/",
"domain": "dyuartcafe.com",
"latitude": 12.9373076,
"longitude": 77.6176544,
"rating": 4.4,
"review_count": 21440,
"google_maps_url": "https://www.google.com/maps/place/?q=place_id:ChIJ80IECk8UrjsRqCffDjE09lw"
}
]
}2. get_place_details
Получение подробной информации об одном конкретном месте или бизнесе по его идентификатору места или названию.
Параметр | Тип | По умолчанию | Описание |
|
| (обязательно) | Google Place ID (например, |
|
|
| Двухбуквенный код страны ISO (по умолчанию: |
|
|
| Код языка для ответа (по умолчанию: |
🌐 Удаленное развертывание (Streamable HTTP)
Сервер поддерживает современный транспорт Streamable HTTP для развертывания за обратными прокси или в облачных хостингах:
# Start Streamable HTTP server on port 8000
uv run gmaps-mcp --transport streamable-http --host 0.0.0.0 --port 8000MCP-эндпоинт будет доступен по адресу:
http://<host>:8000/mcp
🧪 Разработка и тестирование
Запуск модульных и интеграционных тестов с помощью uv:
# Run pytest test suite
uv run --with pytest --with pytest-asyncio pytest tests/ -v
# Run the server locally with debug logs
uv run gmaps-mcp --log-level DEBUG📦 Структура проекта
gmap-mcp/
├── pyproject.toml # Packaging & dependencies (PEP 517/621)
├── README.md # Setup guide and MCP client docs
├── src/
│ └── gmaps_mcp/
│ ├── __init__.py # Package entry
│ ├── schemas.py # Pydantic data models (Place, Search, Details)
│ ├── server.py # MCPServer instance & CLI runner
│ ├── tools.py # MCP Tool definitions & detailed descriptions
│ └── scraper/
│ ├── __init__.py # Scraper API
│ └── crawler.py # Async Google Maps parser & extraction engine
└── tests/
├── test_schemas.py # Schema tests
├── test_crawler.py # Parser unit tests
└── test_server.py # MCP Server registration & tool calling tests📜 Атрибуция и лицензия
Ядро парсера адаптировано и модуляризировано из christivn/mapScraper (коммит
1b38cf3e153294e3dad2f6cb5862be0201a54065).Лицензировано под MIT License.
Available Tools
2 toolsget_place_detailsA
Retrieve detailed information for a single specific Google Maps place or business. Looks up a place using its unique Google Place ID (e.g., 'ChIJ...' or 'place_id:ChIJ...') or specific landmark/business name. Returns complete structured details including address, phone number, website, rating, coordinates, and Google Maps URL.
Inputs: place (required), country, language. Returns: Result object returned by the get_place_details tool.
search_google_mapsA
Search Google Maps for local businesses, places, points of interest, and services. Returns structured place data including business name, Google Place ID, category, formatted street address, phone numbers, website URL, geo-coordinates (latitude/longitude), star rating, total review count, and direct Google Maps URL.
Inputs: query (required), limit, country, language. Returns: Result object returned by the search_google_maps tool.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 2 tools
The two tools have distinct purposes: search_google_maps finds places by query, and get_place_details retrieves details for a known place ID. There is slight overlap in the returned fields, but the use cases are clearly different.
Both tools use a clear verb_noun pattern (search/get + google_maps/place_details). The naming is consistent, though 'get_place_details' could be more symmetrical as 'get_google_maps_place' for perfect parity.
Only two tools for a Google Maps server is very limited. Maps APIs typically support additional operations like directions, geocoding, or place photos, so the tool count feels too small for the implied scope.
The core search and detail retrieval are present, but critical operations like navigation (directions), geocoding (address to coordinates and reverse), and place photo fetching are missing, creating significant gaps for common map-related tasks.
Maintenance
Related MCP Connectors
Live Google Maps business search, review, and photo data for AI agents over MCP.
Google Search, Shopping, Maps and AI Mode as data, plus a stealth cloud browser, for AI agents.
Place search, routes and spatial reasoning for AI agents, with real-world addresses.
Routing, geocoding, places, matrix and map tools for location-aware AI workflows.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables location-aware AI agents to search for nearby places, get detailed place information including hours and ratings, and calculate routes with turn-by-turn directions using Google Maps APIs.22MIT
- AlicenseAqualityDmaintenanceEnables AI assistants to access Google Maps services including places search, details, directions, geocoding, and nearby search through natural language.63MIT
- FlicenseNot gradedqualityDmaintenanceEnables AI assistants to search and scrape Google Maps places data (name, rating, address, etc.) directly without an API key.1-
- AlicenseAqualityDmaintenanceEnables AI assistants to search places, retrieve place details, reviews, photos, business posts, and contributor review histories from Google Maps through natural language, with no API keys or paid billing required.6MIT