Skip to content
VS Code

mcp books for VS Code

io.github.smeet666/mcp-books

Search the Internet Archive, the Library of Congress and data.bnf.fr at once, in one answer.

client:VS Code transport:stdio runtime:npm

Install mcp books in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "books-user-agent",
      "description": "BOOKS_USER_AGENT",
      "password": true
    },
    {
      "type": "promptString",
      "id": "books-min-interval-ms",
      "description": "BOOKS_MIN_INTERVAL_MS",
      "password": true
    },
    {
      "type": "promptString",
      "id": "books-timeout-ms",
      "description": "BOOKS_TIMEOUT_MS",
      "password": true
    },
    {
      "type": "promptString",
      "id": "books-max-retries",
      "description": "BOOKS_MAX_RETRIES",
      "password": true
    },
    {
      "type": "promptString",
      "id": "books-cache-ttl-ms",
      "description": "BOOKS_CACHE_TTL_MS",
      "password": true
    },
    {
      "type": "promptString",
      "id": "books-cache-max-entries",
      "description": "BOOKS_CACHE_MAX_ENTRIES",
      "password": true
    },
    {
      "type": "promptString",
      "id": "books-log-level",
      "description": "BOOKS_LOG_LEVEL",
      "password": true
    }
  ],
  "servers": {
    "mcp-books": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "mcp-books"
      ],
      "env": {
        "BOOKS_USER_AGENT": "${input:books-user-agent}",
        "BOOKS_MIN_INTERVAL_MS": "${input:books-min-interval-ms}",
        "BOOKS_TIMEOUT_MS": "${input:books-timeout-ms}",
        "BOOKS_MAX_RETRIES": "${input:books-max-retries}",
        "BOOKS_CACHE_TTL_MS": "${input:books-cache-ttl-ms}",
        "BOOKS_CACHE_MAX_ENTRIES": "${input:books-cache-max-entries}",
        "BOOKS_LOG_LEVEL": "${input:books-log-level}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

mcp books in other clients