New:Microsoft Teams Notifications Are Now Available in Socket.Learn more →
Get Started

@embedearth/mcp

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@embedearth/mcp

Model Context Protocol server for E2 — expose Earth's open spacetime index to AI agents.

Source
npmnpm
Version
0.1.12
Version published
Weekly downloads
147
-83.43%
Maintainers
1
Weekly downloads
 
Created
Source

@embedearth/mcp

EmbedEarth is an open, programmable geographic layer for physical-world data. This MCP server gives AI agents structured tools for Search, Compute, Routing, Maps, and Stratum.

Install

npx -y @embedearth/mcp

Modes

ModePurpose
autoUse verified local Stratum data first, then run the function in Cloud.
offlineUse only verified local data and make no network request.
cloudRun the function in EmbedEarth Cloud. A key is optional, but unauthenticated use is heavily limited.

API key and limits

An API key is optional. Cloud Search, Compute, and Route requests are limited to 60 requests per minute without a key, or 2,000 requests per minute with a key. e2_stratum query without a key should be treated as one request per second. A key is also required for Street View image access. Create one at embed.earth and configure it as E2_API_KEY in the MCP host environment.

e2_search returns matching physical-world records as a GeoJSON FeatureCollection. feature is a canonical key or numeric ID; use area, area_id, coordinates, or country_code and state_code to select the search scope.

Optional parameters

ParameterTypePurpose
areastring | string[]Search named areas. Mutually exclusive with area_id.
area_idstring | string[]Search exact area IDs. Mutually exclusive with area.
country_codestringSelect a country, for example US.
state_codestringSelect a state or province, for example NY.
latitude, longitudenumberSearch around a coordinate. Provide both.
modecloud | offline | autoSelect the execution mode. Defaults to auto.
limitnumberMaximum number of returned features. Defaults to 1000.
{ "feature": "restaurant", "area": "New York", "mode": "auto", "limit": 25 }
{ "feature": "restaurant", "area_id": "4915", "mode": "cloud", "limit": 25 }
{ "feature": "restaurant", "latitude": 40.7128, "longitude": -74.006, "mode": "cloud", "limit": 25 }
{ "feature": "restaurant", "country_code": "US", "state_code": "NY", "mode": "cloud", "limit": 25 }

Compute

e2_compute returns spatial analysis instead of raw records. feature is what is measured, area or area_id is the scope, and near or within names the related feature when needed.

PrimitivePurpose
NEARESTFind the closest features.
DISTANCEMeasure distance between feature sets.
WITHINSelect features inside a relation distance.
COUNTCount related features.
DENSITYMeasure feature concentration.
COVERAGEMeasure reached area.
GAPSFind unreached areas.
CLUSTERGroup nearby features.
{ "primitive": "COUNT", "feature": ["restaurant"], "area_id": "4915", "near": "park", "distanceMeters": 500, "mode": "cloud" }
{ "primitive": "DENSITY", "feature": ["restaurant"], "area": "New York", "near": "park", "distanceMeters": 500, "mode": "auto" }

Routing

Routing builds directions and network-analysis responses from coordinates or indexed features. Use e2_route_to_feature for a coordinate-to-feature route and e2_route for direct routes, matrices, isochrones, map matching, locate, and height.

Set ROUTE_URL only when you want a custom compatible routing service.

Tool or operationPurpose
e2_route_to_featureRoute from a coordinate to a matching feature, such as the closest restaurant.
e2_route with routeBuild a route between one or more coordinates.
e2_route with matrixReturn travel costs between multiple sources and targets.
e2_route with isochroneCalculate the area reachable within one or more time limits.
e2_route with mapMatchMatch a recorded coordinate trace to the road network.
e2_route with locateResolve a coordinate to the routable network.
e2_route with heightReturn elevation data for one or more locations.
{ "feature": "restaurant", "from": [40.7128, -74.006], "mode": "walking" }
{ "operation": "matrix", "body": { "sources": [{ "lat": 40.7128, "lon": -74.006 }], "targets": [{ "lat": 40.7306, "lon": -73.9352 }], "mode": "driving" } }

Maps

e2_map_sources prepares MapLibre-ready Planet and feature source descriptors. It returns map data metadata rather than rendering a map in the agent conversation.

Stratum

e2_stratum provides geographic lookup, published data discovery, verified caching, downloads, local queries, and namespaced uploads. Use it when an agent needs repeatable local data or must add user-owned GeoJSON, CSV, or Parquet features.

OperationPurpose
cacheList, cacheSet, cacheDelete, cacheClearManage verified local data.
featureList, featureSearch, featureInfoLook up built-in features.
areaList, areaSearch, areaInfoLook up built-in areas.
dataList, dataInfoInspect published data.
download, queryPull and query Cloud or local data.
uploadAdd namespaced local data.
{ "operation": "upload", "path": "./stores.geojson", "database": "./stores.db", "feature": "stores", "namespace": "my-app" }

Geographical Features

Geographical features are the canonical physical-world types used across the MCP tools, including places, infrastructure, observations, and imagery-linked records. Browse them at Catalog Features.

Geographical Areas

Geographical areas are countries, states, cities, and other regions used to scope data. Browse names and stable IDs at Catalog Areas.

Street View Images

EmbedEarth ingests billions of Street View images and discovers new features or where imagery pairs with reported places. Street View is Cloud-only for now because of cost; an API key and an active subscription are required for unlimited use.

Other interfaces

SDK package · CLI package · Full MCP docs

Keywords

e2

FAQs

Package last updated on 16 Sep 2026

Related posts