Skip to main content
Glama

Gemini MCP Server for Claude Desktop

gemini-upload-file

Upload files up to 2GB to the Gemini File API for AI operations, manage file listings, retrievals, or deletions. Files persist for 48 hours, enabling efficient handling in Claude Desktop workflows.

Instructions

Upload files to Gemini File API (up to 2GB) for use in subsequent operations. Files persist for 48 hours.

Input Schema

NameRequiredDescriptionDefault
display_nameNoOptional display name for the file (defaults to filename)
file_nameNoFile name (for get/delete operations)
file_pathNoPath to the file to upload
operationYesOperation to perform: "upload", "list", "get", or "delete"
page_sizeNoNumber of files to list (for list operation, max 100)

Input Schema (JSON Schema)

{ "properties": { "display_name": { "description": "Optional display name for the file (defaults to filename)", "type": "string" }, "file_name": { "description": "File name (for get/delete operations)", "type": "string" }, "file_path": { "description": "Path to the file to upload", "type": "string" }, "operation": { "description": "Operation to perform: \"upload\", \"list\", \"get\", or \"delete\"", "enum": [ "upload", "list", "get", "delete" ], "type": "string" }, "page_size": { "description": "Number of files to list (for list operation, max 100)", "type": "number" } }, "required": [ "operation" ], "type": "object" }

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/Garblesnarff/gemini-mcp-server'

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