Skip to main content
Glama
dakrin

Gemini MCP Server

by dakrin

Gemini MCP Server

Model Context Protocol (MCP) server implementation that enables Claude Desktop to interact with Google's Gemini 2.5 Pro Experimental AI model.

Features

  • Full MCP protocol support

  • Google Gemini 2.5 Pro Experimental model access

  • Secure API key handling

  • Google Search integration (optional)

  • Token usage reporting

  • TypeScript implementation

Related MCP server: MCP Gemini Server

Available Tools

The MCP server provides the following tools:

  1. generateWithGemini - Generate content with Google Gemini 2.5 Pro Experimental

    • Parameters:

      • prompt (string, required): The prompt to send to Gemini

      • temperature (number, optional): Temperature setting (0.0 to 1.0)

      • maxTokens (number, optional): Maximum output tokens

      • safeMode (boolean, optional): Enable safe mode for sensitive topics

      • useSearch (boolean, optional): Enable Google Search grounding tool

  2. getModelInfo - Get information about the Gemini model being used

Common Issues

  1. Connection Issues

    • Check that you have a valid API key

Security

  • API keys are handled via environment variables only

  • No sensitive data is logged or stored

Available Tools

2 tools
generateWithGeminiC

Generate content with Gemini 2.5 Pro Experimental (beta API)

ParametersJSON Schema
NameRequiredDescriptionDefault
promptYesThe prompt to send to Gemini
temperatureNoTemperature (0.0 to 1.0)
maxTokensNoMaximum output tokens
safeModeNoEnable safe mode for sensitive topics
useSearchNoEnable Google Search grounding tool

TDQS

C2.6/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries full burden for behavioral disclosure. It mentions 'beta API' which hints at potential instability, but doesn't describe rate limits, authentication requirements, cost implications, response format, or error behavior. For a generative AI tool with no annotation coverage, this leaves significant gaps in understanding how it behaves.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence that gets straight to the point. It's appropriately sized for a tool with good schema documentation, though it could potentially be more front-loaded with key usage information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a generative AI tool with no annotations and no output schema, the description is insufficient. It doesn't explain what the tool returns, error conditions, rate limits, or important behavioral characteristics. The 'beta API' mention provides some context but doesn't compensate for the lack of structured information about this complex tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents all 5 parameters thoroughly. The description adds no additional parameter information beyond what's in the schema. According to guidelines, when schema coverage is high (>80%), the baseline is 3 even with no param info in the description.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states the action ('Generate content') and specifies the model ('Gemini 2.5 Pro Experimental'), but it's somewhat vague about what type of content is generated (text, code, etc.) and doesn't clearly differentiate from the sibling tool 'getModelInfo'. The description provides basic purpose but lacks specificity about the resource or output.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus the sibling 'getModelInfo' or any alternatives. It mentions it's a 'beta API' which implies potential instability, but doesn't give explicit when/when-not instructions or prerequisites for usage.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

getModelInfoB

Get information about the Gemini model being used

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

TDQS

B3.2/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries full burden for behavioral disclosure. While 'Get information' implies a read-only operation, it doesn't specify what kind of information is returned, whether there are rate limits, authentication requirements, or any other behavioral characteristics. The description is minimal and lacks operational context.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence that gets straight to the point with no wasted words. It's appropriately sized for a simple tool with no parameters and effectively communicates the core purpose.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a zero-parameter tool with no output schema, the description is minimally adequate but lacks important context. It doesn't explain what information about the model is returned, the format of the response, or how this information might be useful to an agent. The absence of annotations means the description should provide more operational guidance.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The tool has zero parameters with 100% schema description coverage, so the baseline is 4. The description appropriately doesn't discuss parameters since none exist, which is correct for this tool configuration.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action ('Get information') and the target resource ('Gemini model being used'), making the purpose immediately understandable. However, it doesn't distinguish this from its sibling tool 'generateWithGemini' which likely generates content rather than retrieving model metadata.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives. There's no mention of when this information would be needed, what context it applies to, or how it differs from the sibling 'generateWithGemini' tool.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

TDQS

B3/5.0
Disambiguation5/5

The two tools have completely distinct purposes: generateWithGemini is for content generation, while getModelInfo is for retrieving model metadata. There is no overlap in functionality, making it impossible to confuse them.

Naming Consistency4/5

Both tools use camelCase naming, which is consistent. However, generateWithGemini uses a verb+preposition+noun pattern, while getModelInfo uses verb+noun, creating a minor deviation in structure.

Tool Count3/5

With only 2 tools, the server feels thin for a Gemini API server, as it lacks operations like listing models, managing conversations, or handling multimodal inputs. The count is borderline for the apparent scope of interacting with a generative AI model.

Completeness2/5

The tool surface is severely incomplete for a Gemini API server. It only covers content generation and model info, missing essential operations such as chat/completion management, file uploads for multimodal inputs, or configuration settings, which will likely cause agent failures in complex workflows.

Maintenance

ActivityInactive
ResponsivenessSyncing

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • F
    license
    Not graded
    quality
    D
    maintenance
    A server implementing the Model Context Protocol that enables AI assistants like Claude to interact with Google's Gemini API for text generation, text analysis, and chat conversations.
  • A
    license
    Not graded
    quality
    D
    maintenance
    A Model Context Protocol (MCP) server implementation for the Google Gemini language model. This server allows Claude Desktop users to access the powerful reasoning capabilities of Gemini-2.0-flash-thinking-exp-01-21 model.
    1
    MIT
  • F
    license
    Not graded
    quality
    D
    maintenance
    A Model Context Protocol server that gives Claude access to Google's Gemini 2.5 Pro for extended thinking, code analysis, and problem-solving with a massive context window.
    11,721

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

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