Grok AI 图像生成 MCP 服务器
AI图像生成MCP服务器
连接到 xAI/Grok 图像生成 API 的服务器 使用延迟 API 密钥初始化实现正确的错误处理 增加了对多图像生成的支持(最多 10 个图像) 增加了对不同响应格式(URL 或 base64 JSON)的支持 Docker 支持:
添加了 Dockerfile 来容器化 MCP 服务器,使用可在运行时覆盖的虚拟 API 密钥配置 Dockerfile,设置适当的层缓存以实现高效构建,可用的 MCP 工具:
generate_image:使用 Grok-2-image 模型生成图像 set_api_key:如果未通过环境变量提供,则在运行时设置 xAI API 密钥 如何使用 您现在可以使用以下提示生成图像:
“生成一只穿着太空服的猫的图像” “创建一幅未来城市夜景的图片” MCP 服务器已在您的 Claude 桌面应用程序中配置,并且该实现可以优雅地处理 API 密钥管理,允许服务器即使在没有最初设置 API 密钥的情况下启动。
如果您想在 Docker 中运行服务器,您可以使用以下命令构建并运行它:
cd /Users/8bit/Documents/Cline/MCP/ai-image-generator docker build -t grokart . docker run -e XAI_API_KEY=你的api-key -p 8080:8080 grokart
This server cannot be installed
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
连接到 xAI/Grok 图像生成 API 的服务器,允许用户从文本提示生成图像,支持多种图像生成和不同的响应格式。
Related MCP Servers
- AsecurityFlicenseAqualityA Model Context Protocol server that provides image generation capabilities using the Ideogram API, allowing users to create images from text prompts with customizable parameters.Last updated -1973TypeScript
- -securityFlicense-qualityAn MCP server that allows users to generate, edit, and create variations of images through OpenAI's DALL-E API, supporting both DALL-E 2 and DALL-E 3 models.Last updated -2TypeScript
- -security-license-qualityA TypeScript-based MCP server that lets users generate images using OpenAI's dall-e-3 model by providing a prompt and image name.Last updated -1
- -securityFlicense-qualityAn MCP image generation server based on the Flux Schnell model that provides API access for generating images from text prompts with customizable dimensions and seeds.Last updated -1Python