Skip to main content
Glama
library-api

libraryapi-mcp

Official
by library-api

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
LIBRARYAPI_KEYYesYour API key for libraryapi.dev. Get a free key at https://libraryapi.dev

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
find_libraries_near_addressA

Find the public library branches nearest to a US street address, sorted by distance.

Args: address: Full US street address, e.g. "350 Fifth Ave, New York, NY" radius_miles: Search radius in miles (0.1–50, default 10) limit: Maximum branches to return (1–100, default 10) include_closed: Include temporarily-closed branches (default False)

find_libraries_near_coordinatesA

Find the public library branches nearest to a latitude/longitude, sorted by distance. Use this when you already have coordinates; it skips geocoding and is faster than find_libraries_near_address.

Args: lat: Latitude (WGS84) lng: Longitude (WGS84) radius_miles: Search radius in miles (0.1–50, default 10) limit: Maximum branches to return (1–100, default 10) include_closed: Include temporarily-closed branches (default False)

get_outletA

Get the full record for one library branch (outlet) by its ID, including address, phone, coordinates, and service details.

Args: outlet_id: IMLS outlet ID

search_librariesA

Search public library systems by name, state, and/or city. A system is the administrative entity (e.g. "Chicago Public Library") that operates one or more branch outlets. Provide at least one of name, state, or city.

Args: name: Library system name (full-text search) state: Two-letter state code, e.g. "IL" city: City name (substring match) limit: Results per page (1–100, default 20) offset: Pagination offset (default 0)

get_libraryA

Get the full profile for a library system by its FSCS ID, including collections, staffing, visits, programs, and finances.

Args: fscs_id: IMLS FSCS ID for the library system, e.g. "IL0021"

get_state_summaryA

Get statewide public library totals — systems, branch outlets, collections, and usage — for one state.

Args: state_code: Two-letter state abbreviation, e.g. "IL"

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/library-api/libraryapi-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server