Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
DOCSHELF_ROOTYesPath to the shelf directory containing the document collection.

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
docshelf_init_shelfA

Bootstrap a new document shelf at shelf_path.

Creates the directory layout (docs/, INDEX.md, .docshelf.json, .gitignore), pre-creates any default_categories, and stores the github_remote so generated INDEX entries link to raw GitHub URLs.

Idempotent — safe to call on an existing shelf to update metadata.

docshelf_add_documentA

Add a PDF or Markdown file to the shelf and refresh INDEX.md.

  • .pdf is converted to Markdown (pymupdf4llm by default; pass quality='high' to use marker-pdf).

  • Documents larger than 50 KB with multiple H2 headings are split into one file per section (turn this off with split=False).

  • INDEX.md is regenerated automatically. The caller still owns the git commit / push step.

docshelf_rebuild_indexA

Regenerate INDEX.md from the current on-disk shelf state.

Useful after manual edits to docs/ or .docshelf.json.

docshelf_searchA

Plain-text search across every Markdown file in the shelf.

Tokens are space-split; each must appear (case-insensitive) for a hit to count. Results include the relative path, a 200-char snippet, and — if a GitHub remote is configured — the raw URL so the model can fetch the matching file directly.

docshelf_list_documentsA

List documents grouped by category.

Pass a category to filter; omit it to list everything.

docshelf_convert_pdfA

Standalone PDF → Markdown conversion (no shelf, no INDEX update).

Use when you want the converted file but don't yet want to commit it to a shelf. Optionally splits the result by H2.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ignatenkofi/docshelf-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server