US public libraries and branches near any address, with collections from the IMLS survey
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Inspect callable tools, capabilities, and parameters exposed to AI agents by LibraryAPI.
find_libraries_near_addressFind the nearest branches to a US street address
find_libraries_near_coordinatesSame, but from a lat/lng (skips geocoding)
get_outletFull record for one branch outlet by ID
search_librariesSearch library *systems* by name, state, or city
get_libraryFull system profile by FSCS ID
get_state_summaryStatewide library totals
mcp-name: dev.libraryapi/libraryapi-mcp
MCP server for libraryapi.dev β US public library data for AI agents.
Expose library lookups as tools to any MCP-compatible AI assistant (Claude, Cursor, Copilot, etc.). Built on the federal IMLS Public Libraries Survey β public domain, commercially usable.
Or run directly with uvx (no install needed):
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
Get a free API key at libraryapi.dev β 500 requests/month, no credit card.
| Tool | Description |
|---|---|
find_libraries_near_address | Find the nearest branches to a US street address |
find_libraries_near_coordinates | Same, but from a lat/lng (skips geocoding) |
get_outlet | Full record for one branch outlet by ID |
search_libraries | Search library systems by name, state, or city |
get_library | Full system profile by FSCS ID |
get_state_summary | Statewide library totals |
Systems vs. outlets: a system is the administrative entity (e.g. "Chicago Public Library"); an outlet is an individual branch. Proximity searches return outlets.
Once configured, you can ask your AI assistant:
"What are the three closest public libraries to 350 Fifth Ave, New York?"
"How many public library branches are there in Vermont, and what's the total collection size?"
"I'm building a civic app β give me every library branch within 5 miles of downtown Chicago as JSON."
The IMLS survey covers locations, collections, staffing, visits, programs, and finances. It reports hours-open totals (annual, and per week) but not daily opening times β so this API can tell you a branch is open ~45 hours/week, not that it opens at 9am.
MIT
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/libraryapi)<a href="https://allmcps.com/mcp/libraryapi"><img src="https://allmcps.com/api/badge/libraryapi?style=directory" alt="LibraryAPI on AllMCPs" /></a>