Skip to main content
Glama
docsbook-mcp

docsbook-mcp

Official
by Docsbook-io

docsbook-mcp

A thin open-source proxy to the hosted Docsbook MCP server.

Docsbook is an AI-native documentation platform — hosting, AI chat over your docs, analytics, SEO/GEO/AEO optimization, translations, and webhooks, all driven from a GitHub repo. This package is a small stdio MCP server that forwards requests to Docsbook's hosted MCP endpoint, giving any MCP client (Claude Desktop, Claude Code, Cursor, etc.) access to ~40 tools for managing a Docsbook workspace: branding, navigation, SEO/GEO/AEO, the AI chat system prompt, translations, analytics, webhooks, and the doc source-of-truth graph.

The actual tool implementations live in Docsbook's hosted backend (https://docsbook.io/api/mcp/server) — this repo contains no proprietary code, no database access, and no secrets. It is ~150 lines that speak stdio to your MCP client on one side and Streamable HTTP to the hosted endpoint on the other.

Install & configure

Claude Code

claude mcp add docsbook -- npx -y docsbook-mcp

Then set your token as an environment variable, or pass it via claude mcp add --env:

claude mcp add docsbook --env DOCSBOOK_MCP_TOKEN=your-token-here -- npx -y docsbook-mcp

Claude Desktop (or any JSON-config MCP client)

Add to your MCP client config (e.g. claude_desktop_config.json):

{
  "mcpServers": {
    "docsbook": {
      "command": "npx",
      "args": ["-y", "docsbook-mcp"],
      "env": {
        "DOCSBOOK_MCP_TOKEN": "..."
      }
    }
  }
}

Get a token from your workspace's MCP settings at https://docsbook.io/settings/mcp.

Related MCP server: gitbook-mcp

Environment variables

Variable

Required

Description

DOCSBOOK_MCP_TOKEN

For real tool calls

Bearer token used to authenticate against the hosted Docsbook MCP server. Without it, the server still starts and lists tools (see below), but tools/call returns an error telling you where to get one.

DOCSBOOK_MCP_URL

No

Overrides the upstream endpoint. Defaults to https://docsbook.io/api/mcp/server. Can be pointed at a scoped endpoint, e.g. https://docsbook.io/{owner}/{repo}/api/mcp/server, which Docsbook serves anonymously (no token) for read-only access to PRO+ public workspaces.

How it works

  • On tools/list, this proxy forwards to the hosted endpoint (with your DOCSBOOK_MCP_TOKEN as a Bearer token, if set) and returns whatever tools the server currently exposes — the tool list is never hardcoded here.

  • If the upstream is unreachable, or no token is configured, it falls back to a bundled static tool manifest (src/tools-manifest.json) so the server can still respond to initialize/tools/list (useful for sandboxed registry introspection, e.g. Glama). This fallback list may lag behind the live tool set — see the _comment field in that file for how it was assembled.

  • On tools/call, it forwards the call to the hosted endpoint. If no token is configured, it returns a clear MCP error pointing you to https://docsbook.io/settings/mcp.

Development

npm install
npm run build
node dist/index.js

Learn more

License

MIT

Available Tools

62 tools
approve_translationC

Approve a translation. PRO+ plan.

Inputs: no named parameters.

create_workspaceC

Create a workspace from a GitHub repo.

Inputs: no named parameters.

delete_translationB

Delete a translation. PRO+ plan.

Inputs: no named parameters.

doc_breadcrumbsC

Get breadcrumbs for a doc page. PRO+ plan.

Inputs: no named parameters.

doc_canonical_refA

Get the canonical reference for a doc symbol. PRO+ plan.

Inputs: no named parameters.

doc_definitionB

Go-to-definition for a doc symbol. PRO+ plan.

Inputs: no named parameters.

doc_grepC

Regex search over doc content. PRO+ plan.

Inputs: no named parameters.

doc_hoverC

Hover info for a doc symbol. PRO+ plan.

Inputs: no named parameters.

doc_list_pagesB

List all doc pages. PRO+ plan.

Inputs: no named parameters.

doc_neighborsA

Get neighboring pages in the doc graph. PRO+ plan.

Inputs: no named parameters.

doc_outlineC

Get the outline/structure of a doc page. PRO+ plan.

Inputs: no named parameters.

doc_search_by_anchorC

Search doc sections by anchor. PRO+ plan.

Inputs: no named parameters.

doc_search_orphansA

Find orphaned pages with no incoming links. PRO+ plan.

Inputs: no named parameters.

doc_search_pathsB

Glob search over doc paths. PRO+ plan.

Inputs: no named parameters.

doc_search_symbolsC

Fuzzy symbol search (e.g. 'oaf' -> 'OAuth flow'). PRO+ plan.

Inputs: no named parameters.

doc_search_textB

Ranked full-text search with snippets and line/col positions. PRO+ plan.

Inputs: no named parameters.

doc_search_unresolvedB

Find unresolved links in the doc graph. PRO+ plan.

Inputs: no named parameters.

find_skillA

Find a SKILL.md by query and filters, returning a raw_url.

Inputs: no named parameters.

