Integrations
Uses the Google Maps API to fetch Street View data, requiring an API key with Street View API enabled.
Enables fetching and displaying Street View imagery by address, coordinates, or panorama ID, saving images to local files, and creating HTML pages that compile multiple Street View images into virtual tours.
Street View MCP
A Model-Client-Protocol (MCP) server for Google Street View API that enables AI models to fetch and display street view imagery and create virtual tours.
Using with Claude Desktop
To use Street View MCP with Claude Desktop:
- Ensure you have
uv
installed: UV Installation Guide - Clone this repository:Copy
- Install dependencies:Copy
- Get a Google Maps API key (instructions below)
- Add the following to your Claude Desktop
claude_desktop_config.json
file:
After configuration, you can use Street View MCP in Claude Desktop simply by typing "/street_view".
Overview
Street View MCP provides a simple interface for AI models to:
- Fetch Street View images by address, coordinates, or panorama ID
- Save images to local files
- Open saved images in the default viewer
- Create HTML pages that compile multiple Street View images into virtual tours
Requirements
- Python 3.9+
- Google Maps API key with Street View API enabled
fastmcp
packageuv
package manager (recommended)
Installation
API Key Setup
The Street View MCP requires a Google Maps API key with Street View API enabled:
- Visit the Google Cloud Console
- Create a new project or select an existing one
- Enable the "Street View Static API" in the API Library
- Create an API key from the Credentials page
- Set the API key as an environment variable:
Usage
Starting the MCP Server
The server will be available to AI models at the specified host and port.
Using as a CLI Tool
MCP Tools
The Street View MCP provides the following tools for AI models:
get_street_view
Fetches a Street View image based on location, coordinates, or panorama ID and saves it to a file.
Parameters:
filename
(required): Name for saving the image (must not already exist)location
(optional): Address to get image forlat_lng
(optional): Comma-separated coordinates (e.g., "40.748817,-73.985428")pano_id
(optional): Specific panorama IDsize
(optional): Image dimensions as "widthxheight" (default: "600x400")heading
(optional): Camera heading in degrees (0-360, default: 0)pitch
(optional): Camera pitch in degrees (-90 to 90, default: 0)fov
(optional): Field of view in degrees (10-120, default: 90)radius
(optional): Search radius in meters (default: 50)source
(optional): Image source ("default" or "outdoor", default: "default")
Note: Exactly one of location
, lat_lng
, or pano_id
must be provided.
get_metadata
Fetches metadata about a Street View panorama.
Parameters:
- Same location parameters as
get_street_view
- Returns JSON metadata with status, copyright, date, panorama ID, and coordinates
open_image_locally
Opens a saved Street View image in the default application.
Parameters:
filename
(required): The filename of the image to open (must exist in output directory)
create_html_page
Creates an HTML page that displays multiple Street View images as a virtual tour.
Parameters:
html_elements
(required): List of HTML content elementsfilename
(required): Name for the HTML filetitle
(optional): Page title (default: "Street View Tour")
Important: When referencing images, always use the path ../output/filename.jpg
.
Creating Virtual Tours
The Street View MCP enables creation of virtual tours by combining multiple Street View images with descriptive text in an HTML page.
Example workflow for creating a tour:
- Fetch images of different locations:
- Create an HTML tour page:
Project Structure
street_view_mcp/
__init__.py
: Package initializationmain.py
: Entry point for MCP serverserver.py
: MCP server implementationstreet_view.py
: Core Street View API client
Important Notes
- Local Storage: This tool saves all Street View images and HTML files locally in the
output/
directory - No Automatic Cleanup: There is no built-in mechanism to delete saved files
- Manual Cleanup: You should periodically clean up the
output/
directory to manage disk space - API Usage: Each image request counts toward your Google Maps API quota and may incur charges
Development
Testing
License
MIT
This server cannot be installed
A server that enables AI models to fetch and display Google Street View imagery, allowing users to create virtual tours by viewing streets and landmarks from anywhere.
Related MCP Servers
- -securityAlicense-qualityA server that provides AI-powered image generation, modification, and processing capabilities through the Model Context Protocol, leveraging Google Gemini models and other image services.Last updated -6PythonMIT License
- -securityFlicense-qualityA server that enables AI systems to browse, retrieve content from, and interact with web pages through the Model Context Protocol.Last updated -
- AsecurityAlicenseAqualityAn MCP server that creates a virtual traveling environment on Google Maps, allowing users to guide an avatar on journeys with photo reports and SNS integration.Last updated -214011TypeScriptMIT License
- -securityAlicense-qualityA server that enables AI models to access Kakao Map features (place search, address lookup, route finding) and Daum search services (web, image, blog, cafe) through Model Context Protocol.Last updated -3TypeScriptMIT License