ClearPostcode

Live UK postcode data for AI: look up, validate, find nearest, council, ward, constituency. Free.

我该使用它吗

质量与安全性

B
描述质量
80%
模式完整度
86%
命名质量
90%
投毒风险
100%
权限匹配度
90%
协议合规性
100%

发现(3)

  • LOWTool 'postcode_distance' description lacks action verb在 postcode_distance 中
  • LOWTool 'area_info' description lacks action verb在 area_info 中
  • LOWTool 'fetch' suggests web access but openWorldHint=false在 fetch 中

基于对工具定义和协议合规性的自动分析。

上下文开销

~1,103token 数(工具定义)
~671 B典型响应大小
对注意力有中等影响(占 128k 上下文窗口的 0.86%)

这是每次将服务器的工具加载到模型上下文窗口时所消耗的大致 token 数。数值越高,可用于其他任务的注意力就越少。

安装

一键安装

将以下内容添加到你的 `claude_desktop_config.json` 文件中:

{
  "mcpServers": {
    "postcodes": {
      "url": "https://clearpostcode.co.uk/mcp"
    }
  }
}

远程端点

https://clearpostcode.co.uk/mcpstreamable-http

它能做什么

工具清单

工具(8)

🟢 只读🟡 写入🔴 删除⚪ 未知
🟢lookup_postcode(postcode, postcodes, fields)

Everything about one UK postcode, or up to 50 at once: 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.

输入模式

{
  "type": "object",
  "properties": {
    "postcode": {
      "type": "string",
      "description": "A UK postcode, e.g. \"SW1A 1AA\" (any case, space optional)."
    },
    "postcodes": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "maxItems": 50,
      "description": "Up to 50 postcodes instead of one."
    },
    "fields": {
      "type": "string",
      "description": "Optional comma-separated fields to keep, e.g. \"location,local_authority\"."
    }
  },
  "required": [],
  "additionalProperties": false
}

输出模式

{
  "type": "object",
  "additionalProperties": true
}
🟢validate_postcode(postcode)

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.

输入模式

{
  "type": "object",
  "properties": {
    "postcode": {
      "type": "string",
      "description": "The postcode to check."
    }
  },
  "required": [
    "postcode"
  ],
  "additionalProperties": false
}

输出模式

{
  "type": "object",
  "additionalProperties": true
}
🟢nearest_postcodes(postcode, latitude, longitude, radius_m, limit)

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.

输入模式

{
  "type": "object",
  "properties": {
    "postcode": {
      "type": "string"
    },
    "latitude": {
      "type": "number"
    },
    "longitude": {
      "type": "number"
    },
    "radius_m": {
      "type": "integer",
      "maximum": 2000,
      "description": "Default 500."
    },
    "limit": {
      "type": "integer",
      "maximum": 20,
      "description": "Default 5."
    }
  },
  "required": [],
  "additionalProperties": false
}

输出模式

{
  "type": "object",
  "additionalProperties": true
}
🟢postcode_distance(from, to)

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

输入模式

{
  "type": "object",
  "properties": {
    "from": {
      "type": "string"
    },
    "to": {
      "type": "string"
    }
  },
  "required": [
    "from",
    "to"
  ],
  "additionalProperties": false
}

输出模式

{
  "type": "object",
  "additionalProperties": true
}
🟢area_info(code)

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.

输入模式

{
  "type": "object",
  "properties": {
    "code": {
      "type": "string",
      "description": "An area, district or sector."
    }
  },
  "required": [
    "code"
  ],
  "additionalProperties": false
}

输出模式

{
  "type": "object",
  "additionalProperties": true
}
🟢find_place(name, limit)

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

输入模式

{
  "type": "object",
  "properties": {
    "name": {
      "type": "string"
    },
    "limit": {
      "type": "integer",
      "maximum": 20
    }
  },
  "required": [
    "name"
  ],
  "additionalProperties": false
}

输出模式

{
  "type": "object",
  "additionalProperties": true
}
🟢search(query)

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

输入模式

{
  "type": "object",
  "properties": {
    "query": {
      "type": "string"
    }
  },
  "required": [
    "query"
  ],
  "additionalProperties": false
}
🟢fetch(id)

Fetch the full record for an id returned by search.

输入模式

{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    }
  },
  "required": [
    "id"
  ],
  "additionalProperties": false
}

社区

评价此服务器

证据

最近观测

已验证未记录版本8 个工具