gemini-diagram-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| HOST | No | HTTP server bind host | 0.0.0.0 |
| PORT | No | HTTP server bind port | 3000 |
| OUTPUT_DIR | No | Output directory for generated images | ./data/out |
| OIDC_ISSUER | No | OIDC issuer URL (required for oidc mode) | |
| ALLOWED_HOSTS | No | Comma-separated allowed host headers | |
| INLINE_IMAGES | No | Include base64 image data in tool responses | 0 |
| MCP_AUTH_MODE | No | Auth mode: token, oidc, none | token |
| OIDC_AUDIENCE | No | Expected token audience(s) | |
| OIDC_JWKS_URI | No | Override JWKS URI (skips discovery) | |
| GOOGLE_API_KEY | No | Backward-compatible alias | |
| MCP_AUTH_TOKEN | No | Static bearer token(s) | |
| MCP_AUTH_TOKENS | No | Comma-separated multiple tokens | |
| PUBLIC_BASE_URL | No | Base URL for download links | http://localhost:$PORT |
| MCP_MAX_SESSIONS | No | Maximum concurrent sessions | 100 |
| VERTEX_AI_API_KEY | No | Vertex AI API key (preferred) | |
| GOOGLE_CLOUD_API_KEY | No | Backward-compatible alias | |
| MCP_ALLOW_QUERY_TOKEN | No | Allow ?token=... query param auth | 1 (token mode) |
| VERTEX_AI_IMAGE_MODEL | No | Model for image generation | gemini-3-pro-image-preview |
| MCP_SESSION_TIMEOUT_MIN | No | Session timeout in minutes | 30 |
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
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| generate_imageA | Generate a diagram, chart, or visualization using Gemini. Intelligently detects type from prompt and asks clarifying questions when uncertain. Supports: chart, comparison, flow, architecture, timeline, hierarchy, matrix, hero, visualization. |
| refine_imageA | Refine the last generated image with modifications |
| prepare_imageA | Get guidance before generating an image. Call this FIRST to understand supported parameters, get prompt recommendations, and receive a polished prompt. This avoids rejected generations and wasted API calls. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/arunsanna/gemini-diagram-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server