Google Maps MCP Server Enhancedのロゴ

Google Maps MCP Server Enhanced

コミュニティ
Garblesnarff

A comprehensive Model Context Protocol (MCP) server that provides 14 powerful Google Maps tools for location services, visual mapping, weather data, and environmental information. Perfect for camping trip planning, outdoor research, location analysis, and any application requiring rich geographic data.

公開者Garblesnarff
リポジトリgoogle-maps-mcp
言語TypeScript
フォーク
4
スター
11
利用可能なツール
0
通信方式stdio
カテゴリ
ライセンスMIT
リンク
  • ツールをAIワークフローに接続

    Google Maps MCP Server Enhancedは、対応するAIクライアントやAIエージェントから利用できるMCP機能を提供します。

  • 0個の利用可能なツール

    呼び出し可能なアクションを以下で確認できます。サーバーから提供されている場合は、名前や説明も表示されます。

  • コピーして使える設定

    セットアップ用の設定例を使って、お好みのMCPクライアントにこのサーバーを設定できます。

  • オープンソースの注目度

    リンク先のリポジトリには11件のスターと4件のフォークがあります。

Google Maps MCP Server Enhanced

A comprehensive Model Context Protocol (MCP) server that provides 14 powerful Google Maps tools for location services, visual mapping, weather data, and environmental information. Perfect for camping trip planning, outdoor research, location analysis, and any application requiring rich geographic data.

🌟 Features

🗺️ Core Mapping (6 tools)

  • Geocoding: Convert addresses to coordinates
  • Reverse Geocoding: Convert coordinates to addresses
  • Places Search: Find businesses, landmarks, and points of interest
  • Place Details: Get comprehensive information about specific places
  • Distance Matrix: Calculate travel times and distances between multiple points
  • Directions: Get detailed turn-by-turn directions with multiple travel modes

📸 Visual Mapping (2 tools)

  • Street View: Get panoramic street-level imagery with customizable viewing angles
  • Static Maps: Generate static map images in multiple styles (roadmap, satellite, terrain, hybrid) with markers

🌤️ Environmental Data (6 tools)

  • Weather: Current conditions and forecasts for trip planning
  • Air Quality: Air quality indices and pollutant data for outdoor activities
  • Solar: Solar irradiance data for solar power planning at campsites
  • Pollen: Pollen and allergy information for outdoor activities
  • Elevation: Elevation data for terrain analysis
  • Enhanced Routing: Advanced route planning with traffic awareness

🎯 Perfect For

  • 🏕️ Camping & Outdoor Planning: Weather, terrain, and site analysis
  • 🔍 Research Projects: Location data gathering and environmental monitoring
  • 🚗 Travel Applications: Route planning with real-time conditions
  • 📊 Data Analysis: Geographic data collection and visualization
  • 🏢 Business Applications: Location intelligence and market analysis

📋 Prerequisites

  • Node.js (v18+)
  • Google Cloud Platform Account with billing enabled
  • Google Maps API Key with required APIs enabled

⚙️ Setup

1. Clone and Install

bash
git clone https://github.com/yourusername/google-maps-mcp-server.git
cd google-maps-mcp-server
npm install

2. Google Cloud Setup

Enable these APIs in Google Cloud Console:

Required APIs:

  • Maps JavaScript API
  • Geocoding API
  • Places API
  • Directions API
  • Distance Matrix API
  • Elevation API
  • Maps Static API (for static map images)
  • Street View Static API (for street view images)

Environmental APIs (Optional but Recommended):

  • Air Quality API
  • Solar API
  • Pollen API
  • Weather API

3. Get API Key

  1. In Google Cloud Console → APIs & Services → Credentials
  2. Create API Key
  3. Restrict the key to the APIs listed above (recommended for security)

4. Build the Server

bash
npm run build

🔧 Claude Desktop Integration

Add to your claude_desktop_config.json:

