GeoLens

v1.35.0
io.github.geolens-io/geolens Checked 3 hours ago Published 2 days ago

Search a self-hosted GeoLens catalog and, with a map_author API key, create and style maps.

Values you need

VariableWhat it is
GEOLENS_INSTANCErequired Base URL of the GeoLens instance, e.g. https://geolens.example.com (the /api suffix is appended automatically).
GEOLENS_API_KEYoptional secret API key, sent as X-Api-Key. Omit for public-only access. A map_author key also lets the map authoring tools create and style maps.
GEOLENS_TOKENoptional secret JWT bearer token, used only when GEOLENS_API_KEY is unset.

PyPI (uvx) verified

Requires uv (https://docs.astral.sh/uv/)

Run in a terminal
claude mcp add geolens -e 'GEOLENS_INSTANCE=<GEOLENS_INSTANCE>' -- uvx geolens-mcp==1.35.0
Add to claude_desktop_config.json
{
  "mcpServers": {
    "geolens": {
      "args": [
        "geolens-mcp==1.35.0"
      ],
      "command": "uvx",
      "env": {
        "GEOLENS_INSTANCE": "<GEOLENS_INSTANCE>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "geolens": {
      "args": [
        "geolens-mcp==1.35.0"
      ],
      "command": "uvx",
      "env": {
        "GEOLENS_INSTANCE": "<GEOLENS_INSTANCE>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "GEOLENS_INSTANCE",
      "id": "geolens-instance",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "geolens": {
      "args": [
        "geolens-mcp==1.35.0"
      ],
      "command": "uvx",
      "env": {
        "GEOLENS_INSTANCE": "${input:geolens-instance}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.geolens]
command = "uvx"
args = ["geolens-mcp==1.35.0"]
env = { "GEOLENS_INSTANCE" = "<GEOLENS_INSTANCE>" }

For AI agents

  1. Ask the user for: GEOLENS_INSTANCE. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: search_datasets, get_dataset_schema, get_features, list_maps, get_map, list_stories, get_story, aggregate, ….
  5. If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.

Machine-readable: install.md · manifest.json