Skip to content
VS Code

GeoLens for VS Code

io.github.geolens-io/geolens

Read-only access to a self-hosted GeoLens spatial catalog: datasets, features, maps, sandboxed SQL.

client:VS Code transport:stdio runtime:pypi

Install GeoLens in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "geolens-instance",
      "description": "GEOLENS_INSTANCE",
      "password": true
    },
    {
      "type": "promptString",
      "id": "geolens-api-key",
      "description": "GEOLENS_API_KEY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "geolens-token",
      "description": "GEOLENS_TOKEN",
      "password": true
    }
  ],
  "servers": {
    "geolens": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "geolens-mcp"
      ],
      "env": {
        "GEOLENS_INSTANCE": "${input:geolens-instance}",
        "GEOLENS_API_KEY": "${input:geolens-api-key}",
        "GEOLENS_TOKEN": "${input:geolens-token}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

GeoLens in other clients