API易 MCP Server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| GEMINI_MODEL | No | 默认模型 | gemini-3.1-pro-preview-thinking |
| APIYI_API_KEY | Yes | API易 密钥 (必需) | |
| APIYI_BASE_URL | No | API易 端点 | https://api.apiyi.com |
| GEMINI_API_KEY | No | 备用:Google AI Studio 密钥 | |
| GEMINI_TIMEOUT | No | 超时时间 (ms) | 300000 |
| GEMINI_BASE_URL | No | 备用:自定义端点 | |
| GEMINI_MAX_FILES | No | 最大文件数 | 10 |
| GEMINI_TEMPERATURE | No | 温度参数 | 0.2 |
| GEMINI_MEDIA_RESOLUTION | No | 媒体分辨率 (LOW/MEDIUM/HIGH) | MEDIUM |
| GEMINI_MAX_OUTPUT_TOKENS | No | 最大输出 tokens | 8192 |
| GEMINI_MAX_TOTAL_FILE_SIZE | No | 最大总文件大小 (MB) | 50 |
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 | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| generate_contentA | Generate content using Gemini with optional file inputs, code execution, and Google search. Supports multiple files: images (JPG, PNG, GIF, WebP, SVG, BMP, TIFF), video (MP4, AVI, MOV, WebM, FLV, MPG, WMV), audio (MP3, WAV, AIFF, AAC, OGG, FLAC), documents (PDF), and text files (TXT, MD, JSON, XML, CSV, HTML). MIME type is auto-detected from file extension. Example usage: PDF to Markdown conversion: With Google Search: With Code Execution: Media Resolution Optimization (save tokens): |
| generate_content_batchA | Generate multiple contents concurrently using Gemini. This tool allows you to send multiple requests in parallel for better performance. Each request in the batch requires a unique 'id' field to identify results. All other parameters are the same as generate_content. Example usage: The response includes success/failure status for each request: |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 2 tools
The two tools have clearly distinct purposes: one for single content generation, one for batch processing. No overlap or ambiguity.
Both tools follow the exact same prefix 'generate_content', with a descriptive suffix '_batch' for the batch variant. Perfectly consistent pattern.
With only two tools, the server is minimal but scoped appropriately for Gemini content generation. Could potentially include a model listing tool, but not necessary.
The tool set covers the core functionality (single and batch generation). Missing optional features like model selection or streaming, but not gaps that prevent basic usage.