Connect UK planning data to Claude
Ask real questions about UK planning applications, appeals and enforcement, answered from council records, not the AI's general knowledge. Works with Claude, Claude Code, and other AI assistants.
UK Planning API is not accepting new accounts. This guide is for existing accounts: connecting signs in with the email address your account is registered to.
Quickest way to connect
No coding, no downloads, no API key to copy: you just sign in with your email.
Claude (claude.ai and Claude Desktop)
The quickest route is the prefilled link, which opens Claude's "Add custom connector" dialog with the name and address already filled in:
Or do it by hand:
- Open Claude → Customize → Connectors → Add custom connector.
- Enter the name
UK Planning APIand paste this as the server address:https://ukplanningapi.co.uk/mcp
- Sign in with your email when asked: we email you a link, there is no password. The link works once and expires after a short time. Claude connects through OAuth. If you see boxes for Client ID or Client Secret, leave them empty; they're not needed here.
- Approve the connection, then ask a planning question.
Claude Code
Add the server with your API key from the dashboard:
claude mcp add --transport http uk-planning-api https://ukplanningapi.co.uk/mcp --header "X-Api-Key: YOUR_API_KEY"
If you would rather sign in by email than copy a key, leave the
--header part out, then run /mcp inside Claude Code
and choose uk-planning-api to start the sign-in.
ChatGPT (custom connector)
- Open ChatGPT → Settings → Connectors → Create.
- Paste this in as the server address:
https://ukplanningapi.co.uk/mcp
- ChatGPT will ask you to sign in: enter your email, then click the link we send you. No password to create or remember.
- Approve the connection. That's it: ask it a planning question.
Works as-is. If you also turn on Developer Mode (ChatGPT Settings → Advanced), it gets all 35 tools below instead of general search, which is better for detailed questions about officers, appeals or approval rates, but not needed to get started.
Every tool call counts as one request, and the allowance is shared with the REST API. The connection shows up as a key in your dashboard, where you can revoke it at any time. Prefer building a shareable Custom GPT instead? See GPT Actions further down.
Example questions
- "What planning applications have been submitted near NW3 6UP?"
- "What's the approval rate for house extensions in Camden?"
- "Is NW3 6UP in a conservation area or under an Article 4 direction?"
- "Show me planning appeals decided in Leeds this year."
- "Which wards does Bristol City Council have planning data for?"
- "Compare the approval rate for new dwellings in Manchester and Sheffield."
- "What is the planning history of the property at BS1 5TR?"
- "How many enforcement cases has Birmingham City Council opened this year?"
Every tool is read-only
All 35 tools only read data. None of them creates, changes or
deletes anything, sends anything on your behalf, or takes an action outside
the conversation. They query the planning records held in our own database;
they do not browse the web. The only thing a call changes is your own request
count for the month: each tool call counts as one request against your
allowance, shared with the REST API. The one exception is
get_my_usage, which shows your usage and is not counted.
Where the data comes from
The records are public planning registers published by councils and by the Planning Inspectorate (for appeals). We republish them as published and do not edit them, so what you see is what the register says, including its gaps and errors. Coverage varies by council and by field: some councils publish little, and a missing value usually means it was not published.
Appeal information from the Planning Inspectorate: Contains public sector information licensed under the Open Government Licence v3.0. That licence covers the Inspectorate's information only; it does not cover personal data, or material owned by others such as applicants' drawings and Ordnance Survey mapping.
Because the registers are public, they include personal details that were published with each application. Some tools return the names of case officers (on application and enforcement records), the names of appellants, inspectors and agents on appeals, and the name, company, email address and phone number of the agent who submitted an application, exactly as they appear on the register. Free-text descriptions can also contain names that the council or applicant wrote into them. This is deliberate, and a tool that returns these fields is doing what its description says.
If you want something removed or corrected, email help@ukplanningapi.co.uk. Our privacy policy explains how we handle personal data.
Troubleshooting
The sign-in email does not arrive
Check your spam or junk folder first. The email address you enter must match the one on your account. Request a new sign-in link, as each link works once and expires after a short time. If nothing arrives, write to help@ukplanningapi.co.uk from the address you signed up with.
"401" or "Unauthorized"
Your sign-in has expired or been revoked, or the API key is missing or
wrong. In Claude or ChatGPT, disconnect the connector and connect it again;
you will be emailed a fresh sign-in link. In Claude Code, run
/mcp and sign in again, or check the X-Api-Key
header holds a current key from your dashboard.
Every request needs a credential, including listing the tools.
"Monthly request limit reached"
The account has used its monthly allowance. The message gives the date it
resets: allowances reset at the start of each calendar month, 00:00 UTC.
get_my_usage keeps working after the limit is reached and does
not count, so you can always check where you stand.
An empty result
There are two different cases. An empty field (for example no received date) usually means the council did not publish it, not that the thing did not happen. An empty search means no matching record in our data: check the spelling of the council name or the postcode, and try a wider search. Coverage differs between councils, so another council may return results for the same question.
Reporting a problem
Open an issue on the public issue tracker, or email help@ukplanningapi.co.uk. Please include the council, the application reference or postcode, and the tool you used. Don't post personal data in a public issue.
Developer setup
The rest of this page is for building an integration directly — config files, the REST API, and the full list of 35 tools — rather than using Claude or ChatGPT as-is. One API key works across REST and MCP, sharing the same monthly quota.
Transport
Streamable HTTP hosted at https://ukplanningapi.co.uk/mcp. No local
install required — add the URL and your API key to your client's MCP config.
This is the only transport: there is no stdio (local subprocess) option, so
clients that can only launch a local command need a remote-MCP bridge.
Pass your key via the X-Api-Key header on the connection, or
connect through OAuth and sign in by email.
Every request needs a credential — API key or OAuth — including
tools/list. There's no anonymous session; an unauthenticated
request gets 401.
Claude Desktop
Add it as a custom connector, as described under Claude above. Claude Desktop's own config file is for local (stdio) servers, so it isn't used for this one.
Cursor
.cursor/mcp.json:
{
"mcpServers": {
"uk-planning-api": {
"url": "https://ukplanningapi.co.uk/mcp",
"headers": { "X-Api-Key": "YOUR_API_KEY" }
}
}
}
VS Code Copilot
.vscode/mcp.json:
{
"servers": {
"uk-planning-api": {
"type": "http",
"url": "https://ukplanningapi.co.uk/mcp",
"headers": { "X-Api-Key": "YOUR_API_KEY" }
}
}
}
ChatGPT via Custom GPT Actions
An alternative to the ChatGPT connector in the quick-start section above.
Not MCP — a Custom GPT built from an OpenAPI schema, talking to the plain REST API with a regular API key. Useful if you're building a Custom GPT to share, or just prefer pasting a key over signing in.
- In ChatGPT: Explore GPTs → Create (or open an existing GPT you own) → Configure → Create new action.
- Import from URL and paste:
https://ukplanningapi.co.uk/openapi.json
- Authentication → API Key. If you're offered a choice of
Bearer or Custom: either works — for
Custom, set the header name to
X-Api-Key. Paste your API key as the value. - Save. The GPT can now call every
/v1/…endpoint this API has — the same data as the MCP tools below, shaped as REST operations instead of named tools.
One API key, one quota, shared across REST, MCP and the ChatGPT/Claude connectors — nothing about using it from a Custom GPT costs differently.
Python / LangChain agent
from mcp import ClientSession
from mcp.client.streamable_http import streamablehttp_client
async with streamablehttp_client(
"https://ukplanningapi.co.uk/mcp",
headers={"X-Api-Key": "YOUR_API_KEY"},
) as (read, write, _):
async with ClientSession(read, write) as session:
await session.initialize()
result = await session.call_tool("search_applications", {"postcode": "NW3"})
ChatGPT connector tools (2)
| Tool | What an AI can ask |
|---|---|
search | Search UK planning applications from one plain-English query. |
fetch | Fetch one planning application in full by the id returned from `search`. |
Core tools (9)
| Tool | What an AI can ask |
|---|---|
search_applications | “Show refused householder applications in NW3 in the last 6 months” |
get_application | “Get the full detail for application 14-26/00123/FUL” |
get_site_history | “What's the full planning history of this property?” |
get_location_constraints | “Is NW3 6UP in a conservation area or under an Article 4 direction?” |
get_officer | “What is this case officer's refusal rate for extensions?” |
get_agent | “What is this planning agent's approval rate in Camden?” |
list_councils | “Which councils do you have data for?” |
get_council_stats | “What is the approval rate for householder applications in Ealing?” |
get_changes | “What new applications were submitted in Tower Hamlets today?” |
Summary tools (11)
| Tool | What an AI can ask |
|---|---|
get_country_stats | “What is the approval rate in Wales?” |
get_country_trends | “Has Wales's approval rate changed over 3 years?” |
get_county_stats | “What is the approval rate in Lancashire?” |
get_county_trends | “Is Lancashire approving more or fewer applications than 2 years ago?” |
get_council_summary | “What application types get approved most in Camden?” |
get_council_trends | “Show Camden's quarterly approval rate over time” |
get_ward_stats | “What planning activity is there in Ealing Broadway ward?” |
get_district_stats | “What planning activity is there in SE1?” |
get_postcode_stats | “What planning activity has there been at NW3 6UP?” |
get_officer_history | “Show me this officer's quarterly caseload over time” |
get_appeal_stats | “What's the householder appeal success rate at Ealing?” |
Appeals & enforcement tools (6)
| Tool | What an AI can ask |
|---|---|
search_enforcement | “Are there enforcement notices near SE1 9SG?” |
get_enforcement | “What happened with enforcement notice 4821 — was it complied with?” |
search_appeals | “Show allowed appeals in Camden this year” |
get_appeal | “Get the inspector's decision for appeal APP/X5210/W/26/1234567” |
get_application_appeals | “Was application 123-2026/0123/P taken to appeal?” |
get_council_fields | “Which fields does Leeds actually publish before I query it?” |
Area & directory tools (6)
| Tool | What an AI can ask |
|---|---|
list_postcodes | “List every postcode in Hampstead Town ward” |
list_addresses | “What addresses are on Church Row, NW3?” |
list_properties | “List Victorian houses in the Hampstead conservation area” |
search_officers | “Which case officers are recorded for Camden?” |
search_agents | “Find planning agents whose company name contains ‘Associates’” |
list_wards | “Which wards does Camden have data for?” |
Account tools (1)
| Tool | What an AI can ask |
|---|---|
get_my_usage | “How much of my monthly API allowance is left?” |
Appeal coverage
get_appeal_stats
and the appeal figures in get_ward_stats/get_district_stats/
get_officer_history reflect that linked subset, not every appeal filed
against a council.