Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
LOC_MIN_REQUEST_INTERVALNoOverride the minimum request interval in seconds (default 4). Only change with reason.4

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": true
}
logging
{}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
extensions
{
  "io.modelcontextprotocol/ui": {}
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
search_locA

Search the Library of Congress full text.

Covers every collection at once: newspapers 1736-1963 in more than a dozen languages, plus digitised books and manuscripts.

Bare words are ANDed and "quoted phrases" match exactly. There is no boolean OR and no NOT - those words, a leading minus, parentheses and | are all silently stripped - so each variant of a term needs its own search.

Results resolve to individual pages. Each carries a reference that is both the citation URL and the argument for snippets_loc and get_loc_text.

snippets_locA

Show a query in context on one page.

The cheap way to judge a search result without downloading it: returns the matched terms in {braces} with the surrounding sentences, and a citation URL. Works for any page-level reference, but not for a whole item.

get_loc_textA

Download a page's OCR text, returning the path to the cached file.

Use when snippets are not enough and the whole page has to be read or grepped. Hyphenation broken across line ends is rejoined, so the cached text greps the way the search index matched.

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/nestordemeure/loc-mcp'

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