mcp-databnf

v2.2.0
io.github.smeet666/mcp-databnf Checked 4 days ago Published 1 month ago

Search the BnF open catalogue: authors, works, editions and links to what is digitised.

Values you need

VariableWhat it is
BNF_USER_AGENToptional Identify your own client. The project's own identifier is appended, so the BnF can always reach a person.
BNF_MIN_INTERVAL_MSoptional Minimum milliseconds between requests. Default 3000, which is also the floor.
BNF_TIMEOUT_MSoptional Deadline for one SPARQL query, in milliseconds. Default 60000.
BNF_MAX_RETRIESoptional Attempts after a busy answer. Default 3.
BNF_CACHE_TTL_MSoptional How long an answer is kept in memory, in milliseconds. Default 900000. Zero turns the cache off.
BNF_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-databnf -- npx -y mcp-databnf@2.2.0
Add to claude_desktop_config.json
{
  "mcpServers": {
    "mcp-databnf": {
      "args": [
        "-y",
        "mcp-databnf@2.2.0"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "mcp-databnf": {
      "args": [
        "-y",
        "mcp-databnf@2.2.0"
      ],
      "command": "npx"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "mcp-databnf": {
      "args": [
        "-y",
        "mcp-databnf@2.2.0"
      ],
      "command": "npx",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.mcp-databnf]
command = "npx"
args = ["-y", "mcp-databnf@2.2.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_authors, get_author, search_works, get_work, list_editions, list_works, find_digitised.
  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