Skip to main content
Glama
xumingjun5208

Gemini MCP Server

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
GEMINI_API_KEYNoOptional API key
GEMINI_API_BASE_URLNoAIStudioProxyAPI endpointhttp://127.0.0.1:2048
GEMINI_PROJECT_ROOTNoRoot directory for file resolution$PWD

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

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
gemini_chatA
Send a message to Google Gemini and get a response.

Args:
    params (GeminiChatInput): Chat parameters including:
        - prompt (str): The prompt to send
        - file (Optional[list[str]]): Files to include (text, code, images)
        - session_id (Optional[str]): Session ID for multi-turn chat, use 'last' for recent
        - model (Optional[str]): Override model selection
        - system_prompt (Optional[str]): System context
        - temperature (Optional[float]): Creativity (0.0-2.0)
        - max_tokens (Optional[int]): Max response length
        - response_format: Output format - 'markdown' or 'json'

Returns:
    str: Response with SESSION_ID for continuation.

Examples:
    - Simple: prompt="What is AI?"
    - With file: prompt="Review", file=["main.py"]
    - With image: prompt="Describe", file=["photo.jpg"]
    - Continue: prompt="Tell me more", session_id="last"
gemini_list_modelsB

List available Gemini models.

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/xumingjun5208/aistudio-gemini-mcp'

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