Skip to main content
Glama
SanderCokart

Cloudreve MCP Server

by SanderCokart

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
CLOUDREVE_SCOPESNoSpace-separated scopes
CLOUDREVE_BASE_URLYesYour Cloudreve site, e.g. https://cloud.example.com
CLOUDREVE_CLIENT_IDYesOAuth Client ID
CLOUDREVE_CACHE_ROOTNoLocal cache root
CLOUDREVE_TOKEN_STORENoPath to tokens JSON (mode 0600)
CLOUDREVE_REDIRECT_URINoDefault http://127.0.0.1:53682/callback
CLOUDREVE_AUTH_ENDPOINTNoAuthorization endpoint (default: {BASE}/session/authorize)
CLOUDREVE_CLIENT_SECRETYesOAuth Client Secret
CLOUDREVE_DOWNLOAD_ROOTNoLocal download root
CLOUDREVE_TOKEN_ENDPOINTNoToken endpoint (default: {BASE}/api/v4/session/oauth/token)
CLOUDREVE_REFRESH_ENDPOINTNoRefresh endpoint (default: {BASE}/api/v4/session/token/refresh)
CLOUDREVE_USERINFO_ENDPOINTNoUser-info endpoint (default: {BASE}/api/v4/session/oauth/userinfo)

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
authorizeA

Start Cloudreve v4 OAuth (authorization code + PKCE). Opens a browser and waits for the local callback. Requires CLOUDREVE_CLIENT_ID and CLOUDREVE_CLIENT_SECRET.

auth_statusA

Show whether this MCP has a valid Cloudreve OAuth token stored locally.

logoutA

Clear locally stored Cloudreve OAuth tokens.

list_filesA

List files and folders under a Cloudreve path or File URI (default /).

get_file_idB

Resolve a remote path to its Cloudreve file/folder id.

get_file_propertiesC

Get file/folder properties by path, File URI, or id.

get_download_urlB

Get a temporary download URL for a remote file.

download_fileA

Download a remote file into the configured download root (default local app data). local_path is relative to that root.

create_directoryC

Create a remote directory.

rename_fileB

Rename a remote file or directory.

move_fileB

Move a remote file/folder into a destination directory.

copy_fileC

Copy a remote file/folder into a destination directory.

delete_fileA

Delete remote files/folders (soft-delete to trash by default).

upload_fileA

Upload a local file to Cloudreve. remote_path must include the filename (e.g. /docs/report.pdf).

get_source_urlB

Create/get a permanent-ish direct (source) link for a file.

get_share_urlC

Create a share link for a file or folder.

cache_listA

List files in the local MCP cache directory.

cache_write_textC

Write a text file into the local MCP cache.

cache_presign_urlB

Create a short-lived signed local_uri for a cache file (HMAC). Useful for verifying cache access.

cloudreve_download_to_cacheB

Download a Cloudreve file into the local MCP cache.

cloudreve_upload_from_cacheA

Upload a file from the local MCP cache to Cloudreve.

to_file_uriC

Convert a path to a Cloudreve File URI (cloudreve://my/...).

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/SanderCokart/cloudreve-mcp'

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