Koskamo

ClearPostcode MCP

An official MCP server by ClearPostcode providing AI assistants with read-only access to live UK postcode data, including lookup, validation, nearest location, distance calculation, and area information.

Endpoint and access

No sign-in to connect and list tools. Individual tools may still need a vendor account, credentials, or permissions; check the documented prerequisites.

ClearPostcode MCP logo, by ClearPostcodeVendor evidenceStreamable HTTPNo sign-inEndpoint checked 2026-11-28Operated by ClearPostcode
You need:10,000 postcode lookups a month free, a key in under a minute, no card.
MCP endpoint (Streamable HTTP)
https://api.clearpostcode.co.uk/mcp
Vendor documentation

What its tools do

8 tools, grouped by the hints the server advertises. Hints are self-declared, not verified behavior.

8 of 8 have a description · 8 of 8 declare behavior hints · 3 of 8 with parameters document them all

Checks and signals

Each line is separate evidence, not a trust score.

  • Passed Endpoint answered the live check ·
  • Passed Official MCP Registry namespace is tied to clearpostcode.co.uk ·
  • Passed Endpoint is on the registry namespace domain ·
  • Availability 1 of 1 checks passed in 30 days

What you can do with it

  • Look up council, ward, and constituency for a UK postcode
  • Validate if a UK postcode is live and correctly formatted
  • Find the nearest live postcodes to a given location
  • Calculate straight-line distance between two postcodes

Source and maintenance

Vendor evidenceRegistry 1.0.2

Protocol and capabilities

Server
clearpostcode 1.0.0
MCP protocol negotiated in check
2025-11-25
Tools
8 advertised
Resources
Not advertised
Resource templates
Not advertised
Prompts
Not advertised
Server-advertised capabilities
{
  "tools": {
    "listChanged": false
  }
}

Server-provided instructions

Untrusted server output shown for inspection. It is not Koskamo guidance and is excluded from knowledge search.

Use these tools for any question about a UK postcode: where it is, which council, ward, constituency or county it is in, whether it is real and still in use, what is nearby, distances between postcodes, and which postcode district a town or village is in. Data: the ONS Postcode Directory (August 2026 edition) and OS Open Names, covering Great Britain, the Channel Islands and the Isle of Man. Northern Ireland (BT) postcodes are checked by format only. Quote figures as given and link the ClearPostcode page from the result.

Tools

8 advertised

lookup_postcode — Look up UK postcodes
Advertised by the server during the last successful anonymous check.
Advertised read-only

Everything about one UK postcode, or up to 100 at once (10 without an API key): whether it is live or terminated, latitude and longitude, and the council, ward, parish, constituency, county, region, police force, NHS board, rural-urban class and deprivation decile it sits in. Use for any question about where a postcode is or which area it belongs to.

