Scenario.com MCP服务器
MCP服务器提供对Scenario.com生成AI API的访问-文本到图像、图像到图像、模型训练、放大和70+其他工具。
安装
添加到MCP客户端配置中:
{
"mcpServers": {
"scenario": {
"command": "npx",
"args": ["-y", "scenario.com-mcp-server"],
"env": {
"SCENARIO_API_KEY": "your_api_key_here",
"SCENARIO_API_SECRET": "your_api_secret_here"
}
}
}
}从获取您的API证书 https://app.scenario.com/ → 设置→ API密钥
替代方案:基于会话的凭据
不想使用env变量?只需使用:
{
"mcpServers": {
"scenario": {
"command": "npx",
"args": ["-y", "scenario.com-mcp-server"]
}
}
}然后在您的MCP客户端中:
Use set-credentials with API key api_xxx and secret yyy可用工具
设置:
set-credentials-为会话配置API访问权限get-credentials-status-检查凭证状态
图像生成:
post-txt2img-inferences-从文本生成post-img2img-inferences-从图像生成post-controlnet-inferences-ControlNet生成post-inpaint-inferences-绘画post-upscale-inferences-高档图像post-remove-background-inferences-删除背景
资产管理:
get-assets-列出资产delete-asset-删除资产get-models-列出型号
模型培训:
post-models-创建模型put-models-train-by-model-id-列车模型post-models-training-images-by-model-id-添加训练图像
…以及60多种工具。使用 list_tools 看到一切。
许可证
ISC
