LibraryAPI MCP Server
US public libraries and branches near any address, with collections from the IMLS survey
LibraryAPI scores 51 (Fair), with no SPDX license recorded and written in Python. It installs as a local process. It declares 6 tools. Filed under Uncategorized. GitHub shows 0 stars. Package registries report about 22 downloads a week. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.
Fair trust
51 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- No license recorded.
License, quality and maintenance
Quality: Grade A
87/100 for listing completeness. Lost points: short README, 1 of 6 tools barely described, short summary.
How quality is graded
Where the 51 comes from
22 + 15 + 0 + 0 + 4 + 10 = 51. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 15 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 0 of 20 points.A clear, OSI-style open-source license.
License: 0 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 10 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "library-api-libraryapi-mcp": { "command": "uvx", "args": [ "libraryapi-mcp" ], "env": { "LIBRARYAPI_KEY": "YOUR_LIBRARYAPI_KEY" } } }}
Environment variables
| Name | Required | Notes |
|---|---|---|
LIBRARYAPI_KEYSecret | Required | API key from https://libraryapi.dev (free tier: 500 requests/month) |
Tools6Tool docs quality grade C
All capabilitiesFind the nearest branches to a US street address
Same, but from a lat/lng (skips geocoding)
get_librarytoolFull system profile by FSCS ID
get_outlettoolFull record for one branch outlet by ID
Statewide library totals
search_librariestoolSearch library systems by name, state, or city
About
libraryapi-mcp
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.
Installation
pip install libraryapi-mcp
Or run directly with uvx (no install needed):
uvx libraryapi-mcp
Configuration
Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"libraryapi": {
"command": "uvx",
"args": ["libraryapi-mcp"],
"env": {
"LIBRARYAPI_KEY": "your_api_key_here"
}
}
}
}
Cursor / other MCP clients
{
"mcpServers": {
"libraryapi": {
"command": "uvx",
"args": ["libraryapi-mcp"],
"env": {
"LIBRARYAPI_KEY": "your_api_key_here"
}
}
}
}
Get a free API key at libraryapi.dev — 500 requests/month, no credit card.
Available Tools
| 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.
Examples
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."
Data note
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.
Links
- Website: libraryapi.dev
- PyPI: pypi.org/project/libraryapi-mcp
- REST API docs: libraryapi.dev/docs
License
MIT
Frequently asked questions
What is LibraryAPI MCP Server?
US public libraries and branches near any address, with collections from the IMLS survey
How do I install LibraryAPI MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. LibraryAPI MCP Server runs locally from the PyPI package libraryapi-mcp with the command uvx libraryapi-mcp.
Does LibraryAPI MCP Server support remote (HTTP) connections?
No remote endpoint is listed for LibraryAPI MCP Server. It runs locally on your machine over stdio, started by your MCP client.
What tools does LibraryAPI MCP Server provide?
LibraryAPI MCP Server provides 6 tools, including find_libraries_near_address, find_libraries_near_coordinates, get_library, and get_outlet. See the full tool list for descriptions and parameters.
How is LibraryAPI MCP Server's trust score calculated?
LibraryAPI MCP Server scores 51 out of 100 (Fair). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.