mcp-libraryofcongress

v3.1.0
io.github.smeet666/mcp-libraryofcongress Checked 4 days ago Published 1 month ago

Search inside scanned US newspapers and browse the Library of Congress catalogue.

Values you need

VariableWhat it is
LOC_USER_AGENToptional Identify your own client. The project's own identifier is appended, so the Library can always reach a human.
LOC_MIN_INTERVAL_MSoptional Minimum milliseconds between requests. Default 6000, floor 3000.
LOC_TIMEOUT_MSoptional Deadline for one catalogue, record or collection request, in milliseconds. Default 30000.
LOC_NEWSPAPER_TIMEOUT_MSoptional Deadline for one search_newspapers request, in milliseconds. The full-text corpus answers in tens of seconds. Default 90000.
LOC_LOG_LEVELoptional silent, error, info or debug. Default error. Logs go to stderr.

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add mcp-libraryofcongress -- npx -y mcp-libraryofcongress@3.1.0
Add to claude_desktop_config.json
{
  "mcpServers": {
    "mcp-libraryofcongress": {
      "args": [
        "-y",
        "mcp-libraryofcongress@3.1.0"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "mcp-libraryofcongress": {
      "args": [
        "-y",
        "mcp-libraryofcongress@3.1.0"
      ],
      "command": "npx"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "mcp-libraryofcongress": {
      "args": [
        "-y",
        "mcp-libraryofcongress@3.1.0"
      ],
      "command": "npx",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.mcp-libraryofcongress]
command = "npx"
args = ["-y", "mcp-libraryofcongress@3.1.0"]

For AI agents

  1. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: search_newspapers, search_items, get_item, list_collections.
  4. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json