Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
METAROUTER_API_KEYYes必填,MetaRouter API Key
METAROUTER_TIMEOUTNo请求超时秒数,最小 30 秒300
METAROUTER_SAVE_DIRNo默认输出目录,必须位于根目录内
METAROUTER_INPUT_ROOTNo可选;设置后只允许读取该目录内的参考图片
METAROUTER_IMAGE_MODELNo常规生图模型gpt-image-2
METAROUTER_MAX_INPUT_MBNo单张本地输入图片的大小上限10
METAROUTER_SAVE_DIR_ROOTNoMCP 允许写入的根目录~/Pictures/MetaRouter
METAROUTER_IMAGE_PRO_MODELNo大尺寸自动使用的模型gpt-image-2-pro
METAROUTER_TRUSTED_IMAGE_HOSTSNo允许下载结果图片的 HTTPS 域名,逗号分隔metarouters.org

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
image_generateA

通过 MetaRouter 文生图。

Args: prompt: 图片描述,建议包含主体、构图、风格、光线以及禁止内容。 size: WxH,例如 1024x1024、1536x1024、2048x2048。宽高须为 8 的倍数。 model: 可选模型;留空默认 gpt-image-2,超大尺寸自动使用 gpt-image-2-pro。 n: 生成数量,1 到 4;高分辨率建议使用 1。 quality: 可选质量参数,留空使用后端默认。 output_dir: 可选保存目录,必须位于配置的安全输出根目录下。

image_editA

使用一张本地参考图,通过 MetaRouter 改图或图生图。

Args: image_path: 本地 PNG、JPEG 或 WebP 文件的绝对路径。 prompt: 编辑要求,应明确哪些内容保留、删除或修改。 size: 输出尺寸 WxH,宽高须为 8 的倍数。 model: 可选模型;留空自动选择。 quality: 可选质量参数。 output_dir: 可选保存目录,必须位于安全输出根目录下。

image_batch_editA

对多张本地图片逐张执行同一编辑指令,适合批量换背景或统一风格。

image_paths 最多 20 张;每张图片会产生一次独立的计费请求。

image_multi_referenceA

融合 2 到 10 张本地参考图,生成一张新图。

prompt 中应写明每张参考图分别提供哪些构图、配色、人物或产品特征。

server_infoA

返回当前 MetaRouter MCP 的安全运行配置,不返回完整 API Key。

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

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/cimicimi9090/mcp-pic-metarouters'

If you have feedback or need assistance with the MCP directory API, please join our Discord server