json
{
  "mcpServers": {
    "google-maps": {
      "command": "node", 
      "args": ["/path/to/google-maps-mcp-server/dist/index.js"],
      "env": {
        "GOOGLE_MAPS_API_KEY": "your-api-key-here"
      }
    }
  }
}

🛠️ Tool Reference

📍 Location Services

ToolPurposeExample Use
maps_geocodeAddress → Coordinates"Convert 'Yellowstone National Park' to lat/lng"
maps_reverse_geocodeCoordinates → Address"What's at coordinates 44.4280, -110.5885?"
maps_search_placesFind nearby places"Find campgrounds near Yellowstone"
maps_place_detailsDetailed place info"Get hours, reviews, contact info for a campground"

🚗 Navigation & Distance

ToolPurposeExample Use
maps_directionsTurn-by-turn directions"Driving directions from Chicago to Yellowstone"
maps_distance_matrixMulti-point distances"Travel times between 5 potential campsites"
maps_routesEnhanced routing"Optimal route avoiding traffic and tolls"
maps_elevationTerrain elevation"Elevation profile for hiking trail"

📸 Visual Mapping

ToolPurposeExample Use
maps_street_viewStreet-level imagery"See what the campground entrance looks like"
maps_static_mapStatic map images"Satellite view of research area with markers"

🌤️ Environmental Data

ToolPurposeExample Use
maps_weatherWeather forecasts"5-day forecast for camping trip"
maps_air_qualityAir pollution data"Air quality for outdoor activities"
maps_solarSolar irradiance"Solar panel potential at campsite"
maps_pollenAllergy information"Pollen levels for sensitive individuals"

💡 Usage Examples

Trip Planning Workflow

bash
# 1. Find potential campsites
maps_search_places(query="campgrounds near Glacier National Park")

# 2. Get detailed information
maps_place_details(place_id="ChIJ...")

# 3. Check weather conditions  
maps_weather(latitude=48.7596, longitude=-113.7870, forecast_days=5)

# 4. Get visual confirmation
maps_street_view(location="Going-to-the-Sun Road entrance")
maps_static_map(center="48.7596,-113.7870", maptype="terrain", zoom=12)

# 5. Plan optimal route
maps_directions(origin="Chicago, IL", destination="Glacier National Park")

Research Documentation

bash
# Comprehensive location analysis
maps_geocode(address="Remote research location")
maps_elevation(locations=[{latitude: 45.123, longitude: -110.456}])
maps_air_quality(latitude=45.123, longitude=-110.456)
maps_static_map(center="45.123,-110.456", maptype="satellite", 
               markers=[{location: "45.123,-110.456", color: "red"}])

🎨 Visual Capabilities

Street View Options

  • Viewing Angles: Control heading (0-360°), pitch (-90° to 90°), field of view (10-120°)
  • Image Sizes: Up to 640x640 pixels
  • Location Input: Addresses or exact coordinates

Static Map Styles

  • Roadmap: Standard road map view
  • Satellite: Aerial imagery
  • Terrain: Physical features and elevation
  • Hybrid: Satellite imagery with road labels

Custom Markers

  • Colors: red, blue, green, purple, yellow, gray, orange, white
  • Labels: A-Z, 0-9 for identification
  • Multiple Points: Mark routes, waypoints, points of interest

🔒 Security Best Practices

API Key Security

  • ✅ Use environment variables (never commit keys to code)
  • ✅ Restrict API key to only required APIs
  • ✅ Set up API key restrictions (HTTP referrers, IP addresses)
  • ✅ Monitor API usage in Google Cloud Console
  • ✅ Rotate keys regularly

Usage Monitoring

  • Set up billing alerts for unexpected usage
  • Monitor API quotas and rate limits
  • Use Cloud Monitoring for performance tracking

💰 Cost Management

Free Tier Usage

  • Most APIs include generous free monthly quotas
  • Visual APIs (Street View, Static Maps) have free usage limits
  • Environmental APIs may have different pricing

Cost Optimization Tips

  • Cache results when appropriate (especially for static location data)
  • Use batch requests (Distance Matrix) for multiple calculations
  • Choose appropriate detail levels for Places API requests

