Libraryapi MCP server
{
"mcpServers": {
"libraryapi": {
"command": "uvx",
"args": [
"libraryapi-mcp"
],
"env": {
"LIBRARYAPI_KEY": "<libraryapi_key>"
}
}
}
}{
"mcpServers": {
"libraryapi": {
"command": "uvx",
"args": [
"libraryapi-mcp"
],
"env": {
"LIBRARYAPI_KEY": "<libraryapi_key>"
}
}
}
}{
"mcpServers": {
"libraryapi": {
"command": "uvx",
"args": [
"libraryapi-mcp"
],
"env": {
"LIBRARYAPI_KEY": "<libraryapi_key>"
}
}
}
}{
"servers": {
"libraryapi": {
"command": "uvx",
"args": [
"libraryapi-mcp"
],
"env": {
"LIBRARYAPI_KEY": "${input:libraryapi_key}"
}
}
},
"inputs": [
{
"id": "libraryapi_key",
"type": "promptString",
"description": "Libraryapi key",
"password": true
}
]
}{
"mcpServers": {
"libraryapi": {
"command": "uvx",
"args": [
"libraryapi-mcp"
],
"env": {
"LIBRARYAPI_KEY": "<libraryapi_key>"
}
}
}
}file .mcp.json (in your project root)file claude_desktop_config.jsonfile ~/.cursor/mcp.jsonfile .vscode/mcp.jsonfile ~/.codeium/windsurf/mcp_config.jsoninstall uvx libraryapi-mcpversion 0.1.2
What it does
This server exposes US public library data from the IMLS Public Libraries Survey, allowing AI agents to find library branches near addresses, search library systems, and retrieve collection and operational details. It is for developers building applications that need access to public library locations and statistics.
- Find the nearest public library branches to a given address or coordinates.
- Retrieve statewide library statistics such as total branches and collection sizes.
- Access detailed records for individual library systems or branches by ID or search criteria.
Tools this server exposes
| Tool | Does |
|---|---|
| find_libraries_near_address | Find the nearest library branches to a US street address. |
| find_libraries_near_coordinates | Find the nearest library branches to a latitude and longitude. |
| get_outlet | Retrieve the full record for an individual library branch by its outlet ID. |
| search_libraries | Search library systems by name, state, or city. |
| get_library | Retrieve the full profile for a library system by its FSCS ID. |
| get_state_summary | Retrieve statewide totals for public libraries, including branch counts and collection sizes. |
Before you enable it
An MCP server runs with whatever access you give it. Start with a development account rather than production, and check which tools the server exposes before you let an agent call them unattended.