MCP server for Nigeria's NIPOST digital postcode (NDAPS): validate, look up, reverse-geocode and resolve addresses to postcodes.
pip install ng-postcode-mcp Copy PIP instructions
MCP server for Nigeria's National Digital Alphanumeric Postcode System (NDAPS), the building-level postcode NIPOST launched in October 2026. It lets AI assistants validate postcodes offline, look them up, autocomplete them and find them by location through the postcode.gov.ng API, and resolve described addresses to postcodes.
Built on the ng-postcode and ng-address-resolver libraries. A Node edition with the same tools, apart from resolve_address, is on npm as ng-postcode-mcp and runs with npx.
All tools are read-only. Errors come back as messages the model can act on, such as a missing key or an exhausted credit balance.
The assistant reads the address and passes its landmarks and map searches to the tool; the server makes no model calls of its own. The answer is never more precise than its evidence:
Text alone rarely identifies a building, so ask users for a location pin when the exact building matters. This tool is pre-release: it works against the live API, but its accuracy on real addresses is unmeasured.
Works with any MCP client. The server runs over stdio:
It needs uv installed. Get an API key from the NIPOST developer dashboard.
Most clients take this entry in their MCP settings:
{ "mcpServers": { "ng-postcode": { "command": "uvx", "args": ["ng-postcode-mcp"], "env": { "NG_POSTCODE_API_KEY": "nipost_live_..." } } } } Client How to add it Claude Code claude mcp add ng-postcode -e NG_POSTCODE_API_KEY=nipost_live_... -- uvx ng-postcode-mcp Claude Desktop The entry above, in its MCP server settings Codex codex mcp add ng-postcode --env NG_POSTCODE_API_KEY=nipost_live_... -- uvx ng-postcode-mcp Cursor The entry above, in .cursor/mcp.json (project) or ~/.cursor/mcp.json (global) VS Code The same server object in .vscode/mcp.json, under a top-level "servers" key instead of "mcpServers" Others Any client that launches stdio servers: use the command, arguments and environment above As a bundle bundle/ holds an MCPB manifest for clients that install .mcpb files, such as Claude Desktop. It runs the published package with uv and asks for the API key in the client's own settings. Build it with npx @anthropic-ai/mcpb pack mcp/bundle ng-postcode.mcpb from the repository root. bundle-python/ is the same bundle for hosts that only run Python bundles, such as Smithery; it starts the server with uvx, so uv must be installed. scripts/smithery_bundle.py builds the copy Smithery accepts, which also carries each tool's input schema.
The public Nominatim at https://nominatim.openstreetmap.org allows light personal use only; a service whose main job is geocoding must run its own instance. Map data © OpenStreetMap contributors.
NG_POSTCODE_TRANSPORT=http uvx ng-postcode-mcp # http://127.0.0.1:8000/mcp docker build -t ng-postcode-mcp . && docker run --rm -i ng-postcode-mcp # from the repository root Over HTTP a caller can send its own NIPOST key in the X-NIPOST-API-Key header, and that key is used for that caller's requests only. A caller that sends none uses the server's key, if NG_POSTCODE_API_KEY is set.
To host the server for other people, leave NG_POSTCODE_API_KEY unset so every caller brings a key, and serve it over HTTPS so the header is encrypted. Callers are trusting the host with their key, and all of them share the host's geocoder, which answers one search a second. Validation still works without any key. If you do set a server key, anyone who can reach the server spends its credits, so keep it on loopback or behind your own authentication. NG_POSTCODE_MAX_LEVEL caps every caller either way.
ai-agents geocoding mcp mcp-server model-context-protocol ndaps nigeria nipost postcode
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 3, 2026.