get_ai_questionsC

All AI chat questions. PRO plan or higher.

Inputs: no named parameters.

get_ai_unansweredC

Questions the AI chat couldn't answer. PRO plan or higher.

Inputs: no named parameters.

get_ai_usageC

AI/translation usage and limits.

Inputs: no named parameters.

get_analyticsC

Views, visitors, top pages, referrers.

Inputs: no named parameters.

get_chat_system_promptA

Get the AI chat system prompt. PRO+ plan.

Inputs: no named parameters.

get_doc_graphA

Get the Source of Truth doc graph (format toon/json). PRO+ plan.

Inputs: no named parameters.

get_failed_searchesC

No-result search queries. PRO plan or higher.

Inputs: no named parameters.

get_infoC

Server capabilities.

Inputs: no named parameters.

get_negative_feedbackC

Pages with negative feedback. PRO plan or higher.

Inputs: no named parameters.

get_page_journeysD

User navigation paths. PRO+ plan.

Inputs: no named parameters.

get_top_visitorsC

Top anonymous visitors with drill-down. PRO+ plan.

Inputs: no named parameters.

get_translationC

Get a translation. PRO plan or higher.

Inputs: no named parameters.

get_visitor_activityC

Timeline of activity for one visitor. PRO+ plan.

Inputs: no named parameters.

get_workspaceA

Get a workspace by ID or owner/repo.

Inputs: no named parameters.

list_pending_translationsA

List pending translations. PRO plan or higher.

Inputs: no named parameters.

list_webhook_deliveriesA

List webhook deliveries (Business plan).

Inputs: no named parameters.

list_webhooksB

List registered webhooks (Business plan).

Inputs: no named parameters.

list_workspacesC

All workspaces with plan_capabilities.

Inputs: no named parameters.

query_eventsD

Raw analytics events query. PRO+ plan.

Inputs: no named parameters.

read_doc_sectionsB

Read sections from the doc graph. PRO+ plan.

Inputs: no named parameters.

reindex_doc_graphA

Reindex the Source of Truth doc graph (100/mo limit). PRO+ plan.

Inputs: no named parameters.

replay_webhook_deliveryC

Replay a webhook delivery (Business plan).

Inputs: no named parameters.

search_docsC

Full-text/semantic search over doc content.

Inputs: no named parameters.

set_chat_hooksB

Configure AI chat hooks. PRO+ plan.

Inputs: no named parameters.

set_chat_system_promptB

Set the AI chat system prompt. PRO+ plan.

Inputs: no named parameters.

set_translation_modeC

Set translation mode. PRO+ plan.

Inputs: no named parameters.

test_chat_hookB

Test an AI chat hook. PRO+ plan.

Inputs: no named parameters.

test_webhookB

Send a test webhook delivery (Business plan).

Inputs: no named parameters.

unregister_webhookC

Unregister a webhook (Business plan).

Inputs: no named parameters.

update_aeoB

Update FAQPage, HowTo, speakable markup (PRO plan or higher).

Inputs: no named parameters.

update_ai_settingsC

Update AI provider settings (PRO plan or higher; BYO key/model is Business-only).

Inputs: no named parameters.

update_brandingB

Update colors, fonts, logo, theme.

Inputs: no named parameters.

update_domainC

Custom domain setup (Business plan).

Inputs: no named parameters.

update_geoB

Update TL;DR, dateModified, Person/Author markup (PRO plan or higher).

Inputs: no named parameters.

update_languagesB

Enable languages for translation (PRO plan or higher).

Inputs: no named parameters.

update_navigationB

Update header/social/folder links.

Inputs: no named parameters.

update_seoB

Update meta, OpenGraph, JSON-LD, sitemap (PRO plan or higher).

Inputs: no named parameters.

update_ui_settingsC

Show/hide UI components.

Inputs: no named parameters.

upload_translationB

Upload a translation. PRO+ plan.

Inputs: no named parameters.

write_docsA

Create/edit doc content. Requires an MCP token with read_write scope; read-only tokens are rejected.

Inputs: no named parameters.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    C2.4/5.0

    Scored across 62 tools

    Disambiguation3/5

    Most tools are clearly distinct, but the doc_search_* family (doc_search_text, doc_grep, doc_search_paths, doc_search_by_anchor) and the general search_docs overlap in function, which could cause misselection. The analytics and workspace tools are well-separated.

    Naming Consistency4/5

    The majority of tools follow a clear verb_noun pattern (get_, list_, update_, create_, delete_, set_, test_). However, the doc_* tools (doc_outline, doc_breadcrumbs, doc_neighbors) deviate by using a prefix instead of a leading verb, though they remain readable and predictable.

    Tool Count1/5

    62 tools is extreme for an MCP server. Even for a feature-rich documentation platform, this exceeds reasonable scope and will overwhelm agents with too many options, making selection harder.

    Completeness2/5

    The tool set covers many features but has significant gaps: no delete_workspace, no delete_doc, no register_webhook (only unregister), and no general list_translations (only pending). These missing lifecycle operations create dead ends and prevent full workflows.

    Related MCP Connectors

    Related MCP Servers