Skip to content
Cursor

LibraryAPI for Cursor

dev.libraryapi/libraryapi-mcp

US public libraries and branches near any address, with collections from the IMLS survey

client:Cursor transport:stdio runtime:pypi

Install LibraryAPI in Cursor

~/.cursor/mcp.json · windows: %USERPROFILE%\.cursor\mcp.json

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

{
  "mcpServers": {
    "libraryapi-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "libraryapi-mcp"
      ],
      "env": {
        "LIBRARYAPI_KEY": "<LIBRARYAPI_KEY>"
      }
    }
  }
}

Use .cursor/mcp.json in a project root instead to scope it to that project. Cursor merges both. Cursor docs

LibraryAPI in other clients