Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
DB_NAMENoDefault database for mysql_query.
DB_USERNoDatabase user for mysql_query. Must be set explicitly (does not inherit REMOTE_USER).
FTP_HOSTNoFTP host, inherits REMOTE_HOST.inherits REMOTE_HOST
FTP_PORTNoFTP port.21
FTP_USERNoFTP user, inherits REMOTE_USER.inherits REMOTE_USER
SSH_HOSTNoSSH host, inherits REMOTE_HOST.inherits REMOTE_HOST
SSH_PORTNoSSH port.22
SSH_USERNoSSH user, inherits REMOTE_USER.inherits REMOTE_USER
DB_PASSWORDNoDatabase password. Not required; if unset, remote mysql client may use ~/.my.cnf.
REMOTE_HOSTNoShared host, used when a profile does not set its own.
REMOTE_USERNoShared user.
FTP_BASE_DIRNoBase directory for files tools on FTP. Inherits REMOTE_BASE_DIR, then SSH_BASE_DIR.
FTP_PASSWORDNoFTP password. If FTP_USER is set, must be set explicitly; otherwise inherits REMOTE_PASSWORD.
FTP_SECURITYNoFTP security mode: ftps, ftp, or ftps-implicit.ftps
MCP_ENV_FILENoPath to an alternate .env file. A leading ~ is expanded; relative paths resolve against the working directory.
SSH_ACTIVATENoRemote path to a script sourced before every command.
SSH_BASE_DIRNoBase directory for ssh_exec and mysql_query, and confinement for sftp files. Inherits REMOTE_BASE_DIR, then FTP_BASE_DIR.
SSH_PASSWORDNoSSH password. If SSH_USER is set, must be set explicitly; otherwise inherits REMOTE_PASSWORD.
FILE_TRANSPORTNoWhich profile serves the files tools: ftp or sftp.ftp if FTP profile configured, else sftp if SSH profile configured, else ftp
FTP_TIMEOUT_MSNoFTP timeout in milliseconds.30000
SSH_ALLOW_EXECNoMust be true for ssh_exec to be registered.false
SSH_MAX_OUTPUTNoCombined stdout+stderr byte cap per command.100000
SSH_PASSPHRASENoPassphrase for SSH_PRIVATE_KEY.
SSH_TIMEOUT_MSNoConnection and per-command timeout in milliseconds.120000
REMOTE_BASE_DIRNoShared base directory that remote paths are confined to. A leading ~ is expanded to the account's login directory.
REMOTE_PASSWORDNoShared secret. Only inherited by a profile with no *_USER of its own.
REMOTE_READONLYNoWhen true, blocks every write across file transfer, ssh_exec, and mysql_query.false
SSH_PRIVATE_KEYNoLocal path to a private key for SSH authentication.
MCP_CAPABILITIESNoComma-separated allowlist restricting which capabilities register tools (files, ssh, mysql).all configured capabilities
SSH_ALLOWED_CMDSNoComma-separated allowlist of program names ssh_exec may invoke. Presets: @basic, @node, @php, @mysql.@basic,@node,@mysql
REMOTE_ALLOW_DELETENoMust be true for file_delete to work.false
SSH_HOST_FINGERPRINTNoSHA-256 host key fingerprint to pin. Inherits REMOTE_HOST_FINGERPRINT. If unset, any host key is accepted (with a warning).
REMOTE_HOST_FINGERPRINTNoShared SSH host key fingerprint; inherited by SSH_HOST_FINGERPRINT.
FTP_TLS_REJECT_UNAUTHORIZEDNoSet false to accept self-signed certificates.true

Capabilities

Server capabilities have not been inspected yet.

Tools

Functions exposed to the LLM to take actions

NameDescription

No tools

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/Chris221/ftp-ssh-mcp'

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