Skip to main content
Glama
5p00kyy

Seafile MCP Server

by 5p00kyy

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
SEAFILE_REPO_IDNoLibrary UUID for library-specific authentication
SEAFILE_TIMEOUTNoRequest timeout in seconds (default: 30)30
SEAFILE_PASSWORDNoYour password for account-based authentication
SEAFILE_USERNAMENoYour email for account-based authentication
SEAFILE_REPO_TOKENNoAPI token from library settings for library-specific authentication
SEAFILE_SERVER_URLYesYour Seafile server URL
SEAFILE_MAX_READ_SIZENoMax file size to read (default: 1MB)1MB
SEAFILE_MAX_WRITE_SIZENoMax upload size (default: 10MB)10MB

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
seafile_list_libraries

List all accessible Seafile libraries.

Returns a list of all libraries (repositories) the authenticated user has access to. Note: This operation requires account-based authentication and may not work with repository token authentication. Returns: List of Library objects containing library metadata.
seafile_get_library_info

Get information about a specific library.

Args: repo_id: The unique identifier of the library. Returns: Library object containing detailed library metadata.
seafile_list_directory

List files and folders in a directory.

Args: repo_id: The library/repository ID. path: The directory path to list (default: root "/"). Returns: List of DirEntry objects for files and subdirectories.
seafile_create_directory

Create a new directory in a Seafile library.

Args: repo_id: The library/repository ID. path: The full path of the directory to create. Returns: OperationResult indicating success or failure.
seafile_read_file

Read a file from Seafile.

For text files within the size limit, returns the file content directly. For binary files or files exceeding the size limit, returns a download URL. Args: repo_id: The library/repository ID. path: The path to the file within the library. Returns: FileContent with either text content or a download URL.
seafile_get_file_info

Get metadata about a file.

Args: repo_id: The library/repository ID. path: The path to the file within the library. Returns: FileInfo containing file metadata including size, mtime, and MIME type.
seafile_get_download_link

Get a temporary download URL for a file.

The download URL is typically valid for a limited time (usually 1 hour). Args: repo_id: The library/repository ID. path: The path to the file within the library. Returns: Temporary download URL string.
seafile_write_file

Create or update a text file in Seafile.

If the file exists, it will be overwritten. If it doesn't exist, it will be created. Parent directories must exist. Args: repo_id: The library/repository ID. path: The path where the file should be written. content: The text content to write. Returns: OperationResult indicating success or failure.
seafile_upload_file

Upload a binary file to Seafile.

Use this for uploading binary files by providing the content as base64. For text files, prefer seafile_write_file instead. Args: repo_id: The library/repository ID. path: The path where the file should be uploaded. base64_content: The file content encoded as base64. Returns: OperationResult indicating success or failure.
seafile_delete

Delete a file or directory from Seafile.

Warning: This operation is irreversible. Deleted items may be recoverable from the library's trash for a limited time, depending on server settings. Args: repo_id: The library/repository ID. path: The path to the file or directory to delete. Returns: OperationResult indicating success or failure.
seafile_move

Move a file or directory within a Seafile library.

Args: repo_id: The library/repository ID. src_path: The current path of the file or directory. dst_path: The destination directory path. Returns: OperationResult indicating success or failure.
seafile_copy

Copy a file or directory within a Seafile library.

Args: repo_id: The library/repository ID. src_path: The path of the file or directory to copy. dst_path: The destination directory path. Returns: OperationResult indicating success or failure.
seafile_rename

Rename a file or directory in Seafile.

Args: repo_id: The library/repository ID. path: The current path of the file or directory. new_name: The new name (not a path, just the name). Returns: OperationResult indicating success or failure.
seafile_search

Search for files by name across Seafile libraries.

Searches file and folder names matching the query string. Note: Search functionality depends on server configuration and may not be available on all Seafile installations. Args: query: The search query string. repo_id: Optional library ID to limit search scope. Returns: List of dictionaries containing search results with file information.

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/5p00kyy/seafile-mcp'

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