Skip to main content
Glama
Gemini Local MCP

Gemini Local MCP

by a820936422

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
OWNER_EMAILYesDefault account when GEMINI_ALLOWED_ACCOUNTS is not configured, e.g. alice@example.org.
PUBLIC_ORIGINYesPublic HTTPS origin, e.g. https://gateway.example.org. The MCP endpoint is this origin plus /mcp.
MCP_SERVER_NAMENoService name announced in the MCP handshake; defaults to local-files.local-files
GOOGLE_CLIENT_IDYesGoogle Web application client ID used by the gateway to verify Google identity.
GEMINI_MCP_SOURCENoDevelopment checkout path recorded by setup, used by the runtime gateway to protect private files and dependencies in the source directory.
GEMINI_ACCESS_MODENoAccess mode: restricted (default) or unrestricted.restricted
GEMINI_PI_ACCOUNTSNoEmail list authorized for Pi calls; default empty.[]
GEMINI_RESPONSE_KIBNoMaximum single tool response size in KiB; default 256, range 4-8192.256
GEMINI_FILE_COMMANDSNo1 enables run_file_command; default disabled.0
GEMINI_MCP_CLIENT_IDNoOptional client ID for Gemini manual client registration; must be set together with GEMINI_MCP_CLIENT_SECRET.
GOOGLE_CLIENT_SECRETYesGoogle Web application client secret used by the gateway to verify Google identity.
GEMINI_FOLDER_ALIASESNoJSON object mapping shared directory absolute paths to fixed aliases.{}
GEMINI_SCRIPT_ACCOUNTSNoEmail list authorized for offline scripts; default empty.[]
GEMINI_ALLOWED_ACCOUNTSNoEmail whitelist for accounts; falls back to OWNER_EMAIL when unset.
GEMINI_SHARED_DIRECTORYNoAbsolute path of the first shared directory; initially no directory is shared.
GEMINI_EXTRA_DIRECTORIESNoJSON string array of absolute paths for additional shared directories.[]
GEMINI_MCP_CLIENT_SECRETNoOptional client secret for Gemini manual client registration; must be set together with GEMINI_MCP_CLIENT_ID.
GEMINI_PROJECT_WORKSPACESNoJSON string array of absolute paths for project workspaces; must also be writable; default empty.[]
GEMINI_HOST_BROWSE_ACCOUNTSNoEmail list authorized for host read-only browsing; default empty.[]
GEMINI_WRITABLE_DIRECTORIESNoJSON string array of absolute paths for writable directories; default empty.[]
GEMINI_UNRESTRICTED_READ_ONLYNoOnly applies in unrestricted mode; 1 for read-only, 0 (default) allows read/write.0

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

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