Skip to content

cameronking4/google-earth-engine-mcp

Repository files navigation

Google Earth Engine MCP Server

Uses @vercel/mcp-adapter image image

Usage

This sample app uses the Vercel MCP Adapter that allows you to drop in an MCP server on a group of routes in any Next.js project.

Update app/[transport]/route.ts with your tools, prompts, and resources following the MCP TypeScript SDK documentation.

Google Earth Engine Tools

This project includes MCP tools for interacting with Google Earth Engine, a cloud-based platform for geospatial analysis. These tools allow AI assistants to:

  • Initialize and authenticate with Earth Engine
  • Visualize Earth Engine datasets as maps
  • Retrieve information about Earth Engine datasets
  • Compute statistics for Earth Engine data in specified regions
  • Search for Earth Engine datasets

For more details, see the Earth Engine Tools README.

To use Earth Engine tools, you'll need:

  1. A Google Earth Engine account
  2. A Google Cloud service account with Earth Engine access
  3. A service account private key for authentication

Notes for running on Vercel

  • To use the SSE transport, requires a Redis attached to the project under process.env.REDIS_URL
  • Make sure you have Fluid compute enabled for efficient execution
  • After enabling Fluid compute, open app/route.ts and adjust maxDuration to 60 (or higher if using a Vercel Pro or Enterprise account)
  • Deploy the Next.js MCP template

Sample Client

script/test-client.mjs contains a sample client to try invocations.

node scripts/test-client.mjs https://mcp-for-next-js.vercel.app

About

MCP server for Google Earth Engine. Query Google Earth Engine with natural language. Fetch datasets, run tasks and visualize in chat.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages