Skip to main content
Glama

Modal MCP Server

by smehmood

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
PUBMED_EMAILYesYour email address (required by NCBI)
PUBMED_API_KEYNoOptional API key for higher rate limits

Schema

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Tools

Functions exposed to the LLM to take actions

NameDescription
deploy_modal_app
Deploy a Modal application using the provided parameters. Args: absolute_path_to_app: The absolute path to the Modal application to deploy. Returns: A dictionary containing deployment results. Raises: Exception: If deployment fails for any reason.
list_modal_volumes
List all Modal volumes using the Modal CLI with JSON output. Returns: A dictionary containing the parsed JSON output of the Modal volumes list.
list_modal_volume_contents
List files and directories in a Modal volume. Args: volume_name: Name of the Modal volume to list contents from. path: Path within the volume to list contents from. Defaults to root ("/"). Returns: A dictionary containing the parsed JSON output of the volume contents.
copy_modal_volume_files
Copy files within a Modal volume. Can copy a source file to a destination file or multiple source files to a destination directory. Args: volume_name: Name of the Modal volume to perform copy operation in. paths: List of paths for the copy operation. The last path is the destination, all others are sources. For example: ["source1.txt", "source2.txt", "dest_dir/"] Returns: A dictionary containing the result of the copy operation. Raises: Exception: If the copy operation fails for any reason.
remove_modal_volume_file
Delete a file or directory from a Modal volume. Args: volume_name: Name of the Modal volume to delete from. remote_path: Path to the file or directory to delete. recursive: If True, delete directories recursively. Required for deleting directories. Returns: A dictionary containing the result of the delete operation. Raises: Exception: If the delete operation fails for any reason.
put_modal_volume_file
Upload a file or directory to a Modal volume. Args: volume_name: Name of the Modal volume to upload to. local_path: Path to the local file or directory to upload. remote_path: Path in the volume to upload to. Defaults to root ("/"). If ending with "/", it's treated as a directory and the file keeps its name. force: If True, overwrite existing files. Defaults to False. Returns: A dictionary containing the result of the upload operation. Raises: Exception: If the upload operation fails for any reason.
get_modal_volume_file
Download files from a Modal volume. Args: volume_name: Name of the Modal volume to download from. remote_path: Path to the file or directory in the volume to download. local_destination: Local path to save the downloaded file(s). Defaults to current directory. Use "-" to write file contents to stdout. force: If True, overwrite existing files. Defaults to False. Returns: A dictionary containing the result of the download operation. Raises: Exception: If the download operation fails for any reason.

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/smehmood/modal-mcp-server'

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