pincode-mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
pincode-mcp
A Model Context Protocol (MCP) server for Indian PIN code lookups. It lets Claude Code, Claude Desktop, Cline, and any other MCP client resolve a 6-digit Indian PIN code (Postal Index Number) to the offices it serves, its district, state and country.
A PIN code is the 6-digit postal code used by India Post. The first two digits mark the state/region, the last three identify the delivery office.
What it does
One tool:
pincode_lookup— resolves a 6-digit Indian PIN code to location details (post offices, district, state, country).
Related MCP server: google_maps_mcp
Quick start
Requires Node.js 18+ (uses the built-in global fetch). No API key is needed.
# from the monorepo root
npm install # installs @modelcontextprotocol/sdk
npm run test --workspace pincode-mcp # run the testsRun the server directly (stdio transport):
node server.jsMCP client configuration
Add it to your MCP client's configuration as a stdio server:
{
"mcpServers": {
"pincode": {
"command": "node",
"args": ["/absolute/path/to/india-mcp/pincode-mcp/server.js"]
}
}
}Or, from inside the package folder:
{
"mcpServers": {
"pincode": {
"command": "node",
"args": ["server.js"]
}
}
}Tool examples
pincode_lookup — arguments:
argument | type | required | description |
| string | yes | 6-digit Indian PIN code, e.g. |
Example call:
{ "name": "pincode_lookup", "arguments": { "pincode": "560001" } }Example response (trimmed):
{
"ok": true,
"data": {
"pincode": "560001",
"district": "Bengaluru Urban",
"stateCode": "KA",
"state": "Karnataka",
"country": "India",
"offices": [
{
"name": "Bengaluru G.P.O.",
"type": "Head Office",
"delivery": true,
"division": "Bangalore Gpo Division",
"region": "Bengaluru Hq",
"circle": "Karnataka",
"district": "Bengaluru Urban",
"stateCode": "KA",
"state": "Karnataka",
"latitude": 12.971599,
"longitude": 77.594563
}
]
}
}An invalid PIN (anything other than 6 digits) is rejected locally:
{ "name": "pincode_lookup", "arguments": { "pincode": "12345" } }{
"ok": false,
"error": "pincode must be exactly 6 digits"
}Data source
Data is fetched from https://api.dharun.dev (free, no API key, CORS allowed):
GET https://api.dharun.dev/v1/pincode/{pincode}This API draws on the Government Open Data of India — "All India Pincode Directory" (Department of Posts), published on data.gov.in under the Government Open Data License (GODL). Pin codes are validated against this directory; an unknown pin code returns a 404 with a descriptive error.
Scripts
script | description |
| run the server ( |
| run the server ( |
| run the tests ( |
License
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Unofficial Postcodes MCP — wraps postcodes.io UK postcode API (free, no auth)
Identity resolution MCP server for phone/email lookups across 31+ services. Global + India coverage.
Unofficial Zippopotam MCP — wraps Zippopotam.us ZIP/postal code API (free, no auth)
ifsc-in MCP — Indian bank branch IFSC code lookup via Razorpay's open IFSC API…
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceIdentity resolution MCP server for phone/email lookups across 31+ services. Provide detailed Identity info, Breach Info, Global + India coverage.1MIT
- AlicenseNot gradedqualityDmaintenanceEnables querying Google Maps and Places APIs for local businesses and tourist attractions in India through a simple MCP interface.4MIT
- AlicenseAqualityDmaintenanceMCP server that resolves postal/ZIP codes to place names, states, and coordinates using Zippopotam.us. Free, no API key required.1MIT
- AlicenseAqualityCmaintenanceEnables live GSTIN verification, GST return and compliance history lookup, HSN/SAC code searches, and MCA company registry queries through MCP clients.1052 npmMIT