bharatlas-mcp 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +26 -0
- package/README.md +2 -2
- package/index.js +8 -6
- package/package.json +1 -1
- package/server.json +2 -2
package/LICENSE
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Urban Morph and contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
22
|
+
|
|
23
|
+
Note: this licence covers the code in this repository only. Each data layer
|
|
24
|
+
in the catalog carries its own open licence (CC0-1.0, CC-BY-4.0, CC-BY-SA-4.0,
|
|
25
|
+
ODbL-1.0, ODC-PDDL-1.0, GODL-India). See the per-card line on the catalog at
|
|
26
|
+
https://bharatlas.com/ for the licence applicable to a given layer.
|
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
[](https://www.npmjs.com/package/bharatlas-mcp)
|
|
4
4
|
[](./LICENSE)
|
|
5
5
|
|
|
6
|
-
Ask questions about India's geo data in natural language. This MCP server connects any LLM to bharatlas: open-licensed layers covering admin boundaries (state to village), city wards, forests, wildlife sanctuaries, rivers, reservoirs, dams, eco-sensitive zones, seismic zones, flood history, highways, airports, health facilities, pincodes, electoral constituencies, and community submissions.
|
|
6
|
+
Ask questions about India's geo data in natural language. This MCP server connects any LLM to bharatlas: open-licensed layers covering admin boundaries (state to village), city wards, forests, wildlife sanctuaries, rivers, canals, reservoirs, dams, groundwater (aquifers, extraction), eco-sensitive zones, agro-climatic and biogeographic zones, seismic zones, flood history, highways, airports, health facilities, pincodes, electoral constituencies, and community submissions.
|
|
7
7
|
|
|
8
8
|
## Install
|
|
9
9
|
|
|
@@ -68,7 +68,7 @@ Thin wrapper over the [bharatlas REST API](https://bharatlas.com/docs). Each too
|
|
|
68
68
|
The server sends instructions to the LLM at connection time that teach:
|
|
69
69
|
- **Schema-first pattern**: check column names and sample values before querying (column names vary: `state` vs `State_LGD` vs `stname`)
|
|
70
70
|
- **Source preference**: LGD for admin boundaries, with SOI/Bhuvan/geoBoundaries as alternates
|
|
71
|
-
- **Concept-to-layer mapping**: "water bodies" = rivers + reservoirs + wetlands + ramsar sites + dams
|
|
71
|
+
- **Concept-to-layer mapping**: "water bodies" = rivers + canals + reservoirs + wetlands + ramsar sites + dams; "groundwater" = aquifers + extraction stage
|
|
72
72
|
- **Spatial join workflow**: locate for context, query for data, nearby for proximity
|
|
73
73
|
|
|
74
74
|
## Links
|
package/index.js
CHANGED
|
@@ -10,7 +10,7 @@ import https from "node:https";
|
|
|
10
10
|
|
|
11
11
|
const API = process.env.BHARATLAS_API || "https://bharatlas.com/api/v1";
|
|
12
12
|
|
|
13
|
-
const SERVER_INSTRUCTIONS = `bharatlas MCP server. India's open geo data: curated layers (state to village boundaries, city wards, forests, hospitals, highways, floods, seismic zones) plus community submissions.
|
|
13
|
+
const SERVER_INSTRUCTIONS = `bharatlas MCP server. India's open geo data: curated layers (state to village boundaries, city wards, forests, hospitals, highways, rivers, canals, groundwater, agro-climatic zones, floods, seismic zones) plus community submissions.
|
|
14
14
|
|
|
15
15
|
Workflow patterns:
|
|
16
16
|
|
|
@@ -42,8 +42,10 @@ Cross-layer queries (combining data from different layers):
|
|
|
42
42
|
- Never assume one layer is enough. Think about what layers need to be combined to answer the question fully.
|
|
43
43
|
- Use locate as the bridge: find what's at a point across ALL relevant layers in one call by passing multiple layer IDs.
|
|
44
44
|
- **Map user concepts to multiple layers.** Users say "water bodies" not "wris_rivers." Translate:
|
|
45
|
-
- "water bodies/water" → wris_rivers, wris_reservoirs, bp_wetlands, bp_ramsar, wris_basin, wris_subbasin
|
|
46
|
-
- "
|
|
45
|
+
- "water bodies/water" → wris_rivers, wris_reservoirs, bp_wetlands, bp_ramsar, wris_basin, wris_subbasin, wris_canals
|
|
46
|
+
- "groundwater/aquifer/water table" → cgwb_aquifers, cgwb_gw_extraction
|
|
47
|
+
- "forests/green cover/ecology" → soi_forests, gs_wildlife, bm_eco_zones, biogeographic_zones
|
|
48
|
+
- "agriculture/farming/cropping zones" → agro_ecological_zones, agro_climatic_zones
|
|
47
49
|
- "hazards/risks" → seismic_zones, india_flood_inventory
|
|
48
50
|
- "health/medical" → nic_health
|
|
49
51
|
- "boundaries/admin" → lgd_states, lgd_districts, lgd_subdistricts, lgd_blocks, lgd_villages
|
|
@@ -62,14 +64,14 @@ const TOOLS = [
|
|
|
62
64
|
description:
|
|
63
65
|
"List available geo layers. Use to discover what data bharatlas has. " +
|
|
64
66
|
"Returns layer IDs, names, row counts, categories, and download formats. " +
|
|
65
|
-
"Filter by category (boundaries, city-wards, environment, transport, etc.), " +
|
|
67
|
+
"Filter by category (boundaries, city-wards, environment, water, agriculture, transport, etc.), " +
|
|
66
68
|
"admin level (state, district, block, village, etc.), source, or text search.",
|
|
67
69
|
inputSchema: {
|
|
68
70
|
type: "object",
|
|
69
71
|
properties: {
|
|
70
72
|
category: {
|
|
71
73
|
type: "string",
|
|
72
|
-
description: "Filter by category: boundaries, city-wards, people, environment, transport, infrastructure, health-edu",
|
|
74
|
+
description: "Filter by category: boundaries, city-wards, people, environment, water, agriculture, transport, infrastructure, health-edu",
|
|
73
75
|
},
|
|
74
76
|
level: {
|
|
75
77
|
type: "string",
|
|
@@ -138,7 +140,7 @@ const TOOLS = [
|
|
|
138
140
|
limit: { type: "number", description: "Max rows (default 100, max 1000)" },
|
|
139
141
|
include_centroid: {
|
|
140
142
|
type: "boolean",
|
|
141
|
-
description: "Include _lat/_lng centroid coordinates
|
|
143
|
+
description: "Include _lat/_lng centroid coordinates (defaults to true). Set false to exclude.",
|
|
142
144
|
},
|
|
143
145
|
},
|
|
144
146
|
required: ["layer_id"],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bharatlas-mcp",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "MCP server for India's open geo data. Query layers, locate points, find nearby features, filter and group data.",
|
|
5
5
|
"keywords": ["mcp", "india", "geo", "geospatial", "gis", "boundaries", "parquet", "pmtiles", "llm", "claude", "bharatlas"],
|
|
6
6
|
"repository": { "type": "git", "url": "https://github.com/urbanmorph/geodata", "directory": "mcp" },
|
package/server.json
CHANGED
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
"$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
|
|
3
3
|
"name": "io.github.urbanmorph/bharatlas-mcp",
|
|
4
4
|
"description": "Query India's open geo data. Locate, filter, nearby search across layers.",
|
|
5
|
-
"version": "1.0.
|
|
5
|
+
"version": "1.0.3",
|
|
6
6
|
"packages": [
|
|
7
7
|
{
|
|
8
8
|
"registryType": "npm",
|
|
9
9
|
"identifier": "bharatlas-mcp",
|
|
10
|
-
"version": "1.0.
|
|
10
|
+
"version": "1.0.3",
|
|
11
11
|
"transport": { "type": "stdio" }
|
|
12
12
|
}
|
|
13
13
|
]
|