ONS Baby Names API MCP Server
ONS Baby Names API — MCP Server
An MCP (Model Context Protocol) server that exposes England & Wales baby names data from the ONS birth registration dataset, deployable to Vercel.
Once deployed, you can connect Claude (or any MCP-compatible client) to ask questions like:
"What were the top baby names in 2024?"
"How has the popularity of Oliver changed over time?"
"What names are similar to Olivia for girls?"
"Which area had the most babies called Alfie in 2024?"
Tools
Tool | Description |
| Available years and geography years in the dataset |
| Full list of registered names (all / boys / girls) with slugs |
| Search names by substring |
| All names and counts for a given year |
| Ranked top N names for a given year |
| Full time-series (count + rank per year) for a single name |
| Regional breakdown by local authority area |
| Names with similar popularity trajectories |
| Diagnostic check |
Deploy to Vercel
Fork or clone this repo
Import it in Vercel
Deploy — no build configuration needed
The MCP endpoint will be available at:
https://<your-vercel-url>/mcpOptional environment variable
Variable | Default | Description |
|
| Override the upstream API base URL |
Connect to Claude
In Claude's settings, add a new MCP server with the URL:
https://<your-vercel-url>/mcpLocal development
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
python app.pyThe server will start on http://localhost:8000/mcp.
Data source
Data is served from ons-baby-names-api.netlify.app, generated from ONS birth registration statistics for England & Wales. Source code: henryjameslau/baby-names-api.