Geolens logo

Geolens

by geolens-io

Read-only MCP access to GeoLens datasets, schemas, GeoJSON features, maps, and sandboxed PostGIS SQL.

Install Geolens

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "geolens-io-geolens": {
      "command": "uvx",
      "args": [
        "geolens-mcp"
      ],
      "env": {
        "GEOLENS_INSTANCE": "YOUR_VALUE_HERE",
        "GEOLENS_API_KEY": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Install not yet sandbox-tested— the server itself is confirmed live (we called its tools/list endpoint). The stdio install command is a separate, ongoing check.

Overview

geolens-io/geolens connects coding agents to a self-hosted GeoLens instance through the Model Context Protocol. It supports dataset discovery, schema inspection, GeoJSON feature retrieval, saved-map access, and sandboxed read-only SQL against PostGIS. Requests are limited by the caller’s GeoLens permissions, while write, ingest, and administrative operations are excluded. Reach for it when an agent needs to inspect or query geospatial data during a development session.

Use cases

  • Search a GeoLens catalog for datasets relevant to a coding task
  • Inspect geospatial schemas before writing queries or application code
  • Retrieve GeoJSON features for local analysis
  • Query PostGIS data with sandboxed read-only SQL
  • Review saved maps from a development session

Key features

  • GeoLens dataset search
  • Schema inspection
  • GeoJSON feature access
  • Saved-map retrieval
  • Sandboxed read-only PostGIS SQL
  • Caller-scoped access control

Tools9

What Geolens lets your agent do. Expand a tool for its parameters.

Verified live~2.8k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 15d ago via OSV.dev · geolens-mcp (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars302Stargazers on the source repository.
Last commit1d agoMost recent push to the default branch.
Tools exposed9Callable tools this server registers over MCP.
Directory activity8 viewsConfig copies, upvotes, and views on AllMCPs.

How Geolens works

What geolens-io/geolens does

geolens-io/geolens exposes a read-only view of a self-hosted GeoLens geospatial catalog to MCP-compatible coding agents. Agents can find available datasets, examine their schemas, retrieve GeoJSON features, inspect saved maps, and query the underlying PostGIS data with read-only SQL.

The server is intended for development workflows in which an agent needs geographic data context without direct database administration or write access. Its operations are limited to reading catalog and map information and executing permitted queries.

How it works

The package runs as an MCP server and connects to the GeoLens instance identified by the GEOLENS_INSTANCE environment variable. An API key can be supplied for private data through GEOLENS_API_KEY. Each request is evaluated within the caller’s GeoLens access scope, so the agent receives only the data that caller is allowed to access.

SQL access is sandboxed and read-only. The server does not provide tools for modifying data, ingesting datasets, or administering the GeoLens installation. Agents can use the MCP connection from inside a coding session to combine catalog discovery, schema inspection, feature reads, map lookup, and SQL queries.

Setup and configuration

Install the package from PyPI with:

Terminal
pip install geolens-mcp

The package can also be run through uvx:

bash
uvx geolens-mcp

Set GEOLENS_INSTANCE to the target GeoLens instance. Set GEOLENS_API_KEY when the agent needs to access non-public data. Client-specific MCP configuration and credential handling are described in GeoLens’s MCP guide.

For development, the repository uses uv and includes a test command:

bash
cd mcp
uv run --extra dev python -m pytest -v

Tools and capabilities

  • Search the GeoLens dataset catalog.
  • Inspect dataset schemas before working with data.
  • Read geographic features as GeoJSON.
  • Access saved maps from the connected GeoLens instance.
  • Run sandboxed, read-only SQL over PostGIS.
  • Respect the caller’s data-access permissions.

Limitations and notes

The server is read-only. It has no write, dataset-ingest, or administrative tools. SQL execution is restricted to read-only use and is sandboxed. Access to private datasets requires an API key, and results remain constrained by the permissions of the caller associated with that key. The server is licensed under Apache-2.0.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Geolens

geolens-io/geolens is an MCP server that connects coding agents to a self-hosted GeoLens geospatial catalog. Its main tools support dataset search, schema inspection, GeoJSON feature reads, saved-map access, and sandboxed read-only SQL over PostGIS, with results limited by the caller’s GeoLens permissions.

Install it with `pip install geolens-mcp` or run it with `uvx geolens-mcp`. Configure the MCP client to launch the package, then set `GEOLENS_INSTANCE` and provide `GEOLENS_API_KEY` when accessing non-public data.

Yes, geolens-io/geolens works with Cursor. The server is designed for MCP-compatible coding agents, and Cursor is one of the clients identified for use with it. Client configuration and credential rules are provided in GeoLens’s MCP guide.

No, geolens-io/geolens is read-only. It provides no write, ingest, or administrative tools, and its SQL capability is sandboxed for read-only queries over PostGIS.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewGeolens AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/geolens-io-geolens?style=directory)](https://allmcps.com/mcp/geolens-io-geolens)
HTML Embed
<a href="https://allmcps.com/mcp/geolens-io-geolens"><img src="https://allmcps.com/api/badge/geolens-io-geolens?style=directory" alt="Geolens on AllMCPs" /></a>