Postcodes
liveGeographyEuropeLook up, validate, and explore UK postcodes via postcodes.io
Tools
lookup_postcoderequired: postcodeGet geographic details for a UK postcode (e.g., 'SW1A 1AA'). Returns coordinates, region, district, ward, and constituency.
postcodereqstringUK postcode to look up (e.g. "SW1A 1AA" or "SW1A1AA").Try it
nearest_postcodesrequired: postcodeFind nearby UK postcodes sorted by distance from a given postcode (e.g., 'SW1A 1AA'). Returns list with coordinates.
postcodereqstringUK postcode to find neighbours for (e.g. "SW1A 1AA").Try it
validate_postcoderequired: postcodeValidate a UK postcode format (e.g., 'SW1A 1AA'). Returns whether it's valid and format details.
postcodereqstringUK postcode to validate (e.g. "SW1A 1AA").Try it
random_postcodeGet a random valid UK postcode with full geographic details. Returns coordinates, region, district, ward, and constituency.
No parameters required.
Try it
Test with curl
The gateway speaks JSON-RPC 2.0 over HTTP POST. You can test any pack directly from the terminal.
curl -X POST https://gateway.pipeworx.io/postcodes/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'curl -X POST https://gateway.pipeworx.io/postcodes/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"lookup_postcode","arguments":{"postcode": "SW1A 1AA"}}}'Use with the SDK
Install @pipeworx/sdk to call tools from any TypeScript/Node project.
import { Pipeworx } from '@pipeworx/sdk';
const px = new Pipeworx();
const result = await px.call("lookup_postcode", {"postcode":"example"});// Or ask in plain English:
const answer = await px.ask("look up, validate, and explore uk postcodes via postcodes");