Google Maps MCP Server

Google Maps MCP Server

Provides access to Google Maps Platform APIs for places search, geocoding, turn-by-turn directions, route matrices, elevation, and time zones. Enables natural language queries for location-based information and routing.

Category
访问服务器

README

@aiwerk/mcp-server-google-maps

Google Maps Platform MCP server — places, geocoding, turn-by-turn directions, route matrices, elevation and time zones.

Built on the current Google APIs: Places API (New), Routes API v2, Geocoding API, Elevation API and Time Zone API. Turn-by-turn steps, transit routes and live traffic are included, which the Maps Grounding Lite MCP service does not provide.

Install

npx -y @aiwerk/mcp-server-google-maps

Or add to your MCP client config:

{
  "mcpServers": {
    "google-maps": {
      "command": "npx",
      "args": ["-y", "@aiwerk/mcp-server-google-maps"],
      "env": {
        "GOOGLE_MAPS_API_KEY": "your-api-key"
      }
    }
  }
}

Configure

Variable Required Description
GOOGLE_MAPS_API_KEY yes API key from Google Cloud Console
GOOGLE_MAPS_API_TIMEOUT_MS no Request timeout in ms (default: 30000)

APIs to enable on the Cloud project

Each tool group calls a different API, and a disabled API answers REQUEST_DENIED or HTTP 403. Enable the ones you plan to use:

API Powers
Places API (New) maps_search_places, maps_search_nearby, maps_place_details, maps_place_autocomplete
Geocoding API maps_geocode, maps_reverse_geocode, maps_place_id_lookup
Routes API maps_directions, maps_distance_matrix
Elevation API maps_elevation
Time Zone API maps_timezone

Billing must be enabled on the project. The legacy Places API and Directions API are not used, so enabling those alone is not enough.

Tools

11 read-only tools. Nothing in this server writes, and every tool is annotated readOnlyHint.

Name Description
maps_search_places Text search for places, with optional area bias, type, rating, price and open-now filters.
maps_search_nearby Places inside a circle around a coordinate, with the radius as a hard restriction.
maps_place_details Full detail for one place ID: hours, phone, website, rating, optionally reviews.
maps_place_autocomplete Place suggestions plus place IDs for partially typed input.
maps_geocode Address to coordinates, with normalised address components and place ID.
maps_reverse_geocode Coordinates to the addresses at that point.
maps_place_id_lookup Place ID to address and coordinates through the cheaper Geocoding API.
maps_directions Route with turn-by-turn steps, waypoints, traffic, alternatives and transit support.
maps_distance_matrix Travel time and distance for every origin-destination pair.
maps_elevation Elevation for up to 100 points, or a sampled profile along a path.
maps_timezone Time zone, UTC offset and DST offset for a coordinate at a given moment.

Location arguments

maps_directions and maps_distance_matrix accept three shapes for every location:

Shape Example
Address "Bundesplatz 3, 3005 Bern"
Coordinates "46.9480,7.4474"
Place ID "place_id:ChIJ..."

maps_reverse_geocode, maps_elevation and maps_timezone need coordinates, since those APIs do not geocode. Run maps_geocode first.

Cost control

Places and Routes calls are billed by the fields they request, so the field masks in this server are deliberately narrow.

  • maps_place_details leaves reviews out until you set include_reviews: true, which moves the call to the Enterprise + Atmosphere tier.
  • maps_directions requests turn-by-turn steps by default. Set include_steps: false for totals only.
  • maps_search_places and maps_search_nearby accept a fields array that replaces the default mask entirely, for either trimming cost or reaching fields the default omits.
  • maps_place_id_lookup resolves a place ID through Geocoding instead of Place Details when only the address is needed.

Set a quota cap in Google Cloud Console before pointing an autonomous agent at this server.

Notes

  • The classic web services (Geocoding, Elevation, Time Zone) answer HTTP 200 even when they refuse a request, with the real result in a status field. This server checks that field, so a bad key surfaces as a tool error instead of an empty success.
  • ZERO_RESULTS is returned as data, not as an error. An empty results array means the address or route genuinely has no match.
  • routingPreference and the avoid_* flags only apply to DRIVE and TWO_WHEELER. Passing them with WALK, BICYCLE or TRANSIT is rejected locally rather than sent to the API.
  • maps_distance_matrix results carry originIndex and destinationIndex and are not necessarily ordered.

License

MIT

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选