Get started with Kadrin for AI
Kadrin for AI lets an AI assistant look up facts about places while you talk with it. Ask "How many people live within a 10-minute drive of Boston City Hall?" and the assistant asks Kadrin, then answers with the number, its source and its margin of error (how far the true number could reasonably be from our estimate).
It's a connector that uses the Model Context Protocol (MCP), a standard way for AI assistants to use outside tools.
1. Make a key
Sign in to Kadrin Batch, open Keys, and make a key. A test key is free and gives made-up numbers, which is enough to check the setup. Make a live key for real numbers.
2. Add Kadrin to your assistant
For now the connector takes your key in a header. In Claude Code, run this in a terminal, with your key in KADRIN_API_KEY:
claude mcp add --transport http kadrin https://mcp.kadrindata.com/mcp --header "Authorization: Bearer $KADRIN_API_KEY"
Other apps that can connect to an MCP server over HTTP with a header work the same way. Give them:
- the address
https://mcp.kadrindata.com/mcp - the header
Authorization, set toBearerand a space, then your key
Apps that add connectors only by signing in, rather than with a key, need OAuth (a standard way to let one app act for you in another). It arrives in January.
3. Ask about places
Ask in your own words. For example:
- "What's the median household income within 3 miles of Kendall Square in Cambridge, Massachusetts?"
- "Compare Worcester, Springfield and Lowell, Massachusetts on population, income and jobs."
- "Run a site report for a 10-minute drive around 42.3555, -71.0605."
- "How many grocery stores are within a 15-minute walk of Union Square in Somerville?"
- "How many Kadrin credits do I have left?"
The assistant picks Kadrin's tools itself: finding an area by name, choosing measures, getting the numbers, comparing places. Each answer it gets lists the sources and years, so ask it to cite them if it doesn't.
What it costs
The same credits as the API: one credit for each group of measures for each place, and 2 more to draw a drive-time area. Finding places, searching the measures and checking your credits are free.
- A question that would cost more than 200 credits stops first, and the assistant asks you before going ahead.
- Each key can spend up to 1,000 credits a day through the connector, so one long conversation can't use up your balance. Ask us if you need more.
Next
- AI connector tools: what each tool does and takes.
- Measures: everything the assistant can ask for.