TownIndex for developers and AI agents
Local businesses for AI agents: nationwide, fast, and structured. Free, with no key and no sign-in.
People ask assistants everyday questions: "who can fix my furnace tonight?", "a dentist near me who takes new patients". TownIndex answers them with real local businesses: their phone, hours, whether they're open or taking emergency calls right now, and their state licenses. Every result links to its TownIndex page.
- Coverage: 3,668,903 businesses in 34,646 towns in all 50 states and DC, in 70 categories: trades and contractors, dentists, auto, restaurants and personal services; 60,380 matched to an active state license.
- MCP server:
https://townindex.org/api/mcp(Streamable HTTP, JSON responses, no authentication). - JSON API: openapi.json (OpenAPI 3.1), for tools and GPT actions.
- For crawlers and models: llms.txt, and schema.org data on every page.
- Listed in: the official MCP Registry as
org.townindex/directory, and Glama.
Connect
Use one address for everything: https://townindex.org/api/mcp. There's no key to get and no account to make.
- Claude (claude.ai and Claude Desktop)
- Settings → Connectors → Add custom connector, then paste the address.
- Claude Code
claude mcp add --transport http townindex https://townindex.org/api/mcp
- ChatGPT
- Turn on developer mode in ChatGPT's settings, add a connector with the address, and set authentication to none.
- Cursor
~/.cursor/mcp.json:{ "mcpServers": { "townindex": { "url": "https://townindex.org/api/mcp" } } }- VS Code (Copilot agent mode)
.vscode/mcp.json:{ "servers": { "townindex": { "type": "http", "url": "https://townindex.org/api/mcp" } } }- Gemini CLI
~/.gemini/settings.json:{ "mcpServers": { "townindex": { "httpUrl": "https://townindex.org/api/mcp" } } }- Windsurf
~/.codeium/windsurf/mcp_config.json:{ "mcpServers": { "townindex": { "serverUrl": "https://townindex.org/api/mcp" } } }- Any other MCP client, or your own agent
- JSON-RPC over HTTP POST:
curl -s https://townindex.org/api/mcp -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params": {"name":"search_businesses","arguments":{"query":"plumber 06114"}}}'
Tools
| Tool | Kind | What it does |
|---|---|---|
search_businesses | Read | Businesses by trade, problem, specialty or name and a place (ZIP, town and state, or state), nearest first with miles from a ZIP. Filters: open now, taking emergency calls now. 20 a page. |
get_business | Read | One business in full: phone, address, website, hours and whether it's open now, emergency calls, services, towns served, state licenses, and its own booking page if it has one. |
on_call_near | Read | Emergency businesses whose owner has switched on "on call" right now, near a ZIP or a point. |
report_listing_issue | Write | Tell us a listing is wrong (closed, moved, wrong phone, hours or website). A person reviews every report. |
request_appointment | Write | Ask a business that accepts requests for an appointment, for the user and only when they ask. We email the user a 6-digit code. |
confirm_appointment_request | Write, can't be undone | With the user's code, sends the request to the business by email. The business contacts the user directly. |
Each tool carries a title and read-only or destructive hints, so assistants know which ones to ask the user about first. The server's instructions tell the model how to search well. In short: name the trade or problem and the place, with a ZIP if you know it.
Questions it answers
| The user asks | The assistant uses |
|---|---|
| "My heat is out in Hartford, CT. Who can come tonight?" | search_businesses with emergency_now |
| "A plumber near 06114 who's open now" | search_businesses with open_now, nearest first with miles |
| "Pediatric dentists in Wolcott, CT" | search_businesses (specialties are understood) |
| "Is this electrician licensed in Connecticut?" | get_business: license number and expiry, matched to state records |
| "Book me a cleaning at that dentist next week" | the business's own booking page, or request_appointment then confirm_appointment_request |
| "That number is disconnected" | report_listing_issue, after asking the user |
Fast
Agents work on a time and token budget, so answers are small and quick. Each result carries the fields an assistant needs and nothing more. Our own measurements, from a home connection in Connecticut on December 5, 2026:
- A search someone just asked: about 0.1 seconds.
- A new search: usually 0.25 to 1 second, and now and then a few seconds for a large city.
- One business in full (
get_business) andon_call_near: about 0.1 seconds.
Glama's monitor checks the server's health independently: see its listing.
Where the data comes from
Places come from the Overture Maps Foundation's open data and are checked against each business's own website. Contractors in California, Connecticut, Oregon and Washington are matched to active state licenses, and dental offices to their dentists (NPI register) and their licenses in six states. Owners can claim and correct their listing for free. Hours aren't known for every business, so assistants should suggest calling ahead. More on how we build the directory.
No ads, and nobody can pay for a higher place, so what an assistant passes on is the best match we know, not the highest bidder.
Fair use
- Answer one person's question at a time, and link each business you show to its TownIndex page.
- Keep to about one request a second. Faster clients get
429withRetry-After: wait that long. - Copying the directory in bulk isn't allowed: see the terms of use. What the appointment tools collect is in the privacy policy.
Contact
Building something with TownIndex, or need something it doesn't do yet? Write to GoranAStojanov+TownIndex@hotmail.com.