GeoLens
Lets your AI agent search a self-hosted spatial data catalog, read datasets and features and run sandboxed SQL.
291 stars on GitHubby GeoLensLicense Apache-2.0Updated 18 days ago
How to install
This MCP is local: it runs on your computer.
It works in apps installed on your PC (Claude Desktop, Claude Code, Cursor, VS Codeβ¦). Choose your app:
Paste in the terminal:
claude mcp add geolens -e GEOLENS_INSTANCE="<your value>" -- uvx geolens-mcp
What to fill in
| Name | What it is | Required |
|---|---|---|
GEOLENS_INSTANCE | Base URL of the GeoLens instance, e.g. https://geolens.example.com (the /api suffix is appended automatically). | Yes |
GEOLENS_API_KEY | API key, sent as X-Api-Key. Omit for public-only access. | No |
GEOLENS_TOKEN | JWT bearer token, used only when GEOLENS_API_KEY is unset. | No |
Ready! Now test it
Restart the app and paste one of these requests in the chat:
Search the catalog for volcanic eruptions.
Show features from the earthquake dataset with magnitude above 6.
What it is
GeoLens is a self-hosted catalog and map builder for spatial data. It records where each dataset came from and serves data through OGC API and STAC. The MCP server gives agents read-only access to the catalog, datasets, features, maps and sandboxed SQL.
What it can do
- Search the spatial data catalog
- Read datasets and their metadata
- Read features from datasets
- Read maps
- Run sandboxed SQL
- Use OGC API Features, OGC API Records and STAC through the API
When to use
- βΊWhen you want your agent to find a dataset in your team's spatial catalog
- βΊWhen you want to check where a dataset came from and how fresh it is
- βΊWhen you want to ask questions about map data with SQL
What you need
Skills that pair well
MCP or skill?
The MCP gives the agent the hands. The skill teaches the right way to use them. Together, the result is better and uses fewer tokens.
rerun-catalog-queriesHelps your agent query a Rerun catalog from Python faster, with tips on round trips, payload size and slow dataset reads.geoapify-automationHelps your agent use Geoapify for geolocation data. It can search for places and geographic information. Useful for maps and spatial analysis.hugging-face-datasetsHelps your agent create and manage datasets on Hugging Face Hub. It allows initializing repositories, defining prompts, and querying data using SQL.Frequently asked questions
Is it free and open source?
Yes, it is licensed under Apache 2.0 and sends no telemetry.
Can the agent change data?
The MCP server is described as read-only.
Do I need to host it myself?
Yes, it runs on your own servers with Docker Compose. A public demo exists, and its data may be wiped.
Which formats can it hold?
Shapefile, GeoPackage, GeoJSON, GeoParquet, FlatGeobuf, KML, CSV, Excel, GeoTIFF and others.
Does it need AI keys?
No. AI features stay off until an administrator sets up a provider.
Which tools can read it?
QGIS, ArcGIS, scripts, Python and TypeScript SDKs and AI agents.
If it does not work
- βΊCheck that Docker with the Compose plugin is installed and the stack is running.
- βΊThe generated admin password is in the .env file as GEOLENS_ADMIN_PASSWORD.
- βΊOpen http://localhost:8080 to confirm the server responds.
5 new skills a week. 1 minute to read.