Back to MCP directory
publicPublicdnsLocal runtime

grok2-image-mcp-server

基于MCP协议的Grok-2图像生成服务

article

README

🚀 Grok2 图像 MCP 服务器

Grok2 图像 MCP 服务器是一个基于模型上下文协议 (MCP) 的图像生成服务。它允许聊天助手借助 MCP 协议,使用 Grok-2 模型生成图像,为图像生成应用提供了便捷的解决方案。

🚀 快速开始

Grok2 图像 MCP 服务器是基于模型上下文协议 (MCP) 构建的服务,可让聊天助手通过 MCP 协议调用 Grok-2 模型生成图像。

📦 安装指南

使用 npx(推荐)

你可以使用以下命令快速安装并启动服务:

npx -y grok2-image-mcp-server

同时,你可以通过以下配置文件进行更详细的设置:

{
    "mcpServers": {
        "grok2_image": {
            "command": "npx",
            "args": [
                "grok2-image-mcp-server"
            ],
            "env": {
                "XAIAPI_KEY": "xAI Key",
                "XAIAPI_BASE_URL": "可选,例如:https://api.proxy.com/xai/v1"
            }
        }
    }
}

📄 许可证

本项目采用 MIT 许可证。

help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client