
Nigeria Postcode
io.github.Adeniyikayodeev0.2.3Updated Oct 3, 2026
Validate, look up and resolve addresses to Nigeria's NIPOST digital postcodes (NDAPS).
Overview
Lets an assistant validate, look up, autocomplete and locate Nigeria's NIPOST digital postcodes, and resolve described addresses to codes.
- What it does
- Wraps Nigeria's National Digital Alphanumeric Postcode System (NDAPS) through the postcode.gov.ng API. Tools include validate_postcode (offline structure check with canonical forms and fixes for look-alike characters), lookup_postcode (confirms a code is assigned, with address at level 2 and building use at level 3), autocomplete_postcode, find_postcode_at_location, and resolve_address, which turns a described address or location pin into a postcode only as precisely as the evidence allows. All tools are read-only.
- When to use it
- Useful when an assistant must check or complete Nigerian postcodes, find the code for a coordinate, or turn a loosely described Nigerian address into a postcode. Worth adding if you work with Nigerian addresses and want the lookup done through the official API rather than guesswork.
- Requirements
- Runs locally over stdio via uvx, so uv must be installed. An API key from the NIPOST developer dashboard is set in NG_POSTCODE_API_KEY (optional for validate_postcode). resolve_address for text needs NG_GEOCODER_URL and, for the public Nominatim, NG_GEOCODER_CONTACT. NG_POSTCODE_MAX_LEVEL defaults to 1; NG_POSTCODE_BASE_URL can point at another host.
Installation
In SourceWeft
- Open Nigeria Postcode in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
ng-postcode-mcp
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.
Tools
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.
How resolve_address answers
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.
Install
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:
Configuration
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.
Safety
- Lookups default to level 1, which is free. A model cannot spend credits unless you raise
NG_POSTCODE_MAX_LEVEL. - A mistyped code is never corrected and sent to the API silently. The server returns the suggestion and asks the model to confirm it with the user.
- Levels 2 and up return house addresses. Treat them as personal data under the Nigeria Data Protection Act.
resolve_addresssends the search strings to the geocoder you configure. With a third-party geocoder, that shares address text with it.
License
MIT
Source: mcp/README.md at commit 900bf78
Tools
0Version history
1- v0.2.3LatestOct 3, 2026
