MCPInstall
genkit-mcp-google-maps-sample logo

genkit-mcp-google-maps-sample

by nozomi-koborinai 3 stars nozomi-koborinai/genkit-mcp-google-maps-sample

A sample project integrating Google Maps API with Genkit via MCP.

READMEmain

genkit-mcp-google-maps-sample

A sample project that integrates Google Maps API with Genkit. Access Google Maps features from Gemini AI models through the Model Context Protocol (MCP).

Google Maps MCP Server

tools dev-ui-trace

Features

This sample provides access to the following Google Maps features:

  • Get coordinates from addresses (maps_geocode)
  • Get addresses from coordinates (maps_reverse_geocode)
  • Search for nearby places (maps_search_places)
  • Get detailed place information (maps_place_details)
  • Calculate distance and travel time between two points (maps_distance_matrix)
  • Retrieve elevation data (maps_elevation)
  • Get directions (maps_directions)

Setup

Requirements

  • Node.js 20 or higher
  • Firebase CLI
  • Genkit CLI
  • Access to a Google Cloud (Firebase) Project
  • Google Maps Platform API key
  • Google AI API key

Installation

# Clone the project
git clone https://github.com/nozomi-koborinai/genkit-mcp-google-maps-sample
cd genkit-mcp-google-maps-sample

# Install dependencies
npm install

# Install development tools
npm install --save-dev genkit-cli@latest

Environment Variables

Set the following secrets in Firebase Secret Manager:

  • GOOGLE_GENAI_API_KEY: Google AI API key
  • GOOGLE_MAPS_API_KEY: Google Maps API key
export GOOGLE_GENAI_API_KEY=your_genai_api_key
export GOOGLE_MAPS_API_KEY=your_maps_api_key

Usage

Local Development

Open Genkit Develoer UI.

npx genkit start -o -- tsx --watch src/index.ts

Deployment

firebase deploy --only functions

More Location Services MCP servers

Similar servers from the same category.

Baidu Map

baidu-maps

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。关于MCP协议,详见MCP官方文档。 目前提供的MCP工具列表包含8个核心API接口和MCP协议的对接, 涵盖逆地理编码、地点检索、路线规划等。 依赖MCP Python SDK和MCP Typescript SDK开发,任意支持MCP协议的智能体助手(如Claude、Cursor以及千帆AppBuilder等)都可以快速接入。

maplocation

Google Maps

modelcontextprotocol

Location services, directions, and place details

location

mta-mcp

nkasmanoff

MCP server for querying NY transit data

DataQuery

Gaode Map MCP Server Based on Streamable HTTP

Map