🐛 Troubleshooting

Common Issues

ErrorCauseSolution
REQUEST_DENIEDAPI not enabledEnable required APIs in Google Cloud Console
INVALID_REQUESTMissing parametersCheck required parameters for each tool
OVER_QUERY_LIMITQuota exceededCheck billing and quota limits
ZERO_RESULTSNo data availableTry broader search criteria or different location

Debug Mode

bash
export DEBUG=true
npm run dev

📊 API Quotas Reference

APIFree Tier LimitRate Limit
Geocoding40,000/month50 QPS
Places Search2,500/month10 QPS
Directions2,500/month50 QPS
Street View Static28,000/month100 QPS
Static Maps28,000/month100 QPS

Check Google's current pricing for up-to-date information

🚀 Running the Server

bash
# Development mode with auto-rebuild
npm run dev

# Production mode
npm run build && npm start

🏗️ Architecture

  • TypeScript: Full type safety and modern JS features
  • Modular Design: Organized by functionality (handlers, tools, types)
  • Error Handling: Comprehensive validation and error responses
  • Extensible: Easy to add new Google Maps APIs
  • Production Ready: Built with reliability and performance in mind

🤝 Contributing

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

📄 License

MIT License - see LICENSE file for details.

🎯 Use Cases

  • 🏕️ Camping Trip Planning: Weather, terrain, campground research
  • 🔬 Field Research: Environmental data collection and site analysis
  • 🚚 Logistics: Route optimization and travel planning
  • 🏡 Real Estate: Location analysis and neighborhood research
  • 📱 Mobile Apps: Location-based services and mapping features
  • 🎨 Creative Projects: Map visualization and geographic art

Transform your location-based projects with comprehensive Google Maps integration! 🗺️✨

インストール

TypingMind
{
  "mcpServers": {
    "google-maps-mcp": {
      "command": "node",
      "args": [
        "/path/to/google-maps-mcp-server/dist/index.js"
      ],
      "env": {
        "GOOGLE_MAPS_API_KEY": "<GOOGLE_MAPS_API_KEY>"
      }
    }
  }
}

Google Maps MCP Server EnhancedのMCPを複数のAIモデルで活用

TypingMindはワークスペース単位でMCPツールに接続します。そのため、一度Google Maps MCP Server Enhancedに接続すれば、モデルごとに個別に設定することなく、TypingMind内のさまざまなAIモデルで利用できます。 このMCPは、デバイス上のTypingMind MCPコネクタを通じてローカルで動作します。

ローカルコネクタのセットアップガイド

MCPサーバーが、お使いのコンピューター上のローカルファイル、アプリ、非公開リソースにアクセスする必要がある場合は、この方法を使います。

1

MCP設定を開く

TypingMindで「設定」、「詳細設定」、「MCP」の順に進み、「コネクタを設定」を選択してください。

  1. ブラウザでTypingMindを開いてください。
  2. 設定アイコンをクリックしてください。
  3. 「詳細設定」に移動してください。
  4. 「MCP」セクションを開いてください。
  5. 「コネクタを設定」をクリックし、「このデバイス」を選択してください。
「このデバイス」が選択されたTypingMindのMCPコネクタ設定画面
2

コネクタのコマンドを実行

「このデバイス」を選択し、TypingMindからコマンドをコピーしてターミナルで実行してください。MCPの使用中は、プロセスを実行したままにしてください。

  1. TypingMindに表示されるセットアップコマンドをコピーしてください。
  2. macOSではターミナルを、WindowsではWindows Terminalを開いてください。
  3. コマンドを貼り付けて実行してください。
  4. ターミナルで続行の確認を求められた場合は、パッケージのインストールを承認してください。
  5. MCPツールの使用中は、ターミナルウィンドウを開いたまま、プロセスの実行を継続してください。
3

Google Maps MCP Server Enhancedをサーバーとして追加

