MewCP Google Gemini MCP Server
Gehosteter, zustandsloser und mandantenfähiger Gemini MCP-Server ermöglicht KI-Assistenten den Zugriff auf multimodale KI-Funktionen, Inhaltsgenerierung und Reasoning-Workflows über Google Gemini.
Dokumentation
Access Google's most capable AI models through a single MCP tool.
A Model Context Protocol (MCP) server that exposes Google Gemini's API for generating text using state-of-the-art large language models.
Overview
The mewcp-gemini MCP Server provides direct access to Google's Gemini LLMs:
- Generate high-quality text responses from natural language prompts
- Choose between fast and capable Gemini model variants
- Integrate Gemini's reasoning into any MCP-compatible AI workflow
Perfect for:
- AI agents that need to delegate subtasks to a powerful LLM
- Generating summaries, translations, code, or creative content
- Augmenting workflows with Gemini's reasoning and language capabilities
Tools
generate_text — Generate text using Gemini LLM
Generate text using Gemini LLM
Inputs:
- `query` (string, required) — Required. Natural language prompt to send to Gemini. Any text is accepted; no length limit is enforced by this tool.
- `model` (string, optional, default: gemini-2.5-flash) — Optional. Gemini model name, e.g., 'gemini-2.5-flash' or 'gemini-2.5-pro'. Defaults to 'gemini-2.5-flash'.
Output data schema:
{
prompt: string;
response: string;
}
API Parameters Reference
Response Envelope
Every tool returns the same top-level envelope. Only data varies per tool.
// Success
{
"success": true,
"statusCode": 200,
"retriable": false,
"retry_after_seconds": null,
"error": null,
"data": { ... }
}
// Error
{
"success": false,
"statusCode": 400,
"retriable": false,
"retry_after_seconds": null,
"error": { "code": "{ERROR_CODE}", "message": "{description}", "details": {} },
"data": null
}
retriable—truewhen it is safe to retry (rate limit, network error, 503).falsefor validation and auth errors.retry_after_seconds— seconds to wait before retrying; present only whenretriableistrueand the upstream specifies a delay.error.code— machine-readable string:VALIDATION_ERROR,AUTH_ERROR,UPSTREAM_ERROR,SERVER_ERROR.
Getting Your Gemini API Key
Steps
- Go to Google AI Studio API Keys
- Sign in with your Google account and navigate to the API keys section
- Click Create API Key
- Copy the generated key — you will only see it once
Troubleshooting
Missing or Invalid Headers
- Cause: API key not provided in request headers or incorrect format
- Solution:
- Verify
Authorization: Bearer YOUR_API_KEYandX-Mewcp-Credential-Id: CREDENTIAL-IDheaders are present - Check API key is active in your MewCP account
- Verify
Insufficient Credits
- Cause: API calls have exceeded your request limits
- Solution:
- Check credit usage in your Curious Layer dashboard
- Upgrade to a paid plan or add credits for higher limits
- Contact support for credit adjustments
Credential Not Connected
- Cause: No Gemini credential linked to your account
- Solution:
- Go to Credentials in your MewCP dashboard
- Add your API key (static)
- Retry the request with the correct
X-Mewcp-Credential-Idheader
Malformed Request Payload
- Cause: JSON payload is invalid or missing required fields
- Solution:
- Validate JSON syntax before sending
- Ensure all required tool parameters are included
- Check parameter types match expected values
Server Not Found
- Cause: Incorrect server name in the API endpoint
- Solution:
- Verify endpoint format:
mewcp-gemini/mcp/generate_text - Use correct server name from documentation
- Check available servers in your Curious Layer account
- Verify endpoint format:
Gemini API Error
- Cause: Upstream Gemini API returned an error
- Solution:
- Check Gemini service status at Google Status Page
- Verify your credential has the required permissions
- Review the error message for specific details
Resources
- Gemini API Documentation — Official API reference
- Gemini API Reference — Complete endpoint reference
- FastMCP Docs — FastMCP specification
- FastMCP Credentials — FastMCP Credentials package for credential handling