npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

bookstack-mcp

v2.1.1

Published

MCP server for BookStack wiki — search, read, create, and manage documentation via AI assistants

Readme

BookStack MCP Server

A Model Context Protocol (MCP) server that gives AI assistants full access to your BookStack documentation — search, read, create, and manage content.

Features

  • 17 read-only tools + 8 write tools for complete BookStack API coverage
  • Type-safe input validation with Zod (auto-coerces string/number params for broad client compatibility)
  • Embedded URLs and content previews in all responses
  • Write operations disabled by default for safety
  • Works with Claude Desktop, LibreChat, and any MCP-compatible client

Quick Start

Install from npm

npx bookstack-mcp

Or clone and build

git clone https://github.com/ttpears/bookstack-mcp.git
cd bookstack-mcp
npm install && npm run build
npm start

Environment Variables

BOOKSTACK_BASE_URL=https://your-bookstack.com   # Required
BOOKSTACK_TOKEN_ID=your-token-id                # Required
BOOKSTACK_TOKEN_SECRET=your-token-secret        # Required
BOOKSTACK_ENABLE_WRITE=false                    # Optional, default false

Client Configuration

Claude Desktop

Add to your Claude Desktop config:

{
  "mcpServers": {
    "bookstack": {
      "command": "npx",
      "args": ["-y", "bookstack-mcp"],
      "env": {
        "BOOKSTACK_BASE_URL": "https://your-bookstack.com",
        "BOOKSTACK_TOKEN_ID": "your-token-id",
        "BOOKSTACK_TOKEN_SECRET": "your-token-secret"
      }
    }
  }
}

LibreChat

Add to your librechat.yaml:

mcpServers:
  bookstack:
    command: npx
    args:
      - -y
      - bookstack-mcp
    env:
      BOOKSTACK_BASE_URL: "https://your-bookstack.com"
      BOOKSTACK_TOKEN_ID: "your-token-id"
      BOOKSTACK_TOKEN_SECRET: "your-token-secret"

Restart LibreChat after config changes.

Available Tools

Read Operations (always available)

| Tool | Description | |------|-------------| | get_capabilities | Server capabilities and configuration | | search_content | Search across all content with filtering | | search_pages | Search pages with optional book filtering | | get_books / get_book | List or get details of books | | get_pages / get_page | List or get full page content | | get_chapters / get_chapter | List or get chapter details | | get_shelves / get_shelf | List or get shelf details | | get_attachments / get_attachment | List or get attachment details | | export_page | Export page as HTML, PDF, Markdown, plaintext, or ZIP | | export_book | Export entire book | | export_chapter | Export chapter | | get_recent_changes | Recently updated content |

Write Operations (requires BOOKSTACK_ENABLE_WRITE=true)

| Tool | Description | |------|-------------| | create_page / update_page | Create or update pages | | create_shelf / update_shelf / delete_shelf | Manage shelves | | create_attachment / update_attachment / delete_attachment | Manage attachments |

BookStack API Setup

  1. Log into BookStack as an admin
  2. Go to Settings > Users > Edit your user
  3. Ensure the user has Access System API permission
  4. In the API Tokens section, create a new token
  5. Copy the Token ID and Token Secret

Security

  • Write operations are disabled by default
  • Use HTTPS for production instances
  • Store API tokens securely (never commit to git)
  • Consider a dedicated BookStack user with limited permissions

Development

npm run dev          # Hot reload with tsx
npm run type-check   # Type checking only
npm run build        # Production build

License

MIT