Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
XHS_BGM_DIRNo背景音乐目录。默认值取决于操作系统,同 XHS_OUTPUT_DIR。
XHS_OCR_PSMNoOCR 分割模式。4
XHS_OCR_LANGNoOCR 识别语言。chi_sim+eng
XHS_TEMP_DIRNo临时文件目录。默认值取决于操作系统,同 XHS_OUTPUT_DIR。
XHS_FFMPEG_BINNoFFmpeg 可执行文件的绝对路径。默认使用系统 PATH 中的 ffmpeg。
XHS_OUTPUT_DIRNo输出视频目录。默认值取决于操作系统:macOS 为 ~/Library/Application Support/xhs-video-mcp,Linux 为 ${XDG_DATA_HOME:-~/.local/share}/xhs-video-mcp,Windows 为 %LOCALAPPDATA%/xhs-video-mcp。
XHS_IMAGE_FORMATNo图片格式,可选 'jpeg'、'webp'、'png' 或 'auto'。
XHS_TESSERACT_BINNoTesseract 可执行文件的绝对路径。默认使用系统 PATH 中的 tesseract。
XHS_MIN_IMAGE_AREANo回退解析时的最小图片面积。350000
XHS_IMAGE_SOURCE_MODENo图片来源模式,可选 'ci' 或 'auto'。
XHS_MIN_IMAGE_SHORT_SIDENo回退解析时的最小图片短边。700

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

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

Tools

Functions exposed to the LLM to take actions

NameDescription
create_video_from_xhsA

Create a short video from a Xiaohongshu post.

Downloads images from the XHS post, adds background music, and generates a vertical (9:16) video suitable for TikTok/Reels.

Args: url: Xiaohongshu post URL (supports various formats including share links) bgm: BGM file name from bgm folder, or "random" to pick randomly. Set to "none" to create video without music. duration_per_image: How many seconds each image should be displayed (default: 3) style_prompt: Natural-language style instructions for image annotation. Example: 在第一张图里把"马云"蓝色高亮并红笔圈出来

Returns: A dict containing: - video_path: Full path to the generated video file - images_count: Number of images in the video - duration: Total video duration in seconds - bgm_used: Name of the BGM file used (or null if none) - title: Title of the original XHS post - style_report: Style parsing/OCR diagnostics (or null when not used)

list_bgm_filesA

List all available BGM files in the music folder.

Returns: A dict containing: - bgm_files: List of available BGM file names - bgm_dir: Path to the BGM directory

get_video_configA

Get current video generation configuration.

Returns: A dict with current settings for video resolution, fps, etc.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A4.2/5.0

Scored across 3 tools

Disambiguation5/5

Each tool targets a distinct concern: creating a video, listing BGM assets, and reading configuration. There is no overlap between these three operations, so an agent can clearly tell them apart.

Naming Consistency5/5

All tool names follow a consistent verb_noun pattern with snake_case (create_video_from_xhs, list_bgm_files, get_video_config). The naming is predictable and uniform.

Tool Count5/5

With 3 tools, the server is tightly scoped to its purpose of generating videos from Xiaohongshu posts. Each tool is necessary and there are no redundant or extraneous entries.

Completeness4/5

The core workflow is covered: create a video, list available BGM, and inspect configuration. A minor gap is the lack of a setter for video configuration, but this does not prevent the main use case from working.

Maintenance

ActivityMaintained
ResponsivenessNo issues