{
  "markdown": "# libraryapi-mcp\n\n<!-- Links this package to its entry in the official MCP registry -->\nmcp-name: dev.libraryapi/libraryapi-mcp\n\nMCP server for [libraryapi.dev](https://libraryapi.dev) — US public library data for AI agents.\n\nExpose 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.\n\n## Installation\n\n```bash\npip install libraryapi-mcp\n```\n\nOr run directly with `uvx` (no install needed):\n\n```bash\nuvx libraryapi-mcp\n```\n\n## Configuration\n\n### Claude Desktop\n\nAdd to `~/Library/Application Support/Claude/claude_desktop_config.json`:\n\n```json\n{\n  \"mcpServers\": {\n    \"libraryapi\": {\n      \"command\": \"uvx\",\n      \"args\": [\"libraryapi-mcp\"],\n      \"env\": {\n        \"LIBRARYAPI_KEY\": \"your_api_key_here\"\n      }\n    }\n  }\n}\n```\n\n### Cursor / other MCP clients\n\n```json\n{\n  \"mcpServers\": {\n    \"libraryapi\": {\n      \"command\": \"uvx\",\n      \"args\": [\"libraryapi-mcp\"],\n      \"env\": {\n        \"LIBRARYAPI_KEY\": \"your_api_key_here\"\n      }\n    }\n  }\n}\n```\n\nGet a free API key at [libraryapi.dev](https://libraryapi.dev) — 500 requests/month, no credit card.\n\n## Available Tools\n\n| Tool | Description |\n|------|-------------|\n| `find_libraries_near_address` | Find the nearest branches to a US street address |\n| `find_libraries_near_coordinates` | Same, but from a lat/lng (skips geocoding) |\n| `get_outlet` | Full record for one branch outlet by ID |\n| `search_libraries` | Search library *systems* by name, state, or city |\n| `get_library` | Full system profile by FSCS ID |\n| `get_state_summary` | Statewide library totals |\n\n**Systems vs. outlets:** a *system* is the administrative entity (e.g. \"Chicago Public Library\"); an *outlet* is an individual branch. Proximity searches return outlets.\n\n## Examples\n\nOnce configured, you can ask your AI assistant:\n\n> \"What are the three closest public libraries to 350 Fifth Ave, New York?\"\n\n> \"How many public library branches are there in Vermont, and what's the total collection size?\"\n\n> \"I'm building a civic app — give me every library branch within 5 miles of downtown Chicago as JSON.\"\n\n## Data note\n\nThe 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.\n\n## Links\n\n- **Website:** [libraryapi.dev](https://libraryapi.dev)\n- **PyPI:** [pypi.org/project/libraryapi-mcp](https://pypi.org/project/libraryapi-mcp)\n- **REST API docs:** [libraryapi.dev/docs](https://libraryapi.dev/docs)\n\n## License\n\nMIT\n",
  "bytes": 2687,
  "sha": "7a6c8819811a0e62410d8b6b64b6e90589c9fd11cb30237652c7b6e6f3e191e1",
  "repo_slug": "library-api/libraryapi-mcp",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/mcp_dev_libraryapi_libraryapi_mcp_cef6a376/readme"
}