Skip to main content

geolens-mcp

Apache-2.0 read-only Model Context Protocol server for GeoLens.

Point a coding agent (Claude Code, Cursor, Codex, …) at a GeoLens instance so it can discover datasets, inspect schemas, read features and maps, and run read-only SQL from inside a dev session. It has no write, ingest or admin tools, and every call is scoped to the caller's access.

Install

pip install geolens-mcp        # or: uvx geolens-mcp

The server reads GEOLENS_INSTANCE and, for non-public data, GEOLENS_API_KEY from the environment. Client setup, the tool list and the credential rules are in the MCP guide.

Tools

All tools are read-only and scoped to the caller's access.

  • search_datasets, get_dataset_schema, get_features: find datasets, read their columns and page through features.
  • list_maps, get_map: saved maps and their layers.
  • list_stories, get_story: published stories and their chapters. Drafts are never read. Against a server that predates chapter counts, chapter_count is null.
  • aggregate: exact counts, statistics, histograms, group-bys and row pages over one dataset.
  • query: one sandboxed SELECT. Use aggregate for counts and summaries.
list_stories(search="skyline", limit=10)
get_story(story_id="<id from list_stories>")
aggregate(dataset_id="<id>", request={"op": "group_by", "group_column": "borough", "stat": "count", "limit": 5})

aggregate keeps the route's limits. A too_wide refusal means the bbox holds over 500,000 rows, so narrow it. A query_busy refusal means two aggregates are already running for you, so retry after a short pause.

Develop

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

Metadata

Release files for geolens-mcp 1.30.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for geolens-mcp 1.30.0
File Size Uploaded Provenance Actions
geolens_mcp-1.30.0.tar.gz 80.7 kB Without provenance Details for geolens_mcp-1.30.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for geolens-mcp 1.30.0
File Interpreter ABI Platform Actions
geolens_mcp-1.30.0-py3-none-any.whl Python 3 none any Details for geolens_mcp-1.30.0-py3-none-any.whl

Total release size: 99.8 kB

Release files / geolens_mcp-1.30.0.tar.gz

Download URL geolens_mcp-1.30.0.tar.gz
Size 80.7 kB
Tags Source
SHA-256 checksum
How to use checksums
8c5d3ecfe5a6bad7a49c008196cb55f730bd78dab784e11b8a6f3a1ea5e176f5
BLAKE2b-256 checksum
How to use checksums
d12f792713a2e09dcf21f335dd3dce2ced2f7a7f1edadad1e5adb68ceba20e33
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / geolens_mcp-1.30.0-py3-none-any.whl

Download URL geolens_mcp-1.30.0-py3-none-any.whl
Size 19.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9de09fc0862f5e90de56499ca981e9d445b91fbdc7b22742cf7bb1a7234cf6c1
BLAKE2b-256 checksum
How to use checksums
036e2b33a468d48f47b855d9673c07d03c7ccc9024ab449e50d827aba3de3f80
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for geolens-mcp 1.30.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.30.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page