# geodata [Health: Active]

**Category:** 🗺️ Location Services  
**Repository:** https://github.com/urbanmorph/geodata  
**GitHub Stars:** 44  
**npm Downloads (last month):** 1552  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/geodata

## Description
bharatlas: India's open geo data. Boundaries, wards, forests, rivers and more, viewable and downloadable (parquet, pmtiles, geojson), with an MCP server.

## Tools
Capabilities this server exposes over MCP:

- **list_layers** — List available geo layers. Use to discover what data bharatlas has. Returns layer IDs, names, row counts, categories, and download formats. Filter by category (boundaries, city-wards, environment, water, agriculture, transport, etc.), admin level (state, district, block, village, etc.), source, or text search.
- **get_layer_schema** — Get column names, types, and sample values for a layer. Use BEFORE querying to discover what columns exist and what values they contain. Essential for knowing the right column names for filters.
- **query_layer** — Query a layer's data with filters and grouping. Reads the parquet file at runtime. Supports: select specific columns, filter by column values, group by a column to get counts, and sum numeric columns per group (e.g. roll block areas up to district totals). Use get_layer_schema first to discover column names. Examples: 'airports in Karnataka' -> where: {state: 'KA'}, 'forest types' -> group_by: 'type', 'health facilities in Bihar' -> where: {state: 'BIHAR'}, select: ['name', 'type'].
- **locate** — Given a latitude/longitude, find which administrative boundaries, zones, and regions contain that point. Returns state, district, subdistrict, block, parliament/assembly constituency, pincode, seismic zone, high court jurisdiction, the municipal ward (for the ~30 cities with ward data), and more. The 'where am I?' tool. Also accepts specific layer IDs to check.
- **nearby** — Find features from a layer that are near a given point, nearest first, within radius_km. Reads the layer's parquet bounding boxes and ranks features by distance to their centres; works for points, polygons and lines. Returns the true count within the radius plus the nearest `limit`. Example: 'reservoirs near Bengaluru' -> layer_id: 'wris_reservoirs', lat: 12.97, lng: 77.59, radius_km: 50.
- **list_categories** — List all data categories with layer counts.
- **get_layer_detail** — Get full metadata for a single layer: download URLs (parquet, pmtiles, geojson, kml, shapefile), attribution, license, feature count, and level metadata.
- **list_submissions** — List community-submitted geo layers. These are user-contributed datasets under open licenses. Filter by category or search by name.
- **register_map** — Register a collect map so this server can act on it. Paste the whole share link (e.g. https://collect.bharatlas.com/c/<id>/admin#<token>). The token in the #fragment sets your scope: admin = full control, collect = add points, view = read published. New maps are created online at collect.bharatlas.com first (no account or key needed); this registers one you already made.
- **list_my_maps** — List the collect maps you have registered here (local store), each with its scope.
- **get_map** — A collect map's metadata + record counts, plus a link to open it in collect. Any registered scope.
- **get_records** — A collect map's records as a GeoJSON FeatureCollection — for reading, analysis, or backup/export. view and collect scope return published points; admin can also read pending/rejected via status. Each record's properties._photos lists its photo links (public once the point is approved); _ai holds notes a model wrote from the photo (others see only notes the owner accepted).
- **moderate_record** — Approve or reject one pending point (needs the admin link). Pass the map id it belongs to.
- **import_points** — Bulk-import points you already hold into a collect map (needs the admin link). NOT for synthetic data. Requires a named source + rights confirmation; each row lands with that source as its provenance.
- **edit_map** — Edit a collect map's settings: name/description/purpose/category/data_year/basemap (needs the admin link). Licence can only change while the map has no records.
- **publish** — Submit a collect map's approved points to the bharatlas catalog for review (needs the admin link). Nothing goes live automatically — a maintainer approves the submission first; the response status is 'pending' until then. Once approved it is queryable via list_submissions / query_layer / locate above.
- **create_map** — Optional: create a collect map programmatically. Most maps are made online at collect.bharatlas.com (no key needed) — prefer that and register_map the link. This path needs COLLECT_API_KEY (the request-only anti-abuse gate) and auto-registers the new admin link.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "geodata": {
    "command": "npx",
    "args": ["-y","bharatlas-mcp@latest"]
  }
}
```

## Documentation

## What geodata does

geodata exposes bharatlas, India's open geospatial catalog, through the Model Context Protocol. The catalog covers administrative boundaries from states to villages, city wards, electoral constituencies, water features, forests, wildlife areas, environmental zones, roads, hospitals, pincodes, agriculture, and other location datasets.

AI assistants can use the server to discover available layers, inspect their schemas, retrieve data, and perform location-based queries. The underlying catalog also provides downloads in formats such as GeoParquet, PMTiles, GeoJSON, KML, and Shapefile, although the MCP interface is focused on interacting with the data and authoring collect maps.

## How it works

The hosted endpoint at `https://bharatlas.com/mcp` uses Streamable HTTP and exposes eight read tools. These tools require no API key and are read-only. They are suitable for questions about available layers, filtering records, locating features by point, and finding nearby features.

The npm package, `bharatlas-mcp`, runs as a stdio MCP server. It includes the read capabilities plus tools for authoring collect maps. Collect actions operate only on maps whose share links have been registered. Share links remain on the local machine rather than being supplied through a central account.

The server works with the bharatlas catalog and its REST API. Data coverage and accuracy depend on the individual source layers; the catalog records each layer's source, licence, row count, freshness, and download information.

## Setup and configuration

For read-only access, add the hosted endpoint as a custom connector in a compatible MCP client, or register it with Claude Code using:

```bash
claude mcp add --transport http bharatlas https://bharatlas.com/mcp
```

To use the complete local server, configure the npm package with a standard stdio entry:

```json
{
  "mcpServers": {
    "bharatlas": {
      "command": "npx",
      "args": ["-y", "bharatlas-mcp@latest"]
    }
  }
}
```

The package can be configured in Claude Code, Claude Desktop, Cursor, or Windsurf. Claude Code uses `.mcp.json` in a project root or `~/.claude.json`; Claude Desktop uses its desktop configuration file; Cursor uses `~/.cursor/mcp.json`; and Windsurf uses its MCP configuration.

## Tools and capabilities

- Browse the bharatlas layer catalog and discover datasets by subject.
- Inspect layer schemas before querying records.
- Query and filter geographic features using layer data.
- Group results and calculate per-group sums where supported by the API.
- Locate the feature containing a point through point-in-polygon queries.
- Find features within a specified radius of a location.
- Use collect tools to create and manage map-authoring workflows for registered share links.
- Access eight hosted read tools without installing software or providing a key.

## Limitations and notes

The hosted endpoint is read-only; map-authoring capabilities require the local npm package. Collect operations are restricted to maps whose share links have been registered locally.

Layer availability and formats differ by dataset. Very large administrative layers, including gram panchayat and village data, are better handled after slicing by state or by reading the corresponding Parquet data. Names, coverage, and polygon precision can vary between sources, so applications should use the source and licence information attached to each layer.

The code is MIT-licensed, while data licensing is defined separately for each layer. Reading the catalog does not require an account or API key.

_Full upstream README: https://allmcps.com/mcp/geodata/readme_

