@postio/mcp
v0.1.1
Published
Model Context Protocol server for Postio — UK address, email, and phone validation as tools for Claude, Cursor, Windsurf, Zed, etc.
Maintainers
Readme
@postio/mcp
Model Context Protocol server for Postio — UK address, email, and phone validation as tools for any MCP-aware AI host.
Works with Claude Desktop, Claude Code, Cursor, Windsurf, Zed, Continue, and anything else that speaks MCP over stdio.
Node 20+.
Install
You don't, really. Use npx from your host's MCP config.
Claude Code
claude mcp add postio --env POSTIO_API_KEY=pk_live_… -- npx -y @postio/mcpClaude Desktop
Edit ~/Library/Application Support/Claude/claude_desktop_config.json
(macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"postio": {
"command": "npx",
"args": ["-y", "@postio/mcp"],
"env": { "POSTIO_API_KEY": "pk_live_…" }
}
}
}Cursor
~/.cursor/mcp.json (or <project>/.cursor/mcp.json for project-scoped):
{
"mcpServers": {
"postio": {
"command": "npx",
"args": ["-y", "@postio/mcp"],
"env": { "POSTIO_API_KEY": "pk_live_…" }
}
}
}Windsurf / Zed / Continue
Same JSON as Cursor — they all consume the standard MCP server config shape.
Tools
| Tool | What it does | Billable |
|---|---|---|
| postio_address_search | Free-form UK address search → suggestions + UDPRNs | No |
| postio_postcode_lookup | All PAF delivery points at a postcode | Yes (on hit) |
| postio_udprn_lookup | Full record for a single UDPRN | Yes (on hit) |
| postio_email_validate | Syntax + typo + MX + SMTP + classification | Yes |
| postio_phone_validate | Parse + live HLR lookup (carrier, ported, reachable) | Yes |
| postio_connect | Free health probe | No |
The tools are intentionally primitive and 1:1 with the API. The
agent decides when to chain them — a typical address-finder flow
is postio_address_search → pick a UDPRN → postio_udprn_lookup
for the full record.
Each tool returns the raw API envelope as JSON text, including
meta.requestId for support correlation.
Example prompts
"Look up the address with udprn 25742215." →
postio_udprn_lookupwithudprn=25742215
"Find addresses on Wimpole Street W1G." →
postio_address_searchwithquery="Wimpole Street W1G"
"Is [email protected] a real email address?" →
postio_email_validatewithemail="[email protected]"→ the response includesdidYouMean: "gmail.com".
"Verify these UK phone numbers and tell me which are mobile." →
postio_phone_validateper number.
Configuration
| Env var | Purpose |
|---|---|
| POSTIO_API_KEY | Required. Your Postio API key. |
| POSTIO_BASE_URL | Optional override of the API base URL (default https://api.postio.co.uk/v1). |
The server fails fast at startup if POSTIO_API_KEY is missing.
License
MIT.