lookup_postcode input schema
{
  "type": "object",
  "required": [],
  "properties": {
    "fields": {
      "type": "string",
      "description": "Optional comma-separated fields to keep, e.g. \"location,local_authority\"."
    },
    "postcode": {
      "type": "string",
      "description": "A UK postcode, e.g. \"SW1A 1AA\" (any case, space optional)."
    },
    "postcodes": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "maxItems": 100,
      "description": "Up to 100 postcodes instead of one (10 without an API key)."
    }
  },
  "additionalProperties": false
}
lookup_postcode output schema
{
  "type": "object",
  "required": [
    "result",
    "page",
    "citation"
  ],
  "properties": {
    "page": {
      "type": "string",
      "format": "uri"
    },
    "result": {
      "oneOf": [
        {
          "type": "object",
          "required": [
            "postcode",
            "status"
          ],
          "properties": {
            "icb": {
              "anyOf": [
                {
                  "type": "object",
                  "required": [
                    "code",
                    "name"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "name": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "additionalProperties": false
                },
                {
                  "type": "null"
                }
              ]
            },
            "area": {
              "type": "string"
            },
            "lsoa": {
              "anyOf": [
                {
                  "type": "object",
                  "required": [
                    "code",
                    "name"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "name": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "additionalProperties": false
                },
                {
                  "type": "null"
                }
              ]
            },
            "msoa": {
              "anyOf": [
                {
                  "type": "object",
                  "required": [
                    "code",
                    "name"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "name": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "additionalProperties": false
                },
                {
                  "type": "null"
                }
              ]
            },
            "ward": {
              "anyOf": [
                {
                  "type": "object",
                  "required": [
                    "code",
                    "name"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "name": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "additionalProperties": false
                },
                {
                  "type": "null"
                }
              ]
            },
            "county": {
              "anyOf": [
                {
                  "type": "object",
                  "required": [
                    "code",
                    "name"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "name": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "additionalProperties": false
                },
                {
                  "type": "null"
                }
              ]
            },
            "incode": {
              "type": "string"
            },
            "parish": {
              "anyOf": [
                {
                  "type": "object",
                  "required": [
                    "code",
                    "name"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "name": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "additionalProperties": false
                },
                {
                  "type": "null"
                }
              ]
            },
            "region": {
              "anyOf": [
                {
                  "type": "object",
                  "required": [
                    "code",
                    "name"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "name": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "additionalProperties": false
                },
                {
                  "type": "null"
                }
              ]
            },
            "sector": {
              "type": "string"
            },
            "status": {
              "enum": [
                "live",
                "terminated"
              ]
            },
            "country": {
              "anyOf": [
                {
                  "type": "object",
                  "required": [
                    "code",
                    "name"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "name": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "additionalProperties": false
                },
                {
                  "type": "null"
                }
              ]
            },
            "outcode": {
              "type": "string"
            },
            "sub_icb": {
              "anyOf": [
                {
                  "type": "object",
                  "required": [
                    "code",
                    "name"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "name": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "additionalProperties": false
                },
                {
                  "type": "null"
                }
              ]
            },
            "district": {
              "type": "string"
            },
            "location": {
              "type": "object",
              "required": [
                "latitude",
                "longitude",
                "easting",
                "northing",
                "positional_quality",
                "positional_quality_label"
              ],
              "properties": {
                "easting": {
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "latitude": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "northing": {
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "longitude": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "positional_quality": {
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "positional_quality_label": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "additionalProperties": false
            },
            "postcode": {
              "type": "string",
              "description": "Canonical form, e.g. \"SW1A 1AA\"."
            },
            "user_type": {
              "enum": [
                "small",
                "large"
              ]
            },
            "introduced": {
              "type": [
                "string",
                "null"
              ],
              "description": "YYYY-MM"
            },
            "nhs_region": {
              "anyOf": [
                {
                  "type": "object",
                  "required": [
                    "code",
                    "name"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "name": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "additionalProperties": false
                },
                {
                  "type": "null"
                }
              ]
            },
            "terminated": {
              "type": [
                "string",
                "null"
              ],
              "description": "YYYY-MM"
            },
            "deprivation": {
              "anyOf": [
                {
                  "type": "object",
                  "required": [
                    "index",
                    "rank",
                    "of",
                    "decile"
                  ],
                  "properties": {
                    "of": {
                      "type": "integer"
                    },
                    "rank": {
                      "type": "integer"
                    },
                    "index": {
                      "type": "string"
                    },
                    "decile": {
                      "type": "integer"
                    }
                  },
                  "additionalProperties": false
                },
                {
                  "type": "null"
                }
              ]
            },
            "output_area": {
              "type": [
                "string",
                "null"
              ]
            },
            "replaced_by": {
              "type": [
                "string",
                "null"
              ],
              "description": "For a terminated postcode: the nearest live postcode."
            },
            "rural_urban": {
              "anyOf": [
                {
                  "type": "object",
                  "required": [
                    "code",
                    "name",
                    "urban"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "name": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "urban": {
                      "type": [
                        "boolean",
                        "null"
                      ]
                    }
                  },
                  "additionalProperties": false
                },
                {
                  "type": "null"
                }
              ]
            },
            "constituency": {
              "anyOf": [
                {
                  "type": "object",
                  "required": [
                    "code",
                    "name"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "name": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "additionalProperties": false
                },
                {
                  "type": "null"
                }
              ]
            },
            "police_force": {
              "anyOf": [
                {
                  "type": "object",
                  "required": [
                    "code",
                    "name"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "name": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "additionalProperties": false
                },
                {
                  "type": "null"
                }
              ]
            },
            "built_up_area": {
              "anyOf": [
                {
                  "type": "object",
                  "required": [
                    "code",
                    "name"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "name": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "additionalProperties": false
                },
                {
                  "type": "null"
                }
              ]
            },
            "national_park": {
              "anyOf": [
                {
                  "type": "object",
                  "required": [
                    "code",
                    "name"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "name": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "additionalProperties": false
                },
                {
                  "type": "null"
                }
              ]
            },
            "local_authority": {
              "anyOf": [
                {
                  "type": "object",
                  "required": [
                    "code",
                    "name"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "name": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "additionalProperties": false
                },
                {
                  "type": "null"
                }
              ]
            },
            "area_classification": {
              "type": [
                "string",
                "null"
              ]
            },
            "travel_to_work_area": {
              "anyOf": [
                {
                  "type": "object",
                  "required": [
                    "code",
                    "name"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "name": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "additionalProperties": false
                },
                {
                  "type": "null"
                }
              ]
            },
            "county_electoral_division": {
              "anyOf": [
                {
                  "type": "object",
                  "required": [
                    "code",
                    "name"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "name": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "additionalProperties": false
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "additionalProperties": false
        },
        {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "query",
              "result"
            ],
            "properties": {
              "error": {
                "enum": [
                  "invalid_postcode",
                  "not_covered",
                  "postcode_not_found"
                ]
              },
              "query": {
                "type": "string"
              },
              "result": {
                "anyOf": [
                  {
                    "type": "object",
                    "required": [
                      "postcode",
                      "status"
                    ],
                    "properties": {
                      "icb": {
                        "anyOf": [
                          {
                            "type": "object",
                            "required": [
                              "code",
                              "name"
                            ],
                            "properties": {
                              "code": {
                                "type": "string"
                              },
                              "name": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              }
                            },
                            "additionalProperties": false
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "area": {
                        "type": "string"
                      },
                      "lsoa": {
                        "anyOf": [
                          {
                            "type": "object",
                            "required": [
                              "code",
                              "name"
                            ],
                            "properties": {
                              "code": {
                                "type": "string"
                              },
                              "name": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              }
                            },
                            "additionalProperties": false
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "msoa": {
                        "anyOf": [
                          {
                            "type": "object",
                            "required": [
                              "code",
                              "name"
                            ],
                            "properties": {
                              "code": {
                                "type": "string"
                              },
                              "name": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              }
                            },
                            "additionalProperties": false
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "ward": {
                        "anyOf": [
                          {
                            "type": "object",
                            "required": [
                              "code",
                              "name"
                            ],
                            "properties": {
                              "code": {
                                "type": "string"
                              },
                              "name": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              }
                            },
                            "additionalProperties": false
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "county": {
                        "anyOf": [
                          {
                            "type": "object",
                            "required": [
                              "code",
                              "name"
                            ],
                            "properties": {
                              "code": {
                                "type": "string"
                              },
                              "name": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              }
                            },
                            "additionalProperties": false
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "incode": {
                        "type": "string"
                      },
                      "parish": {
                        "anyOf": [
                          {
                            "type": "object",
                            "required": [
                              "code",
                              "name"
                            ],
                            "properties": {
                              "code": {
                                "type": "string"
                              },
                              "name": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              }
                            },
                            "additionalProperties": false
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "region": {
                        "anyOf": [
                          {
                            "type": "object",
                            "required": [
                              "code",
                              "name"
                            ],
                            "properties": {
                              "code": {
                                "type": "string"
                              },
                              "name": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              }
                            },
                            "additionalProperties": false
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "sector": {
                        "type": "string"
                      },
                      "status": {
                        "enum": [
                          "live",
                          "terminated"
                        ]
                      },
                      "country": {
                        "anyOf": [
                          {
                            "type": "object",
                            "required": [
                              "code",
                              "name"
                            ],
                            "properties": {
                              "code": {
                                "type": "string"
                              },
                              "name": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              }
                            },
                            "additionalProperties": false
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "outcode": {
                        "type": "string"
                      },
                      "sub_icb": {
                        "anyOf": [
                          {
                            "type": "object",
                            "required": [
                              "code",
                              "name"
                            ],
                            "properties": {
                              "code": {
                                "type": "string"
                              },
                              "name": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              }
                            },
                            "additionalProperties": false
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "district": {
                        "type": "string"
                      },
                      "location": {
                        "type": "object",
                        "required": [
                          "latitude",
                          "longitude",
                          "easting",
                          "northing",
                          "positional_quality",
                          "positional_quality_label"
                        ],
                        "properties": {
                          "easting": {
                            "type": [
                              "integer",
                              "null"
                            ]
                          },
                          "latitude": {
                            "type": [
                              "number",
                              "null"
                            ]
                          },
                          "northing": {
                            "type": [
                              "integer",
                              "null"
                            ]
                          },
                          "longitude": {
                            "type": [
                              "number",
                              "null"
                            ]
                          },
                          "positional_quality": {
                            "type": [
                              "integer",
                              "null"
                            ]
                          },
                          "positional_quality_label": {
                            "type": [
                              "string",
                              "null"
                            ]
                          }
                        },
                        "additionalProperties": false
                      },
                      "postcode": {
                        "type": "string",
                        "description": "Canonical form, e.g. \"SW1A 1AA\"."
                      },
                      "user_type": {
                        "enum": [
                          "small",
                          "large"
                        ]
                      },
                      "introduced": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "description": "YYYY-MM"
                      },
                      "nhs_region": {
                        "anyOf": [
                          {
                            "type": "object",
                            "required": [
                              "code",
                              "name"
                            ],
                            "properties": {
                              "code": {
                                "type": "string"
                              },
                              "name": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              }
                            },
                            "additionalProperties": false
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "terminated": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "description": "YYYY-MM"
                      },
                      "deprivation": {
                        "anyOf": [
                          {
                            "type": "object",
                            "required": [
                              "index",
                              "rank",
                              "of",
                              "decile"
                            ],
                            "properties": {
                              "of": {
                                "type": "integer"
                              },
                              "rank": {
                                "type": "integer"
                              },
                              "index": {
                                "type": "string"
                              },
                              "decile": {
                                "type": "integer"
                              }
                            },
                            "additionalProperties": false
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "output_area": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "replaced_by": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "description": "For a terminated postcode: the nearest live postcode."
                      },
                      "rural_urban": {
                        "anyOf": [
                          {
                            "type": "object",
                            "required": [
                              "code",
                              "name",
                              "urban"
                            ],
                            "properties": {
                              "code": {
                                "type": "string"
                              },
                              "name": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "urban": {
                                "type": [
                                  "boolean",
                                  "null"
                                ]
                              }
                            },
                            "additionalProperties": false
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "constituency": {
                        "anyOf": [
                          {
                            "type": "object",
                            "required": [
                              "code",
                              "name"
                            ],
                            "properties": {
                              "code": {
                                "type": "string"
                              },
                              "name": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              }
                            },
                            "additionalProperties": false
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "police_force": {
                        "anyOf": [
                          {
                            "type": "object",
                            "required": [
                              "code",
                              "name"
                            ],
                            "properties": {
                              "code": {
                                "type": "string"
                              },
                              "name": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              }
                            },
                            "additionalProperties": false
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "built_up_area": {
                        "anyOf": [
                          {
                            "type": "object",
                            "required": [
                              "code",
                              "name"
                            ],
                            "properties": {
                              "code": {
                                "type": "string"
                              },
                              "name": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              }
                            },
                            "additionalProperties": false
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "national_park": {
                        "anyOf": [
                          {
                            "type": "object",
                            "required": [
                              "code",
                              "name"
                            ],
                            "properties": {
                              "code": {
                                "type": "string"
                              },
                              "name": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              }
                            },
                            "additionalProperties": false
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "local_authority": {
                        "anyOf": [
                          {
                            "type": "object",
                            "required": [
                              "code",
                              "name"
                            ],
                            "properties": {
                              "code": {
                                "type": "string"
                              },
                              "name": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              }
                            },
                            "additionalProperties": false
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "area_classification": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "travel_to_work_area": {
                        "anyOf": [
                          {
                            "type": "object",
                            "required": [
                              "code",
                              "name"
                            ],
                            "properties": {
                              "code": {
                                "type": "string"
                              },
                              "name": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              }
                            },
                            "additionalProperties": false
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "county_electoral_division": {
                        "anyOf": [
                          {
                            "type": "object",
                            "required": [
                              "code",
                              "name"
                            ],
                            "properties": {
                              "code": {
                                "type": "string"
                              },
                              "name": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              }
                            },
                            "additionalProperties": false
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "additionalProperties": false
          }
        }
      ]
    },
    "citation": {
      "type": "string"
    }
  },
  "additionalProperties": false
}
lookup_postcode annotations
{
  "title": "Look up UK postcodes",
  "readOnlyHint": true,
  "openWorldHint": false,
  "idempotentHint": true,
  "destructiveHint": false
}
validate_postcode — Validate a UK postcode
Advertised by the server during the last successful anonymous check.
Advertised read-only

Checks a UK postcode: is the format right, is it in the current official data, and is it still in use. Northern Ireland (BT) postcodes are checked by format only.

validate_postcode input schema
{
  "type": "object",
  "required": [
    "postcode"
  ],
  "properties": {
    "postcode": {
      "type": "string",
      "description": "The postcode to check."
    }
  },
  "additionalProperties": false
}
validate_postcode output schema
{
  "type": "object",
  "required": [
    "result",
    "page",
    "citation"
  ],
  "properties": {
    "page": {
      "type": "string",
      "format": "uri"
    },
    "result": {
      "type": "object",
      "required": [
        "input",
        "postcode",
        "format_valid",
        "known",
        "status",
        "valid",
        "coverage",
        "country",
        "replaced_by"
      ],
      "properties": {
        "input": {
          "type": "string"
        },
        "known": {
          "type": [
            "boolean",
            "null"
          ]
        },
        "valid": {
          "type": [
            "boolean",
            "null"
          ]
        },
        "status": {
          "enum": [
            "live",
            "terminated",
            null
          ]
        },
        "country": {
          "anyOf": [
            {
              "type": "object",
              "required": [
                "code",
                "name"
              ],
              "properties": {
                "code": {
                  "type": "string"
                },
                "name": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ]
        },
        "coverage": {
          "enum": [
            "covered",
            "not_covered"
          ]
        },
        "postcode": {
          "type": [
            "string",
            "null"
          ]
        },
        "replaced_by": {
          "type": [
            "string",
            "null"
          ]
        },
        "format_valid": {
          "type": "boolean"
        }
      },
      "additionalProperties": false
    },
    "citation": {
      "type": "string"
    }
  },
  "additionalProperties": false
}
validate_postcode annotations
{
  "title": "Validate a UK postcode",
  "readOnlyHint": true,
  "openWorldHint": false,
  "idempotentHint": true,
  "destructiveHint": false
}
nearest_postcodes — Postcodes near a place or point
Advertised by the server during the last successful anonymous check.
Advertised read-only

Live UK postcodes nearest a postcode or a latitude/longitude, closest first, with distances in metres. Use it to find the postcode for coordinates (reverse geocoding) or what is near an address.

nearest_postcodes input schema
{
  "type": "object",
  "required": [],
  "properties": {
    "limit": {
      "type": "integer",
      "maximum": 20,
      "description": "Default 5."
    },
    "latitude": {
      "type": "number"
    },
    "postcode": {
      "type": "string"
    },
    "radius_m": {
      "type": "integer",
      "maximum": 20000,
      "description": "Default 500; up to 20,000 for rural and island points (then up to 10 results)."
    },
    "longitude": {
      "type": "number"
    }
  },
  "additionalProperties": false
}
nearest_postcodes output schema
{
  "type": "object",
  "required": [
    "result",
    "page",
    "citation"
  ],
  "properties": {
    "page": {
      "type": "string",
      "format": "uri"
    },
    "result": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "postcode",
          "distance_m",
          "latitude",
          "longitude"
        ],
        "properties": {
          "latitude": {
            "type": "number"
          },
          "postcode": {
            "type": "string"
          },
          "longitude": {
            "type": "number"
          },
          "distance_m": {
            "type": "integer"
          }
        },
        "additionalProperties": false
      }
    },
    "citation": {
      "type": "string"
    }
  },
  "additionalProperties": false
}
nearest_postcodes annotations
{
  "title": "Postcodes near a place or point",
  "readOnlyHint": true,
  "openWorldHint": false,
  "idempotentHint": true,
  "destructiveHint": false
}
postcode_distance — Distance between two postcodes
Advertised by the server during the last successful anonymous check.
Advertised read-only

Straight-line distance between two UK postcodes in kilometres and miles, with the compass direction.

postcode_distance input schema
{
  "type": "object",
  "required": [
    "from",
    "to"
  ],
  "properties": {
    "to": {
      "type": "string"
    },
    "from": {
      "type": "string"
    }
  },
  "additionalProperties": false
}
postcode_distance output schema
{
  "type": "object",
  "required": [
    "result",
    "page",
    "citation"
  ],
  "properties": {
    "page": {
      "type": "string",
      "format": "uri"
    },
    "result": {
      "type": "object",
      "required": [
        "from",
        "to",
        "km",
        "miles",
        "bearing_deg",
        "direction",
        "method"
      ],
      "properties": {
        "km": {
          "type": "number"
        },
        "to": {
          "type": "object",
          "required": [
            "postcode",
            "latitude",
            "longitude",
            "easting",
            "northing",
            "positional_quality",
            "positional_quality_label"
          ],
          "properties": {
            "easting": {
              "type": "integer"
            },
            "latitude": {
              "type": "number"
            },
            "northing": {
              "type": "integer"
            },
            "postcode": {
              "type": "string"
            },
            "longitude": {
              "type": "number"
            },
            "positional_quality": {
              "type": "integer"
            },
            "positional_quality_label": {
              "type": "string"
            }
          },
          "additionalProperties": false
        },
        "from": {
          "type": "object",
          "required": [
            "postcode",
            "latitude",
            "longitude",
            "easting",
            "northing",
            "positional_quality",
            "positional_quality_label"
          ],
          "properties": {
            "easting": {
              "type": "integer"
            },
            "latitude": {
              "type": "number"
            },
            "northing": {
              "type": "integer"
            },
            "postcode": {
              "type": "string"
            },
            "longitude": {
              "type": "number"
            },
            "positional_quality": {
              "type": "integer"
            },
            "positional_quality_label": {
              "type": "string"
            }
          },
          "additionalProperties": false
        },
        "miles": {
          "type": "number"
        },
        "method": {
          "type": "string"
        },
        "direction": {
          "type": "string"
        },
        "bearing_deg": {
          "type": "integer"
        }
      },
      "additionalProperties": false
    },
    "citation": {
      "type": "string"
    }
  },
  "additionalProperties": false
}
postcode_distance annotations
{
  "title": "Distance between two postcodes",
  "readOnlyHint": true,
  "openWorldHint": false,
  "idempotentHint": true,
  "destructiveHint": false
}
area_info — A postcode area, district or sector
Advertised by the server during the last successful anonymous check.
Advertised read-only

Facts about a postcode area (e.g. "SW"), district ("SW1A") or sector ("SW1A 1"): how many postcodes, the councils, wards and constituencies it covers, its centre and places in it.

area_info input schema
{
  "type": "object",
  "required": [
    "code"
  ],
  "properties": {
    "code": {
      "type": "string",
      "description": "An area, district or sector."
    }
  },
  "additionalProperties": false
}
area_info output schema
{
  "type": "object",
  "required": [
    "result",
    "page",
    "citation"
  ],
  "properties": {
    "page": {
      "type": "string",
      "format": "uri"
    },
    "result": {
      "oneOf": [
        {
          "type": "object",
          "required": [
            "area",
            "name",
            "live",
            "terminated",
            "districts"
          ],
          "properties": {
            "area": {
              "type": "string"
            },
            "live": {
              "type": "integer"
            },
            "name": {
              "type": [
                "string",
                "null"
              ]
            },
            "districts": {
              "type": "array",
              "items": {
                "type": "object",
                "required": [
                  "district",
                  "live",
                  "terminated",
                  "local_authority"
                ],
                "properties": {
                  "live": {
                    "type": "integer"
                  },
                  "district": {
                    "type": "string"
                  },
                  "terminated": {
                    "type": "integer"
                  },
                  "local_authority": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "additionalProperties": false
              }
            },
            "terminated": {
              "type": "integer"
            }
          },
          "additionalProperties": false
        },
        {
          "type": "object",
          "required": [
            "district",
            "area",
            "area_name",
            "live",
            "terminated",
            "large_user",
            "sectors",
            "centre",
            "country",
            "regions",
            "counties",
            "local_authorities",
            "wards",
            "constituencies",
            "police_forces",
            "icbs",
            "national_parks",
            "built_up_areas",
            "parishes",
            "urban_share",
            "deprivation",
            "places",
            "neighbours",
            "newest",
            "oldest_introduced"
          ],
          "properties": {
            "area": {
              "type": "string"
            },
            "icbs": {
              "type": "array",
              "items": {
                "type": "object",
                "required": [
                  "code",
                  "name",
                  "postcodes",
                  "share"
                ],
                "properties": {
                  "code": {
                    "type": "string"
                  },
                  "name": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "share": {
                    "type": "integer"
                  },
                  "postcodes": {
                    "type": "integer"
                  }
                },
                "additionalProperties": false
              }
            },
            "live": {
              "type": "integer"
            },
            "wards": {
              "type": "array",
              "items": {
                "type": "object",
                "required": [
                  "code",
                  "name",
                  "postcodes",
                  "share"
                ],
                "properties": {
                  "code": {
                    "type": "string"
                  },
                  "name": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "share": {
                    "type": "integer"
                  },
                  "postcodes": {
                    "type": "integer"
                  }
                },
                "additionalProperties": false
              }
            },
            "centre": {
              "anyOf": [
                {
                  "type": "object",
                  "required": [
                    "latitude",
                    "longitude"
                  ],
                  "properties": {
                    "latitude": {
                      "type": "number"
                    },
                    "longitude": {
                      "type": "number"
                    }
                  },
                  "additionalProperties": false
                },
                {
                  "type": "null"
                }
              ]
            },
            "newest": {
              "type": "array",
              "items": {
                "type": "object",
                "required": [
                  "postcode",
                  "introduced"
                ],
                "properties": {
                  "postcode": {
                    "type": "string"
                  },
                  "introduced": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "additionalProperties": false
              }
            },
            "places": {
              "type": "array",
              "items": {
                "type": "object",
                "required": [
                  "name",
                  "type"
                ],
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "type": {
                    "type": "string"
                  }
                },
                "additionalProperties": false
              }
            },
            "country": {
              "anyOf": [
                {
                  "type": "object",
                  "required": [
                    "code",
                    "name"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "name": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "additionalProperties": false
                },
                {
                  "type": "null"
                }
              ]
            },
            "regions": {
              "type": "array",
              "items": {
                "type": "object",
                "required": [
                  "code",
                  "name",
                  "postcodes",
                  "share"
                ],
                "properties": {
                  "code": {
                    "type": "string"
                  },
                  "name": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "share": {
                    "type": "integer"
                  },
                  "postcodes": {
                    "type": "integer"
                  }
                },
                "additionalProperties": false
              }
            },
            "sectors": {
              "type": "array",
              "items": {
                "type": "object",
                "required": [
                  "sector",
                  "live",
                  "terminated"
                ],
                "properties": {
                  "live": {
                    "type": "integer"
                  },
                  "sector": {
                    "type": "string"
                  },
                  "terminated": {
                    "type": "integer"
                  }
                },
                "additionalProperties": false
              }
            },
            "counties": {
              "type": "array",
              "items": {
                "type": "object",
                "required": [
                  "code",
                  "name",
                  "postcodes",
                  "share"
                ],
                "properties": {
                  "code": {
                    "type": "string"
                  },
                  "name": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "share": {
                    "type": "integer"
                  },
                  "postcodes": {
                    "type": "integer"
                  }
                },
                "additionalProperties": false
              }
            },
            "district": {
              "type": "string"
            },
            "parishes": {
              "type": "array",
              "items": {
                "type": "object",
                "required": [
                  "code",
                  "name",
                  "postcodes",
                  "share"
                ],
                "properties": {
                  "code": {
                    "type": "string"
                  },
                  "name": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "share": {
                    "type": "integer"
                  },
                  "postcodes": {
                    "type": "integer"
                  }
                },
                "additionalProperties": false
              }
            },
            "area_name": {
              "type": [
                "string",
                "null"
              ]
            },
            "large_user": {
              "type": "integer"
            },
            "neighbours": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "terminated": {
              "type": "integer"
            },
            "deprivation": {
              "anyOf": [
                {
                  "type": "object",
                  "required": [
                    "index",
                    "deciles"
                  ],
                  "properties": {
                    "index": {
                      "type": "string"
                    },
                    "deciles": {
                      "type": "array",
                      "items": {
                        "type": "integer"
                      }
                    }
                  },
                  "additionalProperties": false
                },
                {
                  "type": "null"
                }
              ]
            },
            "urban_share": {
              "type": [
                "integer",
                "null"
              ]
            },
            "police_forces": {
              "type": "array",
              "items": {
                "type": "object",
                "required": [
                  "code",
                  "name",
                  "postcodes",
                  "share"
                ],
                "properties": {
                  "code": {
                    "type": "string"
                  },
                  "name": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "share": {
                    "type": "integer"
                  },
                  "postcodes": {
                    "type": "integer"
                  }
                },
                "additionalProperties": false
              }
            },
            "built_up_areas": {
              "type": "array",
              "items": {
                "type": "object",
                "required": [
                  "code",
                  "name",
                  "postcodes",
                  "share"
                ],
                "properties": {
                  "code": {
                    "type": "string"
                  },
                  "name": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "share": {
                    "type": "integer"
                  },
                  "postcodes": {
                    "type": "integer"
                  }
                },
                "additionalProperties": false
              }
            },
            "constituencies": {
              "type": "array",
              "items": {
                "type": "object",
                "required": [
                  "code",
                  "name",
                  "postcodes",
                  "share"
                ],
                "properties": {
                  "code": {
                    "type": "string"
                  },
                  "name": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "share": {
                    "type": "integer"
                  },
                  "postcodes": {
                    "type": "integer"
                  }
                },
                "additionalProperties": false
              }
            },
            "national_parks": {
              "type": "array",
              "items": {
                "type": "object",
                "required": [
                  "code",
                  "name",
                  "postcodes",
                  "share"
                ],
                "properties": {
                  "code": {
                    "type": "string"
                  },
                  "name": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "share": {
                    "type": "integer"
                  },
                  "postcodes": {
                    "type": "integer"
                  }
                },
                "additionalProperties": false
              }
            },
            "local_authorities": {
              "type": "array",
              "items": {
                "type": "object",
                "required": [
                  "code",
                  "name",
                  "postcodes",
                  "share"
                ],
                "properties": {
                  "code": {
                    "type": "string"
                  },
                  "name": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "share": {
                    "type": "integer"
                  },
                  "postcodes": {
                    "type": "integer"
                  }
                },
                "additionalProperties": false
              }
            },
            "oldest_introduced": {
              "type": [
                "string",
                "null"
              ]
            }
          },
          "additionalProperties": false
        },
        {
          "type": "object",
          "required": [
            "sector",
            "district",
            "live",
            "centre",
            "local_authorities",
            "wards",
            "constituencies",
            "parishes",
            "postcodes"
          ],
          "properties": {
            "live": {
              "type": "integer"
            },
            "wards": {
              "type": "array",
              "items": {
                "type": "object",
                "required": [
                  "code",
                  "name",
                  "postcodes"
                ],
                "properties": {
                  "code": {
                    "type": "string"
                  },
                  "name": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "postcodes": {
                    "type": "integer"
                  }
                },
                "additionalProperties": false
              }
            },
            "centre": {
              "anyOf": [
                {
                  "type": "object",
                  "required": [
                    "latitude",
                    "longitude"
                  ],
                  "properties": {
                    "latitude": {
                      "type": "number"
                    },
                    "longitude": {
                      "type": "number"
                    }
                  },
                  "additionalProperties": false
                },
                {
                  "type": "null"
                }
              ]
            },
            "sector": {
              "type": "string"
            },
            "district": {
              "type": "string"
            },
            "parishes": {
              "type": "array",
              "items": {
                "type": "object",
                "required": [
                  "code",
                  "name",
                  "postcodes"
                ],
                "properties": {
                  "code": {
                    "type": "string"
                  },
                  "name": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "postcodes": {
                    "type": "integer"
                  }
                },
                "additionalProperties": false
              }
            },
            "postcodes": {
              "type": "array",
              "items": {
                "type": "object",
                "required": [
                  "postcode",
                  "latitude",
                  "longitude",
                  "user_type"
                ],
                "properties": {
                  "latitude": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "postcode": {
                    "type": "string"
                  },
                  "longitude": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "user_type": {
                    "enum": [
                      "small",
                      "large"
                    ]
                  }
                },
                "additionalProperties": false
              }
            },
            "constituencies": {
              "type": "array",
              "items": {
                "type": "object",
                "required": [
                  "code",
                  "name",
                  "postcodes"
                ],
                "properties": {
                  "code": {
                    "type": "string"
                  },
                  "name": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "postcodes": {
                    "type": "integer"
                  }
                },
                "additionalProperties": false
              }
            },
            "local_authorities": {
              "type": "array",
              "items": {
                "type": "object",
                "required": [
                  "code",
                  "name",
                  "postcodes"
                ],
                "properties": {
                  "code": {
                    "type": "string"
                  },
                  "name": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "postcodes": {
                    "type": "integer"
                  }
                },
                "additionalProperties": false
              }
            }
          },
          "additionalProperties": false
        }
      ]
    },
    "citation": {
      "type": "string"
    }
  },
  "additionalProperties": false
}
area_info annotations
{
  "title": "A postcode area, district or sector",
  "readOnlyHint": true,
  "openWorldHint": false,
  "idempotentHint": true,
  "destructiveHint": false
}
find_place — Find the postcode district of a place
Advertised by the server during the last successful anonymous check.
Advertised read-only

Finds UK cities, towns, villages and neighbourhoods by name and returns each one's postcode district, council and coordinates (OS Open Names).

find_place input schema
{
  "type": "object",
  "required": [
    "name"
  ],
  "properties": {
    "name": {
      "type": "string"
    },
    "limit": {
      "type": "integer",
      "maximum": 20
    }
  },
  "additionalProperties": false
}
find_place output schema
{
  "type": "object",
  "required": [
    "result",
    "page",
    "citation"
  ],
  "properties": {
    "page": {
      "type": "string",
      "format": "uri"
    },
    "result": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "name",
          "alternative_name",
          "type",
          "district",
          "latitude",
          "longitude",
          "local_authority",
          "county"
        ],
        "properties": {
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "county": {
            "type": [
              "string",
              "null"
            ]
          },
          "district": {
            "type": "string"
          },
          "latitude": {
            "type": "number"
          },
          "longitude": {
            "type": "number"
          },
          "local_authority": {
            "type": [
              "string",
              "null"
            ]
          },
          "alternative_name": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "additionalProperties": false
      }
    },
    "citation": {
      "type": "string"
    }
  },
  "additionalProperties": false
}
find_place annotations
{
  "title": "Find the postcode district of a place",
  "readOnlyHint": true,
  "openWorldHint": false,
  "idempotentHint": true,
  "destructiveHint": false
}
search — Search ClearPostcode
Advertised by the server during the last successful anonymous check.
Advertised read-only

Search UK postcodes, districts and places. Returns ids to pass to fetch.

search input schema
{
  "type": "object",
  "required": [
    "query"
  ],
  "properties": {
    "query": {
      "type": "string"
    }
  },
  "additionalProperties": false
}
search annotations
{
  "title": "Search ClearPostcode",
  "readOnlyHint": true,
  "openWorldHint": false,
  "idempotentHint": true,
  "destructiveHint": false
}
fetch — Fetch a postcode or district
Advertised by the server during the last successful anonymous check.
Advertised read-only

Fetch the full record for an id returned by search.

fetch input schema
{
  "type": "object",
  "required": [
    "id"
  ],
  "properties": {
    "id": {
      "type": "string"
    }
  },
  "additionalProperties": false
}
fetch annotations
{
  "title": "Fetch a postcode or district",
  "readOnlyHint": true,
  "openWorldHint": false,
  "idempotentHint": true,
  "destructiveHint": false
}

Prompts

Not advertised

No prompt definitions available.

Resources

Not advertised

No resource definitions available.

90-day uptime

A lightweight connection check about every six hours, sampled on hosts with many listings. It shows the server answered, not that its tools work.

Too few checks for a percentage yet (9 of 9 answered).

  1. 2026-11-28: 2 of 2 checks answered
  2. 2026-11-29: 4 of 4 checks answered
  3. 2026-11-30: 3 of 3 checks answered

30-day availability

Aggregated from read-only remote checks; this is not a tool-execution or security guarantee.

Successful checks
1 of 1 (100%)
Average latency
303 ms
95th percentile latency
303 ms

Maintenance history

Public check and source-refresh events. Editorial and ownership records remain private.

  • · probe · passed · 303 ms · metadata changed · 8 tool(s)

Connect from your client

Each snippet registers the same endpoint; pick the client you use.

This server is operated by the named third party. Listing and endpoint checks are not an endorsement or a security audit. Review the operator's permissions, terms, and data handling before connecting. How listings are checked and corrected.

Claude Code

Run this once in a terminal. It registers the remote server. Use --scope project to write .mcp.json for the repo.
Claude Code configuration
claude mcp add --transport http clearpostcode-mcp https://api.clearpostcode.co.uk/mcp

Codex

Run this once. Codex stores MCP servers in ~/.codex/config.toml (or .codex/config.toml in a trusted project).
Codex configuration
codex mcp add clearpostcode-mcp --url https://api.clearpostcode.co.uk/mcp

Cursor

Merge this server into .cursor/mcp.json in your project, then enable clearpostcode-mcp in your MCP settings.
Cursor configuration
{
  "mcpServers": {
    "clearpostcode-mcp": {
      "url": "https://api.clearpostcode.co.uk/mcp"
    }
  }
}

Cline

Merge this into cline_mcp_settings.json (Cline → MCP Servers → Configure).
Cline configuration
{
  "mcpServers": {
    "clearpostcode-mcp": {
      "type": "streamableHttp",
      "url": "https://api.clearpostcode.co.uk/mcp",
      "disabled": false
    }
  }
}

VS Code

Merge this server into .vscode/mcp.json. Use MCP: List Servers to start clearpostcode-mcp and inspect its tools.
VS Code configuration
{
  "servers": {
    "clearpostcode-mcp": {
      "type": "http",
      "url": "https://api.clearpostcode.co.uk/mcp"
    }
  }
}

Gemini CLI

Run this once. It writes .gemini/settings.json in the current project; pass --scope user for ~/.gemini/settings.json.
Gemini CLI configuration
gemini mcp add --transport http clearpostcode-mcp https://api.clearpostcode.co.uk/mcp

Claude Desktop

Open Claude Settings > Connectors > Add custom connector, enter this server URL and enable it for the conversation. This is a manual remote-connector handoff, not a desktop JSON configuration.
Claude Desktop configuration
https://api.clearpostcode.co.uk/mcp

Windsurf

Merge this into ~/.codeium/windsurf/mcp_config.json, then refresh MCP in Cascade. Windsurf remote servers use serverUrl, not url.
Windsurf configuration
{
  "mcpServers": {
    "clearpostcode-mcp": {
      "serverUrl": "https://api.clearpostcode.co.uk/mcp"
    }
  }
}

Let your agent find its tools

Find servers like ClearPostcode MCP from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.

Do you run ClearPostcode MCP?

Prove ownership with a DNS record, a well-known file, or your Official MCP Registry entry, and your edits publish immediately. Proofs are re-checked weekly; admins can still hide or remove a listing.

Claim this listing