コネクタのステータスが「準備完了」になったら、「サーバーを編集」をクリックし、MCPサーバーの設定を貼り付けてください。

  1. コネクタのステータスが「準備完了」になるまでお待ちください。
  2. 「サーバーを編集」をクリックしてください。
  3. Google Maps MCP Server EnhancedのMCPサーバー設定を貼り付けてください。
  4. サーバー一覧を保存してください。
  5. コネクタが引き続き使用可能か確認するには、更新してください。
稼働中のサーバーと「サーバーを編集」ボタンが表示されたTypingMindのMCP設定画面
{
  "mcpServers": {
    "google-maps-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "google-maps-mcp-server-enhanced"
      ]
    }
  }
}
4

複数のモデルで同じ接続を使用

サーバー一覧を保存し、「プラグイン」を開いてGoogle Maps MCP Server EnhancedのMCPツールを有効にしてください。その後、TypingMindで対応するAIモデルを選択し、チャットでツールを使うか、AIエージェントに割り当ててください。

  1. TypingMindの「プラグイン」ページを開いてください。
  2. Google Maps MCP Server EnhancedのMCPツールを有効にしてください。
  3. チャットを開始し、使用するAIモデルを選択してください。
  4. MCPツールをチャットで使うか、AIエージェントに割り当ててください。
  5. MCPに再接続することなく、必要に応じて別のAIモデルに切り替えられます。
選択したAIモデルと有効なMCPツールを使用したTypingMindのチャット
Google Maps MCP Server Enhancedを使ってこのタスクを手伝ってもらえますか?
Google Maps MCP Server Enhanced
はい、読みました。
Google Maps MCP Server Enhancedで調べた結果をお伝えします。

よくある質問

Google Maps MCP Server Enhanced MCPサーバーは何に使いますか?

Google Maps MCP Server Enhancedは、対応するAIクライアントを外部ツールやコンテキストに接続するためのMCPサーバーです。TypingMindでは、このMCPサーバーを一度追加するだけで、AIワークスペース内でそのツールを利用できるようになります。

TypingMindでGoogle Maps MCP Server Enhanced MCPを複数のAIモデルと併用できますか?

はい。TypingMindはワークスペース単位でMCPツールに接続するため、モデルごとにMCPサーバーを設定する必要はありません。Claude、ChatGPT、Geminiや、TypingMindで設定したその他のAIモデルでGoogle Maps MCP Server Enhancedを利用できます。

TypingMindでGoogle Maps MCP Server Enhanced MCPを使うメリットは何ですか?

TypingMindは、複数のAIモデル、プロンプト、プラグイン、AIエージェント、APIキー、MCPツールを1つのワークスペースにまとめられる、LLMチャット向けの優れたフロントエンドです。Google Maps MCP Server Enhancedを接続すると、TypingMindでチャットのワークフローを整理しながら、お好みのモデルでそのMCPツールを利用できます。

Google Maps MCP Server Enhanced MCPをTypingMindに接続するにはどうすればよいですか?

Google Maps MCP Server EnhancedはTypingMindのローカルMCPコネクタ経由で動作します。MCPサーバーがコンピューター上のローカルファイル、デスクトップアプリ、コマンドラインツール、プライベートリソースにアクセスする必要がある場合に最適です。

TypingMindでGoogle Maps MCP Server Enhanced MCPのどのようなツールを利用できますか?

Google Maps MCP Server EnhancedはMCP機能を提供しています。TypingMindのプラグインページで有効にすると、チャットで使用したり、AIエージェントに割り当てたりできます。

Google Maps MCP Server Enhanced MCPを使うには、APIキーをTypingMindと共有する必要がありますか?

いいえ。TypingMindはローカルファーストの設計で、モデルプロバイダー、APIキー、プロンプト、MCP設定をご自身で管理できます。Google Maps MCP Server Enhancedで認証が必要な場合は、接続の作成時に、そのMCPサーバーに必要なヘッダー、OAuth設定、またはローカル設定を追加してください。

関連するMCPサーバー

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