MCP Google Maps server that can be used by claude, cursor, chatgpt, etc.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add google-maps --env GOOGLE_MAPS_API_KEY='<GOOGLE_MAPS_API_KEY>' -- npx -y mcp-google-maps~/.codex/config.toml
[mcp_servers.google-maps]
command = "npx"
args = ["-y", "mcp-google-maps"]
env = { GOOGLE_MAPS_API_KEY = "<GOOGLE_MAPS_API_KEY>" }
# codex mcp add google-maps --env GOOGLE_MAPS_API_KEY='<GOOGLE_MAPS_API_KEY>' -- npx -y mcp-google-maps~/.cursor/mcp.json
{
"mcpServers": {
"google-maps": {
"command": "npx",
"args": [
"-y",
"mcp-google-maps"
],
"env": {
"GOOGLE_MAPS_API_KEY": "<GOOGLE_MAPS_API_KEY>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"google-maps": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"mcp-google-maps"
],
"env": {
"GOOGLE_MAPS_API_KEY": "<GOOGLE_MAPS_API_KEY>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"google-maps": {
"command": "npx",
"args": [
"-y",
"mcp-google-maps"
],
"env": {
"GOOGLE_MAPS_API_KEY": "<GOOGLE_MAPS_API_KEY>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"google-maps": {
"command": "npx",
"args": [
"-y",
"mcp-google-maps"
],
"env": {
"GOOGLE_MAPS_API_KEY": "<GOOGLE_MAPS_API_KEY>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"google-maps": {
"command": "npx",
"args": [
"-y",
"mcp-google-maps"
],
"env": {
"GOOGLE_MAPS_API_KEY": "<GOOGLE_MAPS_API_KEY>"
}
}
}
}Environment variables
GOOGLE_MAPS_API_KEY
Replace the placeholders with your own credentials and keep them out of version control.