What API credentials are required?
You must provide `SCENARIO_API_KEY` and `SCENARIO_API_SECRET` in a `.env` file. An optional `SCENARIO_MODEL_ID` can be set as the default model for image generation.
@pasie15
基本信息
A Model Context Protocol (MCP) server for the Scenario AI API
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"scenario-ai-mcp-server": {
"command": "python",
"args": [
"src/server.py"
]
}
}
}`prompt` (required): The text prompt describing the image to generate
`asset_id` (required): The asset ID of the image to process
The Scenario AI MCP Server is a Model Context Protocol server that integrates with the Scenario AI platform (https://app.scenario.com/). It enables developers to generate images from text prompts and remove backgrounds from images programmatically via MCP tools.
Clone the repository, install dependencies from src/requirements.txt, set up a .env file with your Scenario AI API credentials (SCENARIO_API_KEY, SCENARIO_API_SECRET, and optionally SCENARIO_MODEL_ID), and run python src/server.py or use the provided start scripts in the scripts/ folder. The server exposes MCP tools (generate_image, remove_background) and resources (status://info, job://{job_id}, asset://{asset_id}) that can be used with a compatible client like Roo-Cline.
You must provide `SCENARIO_API_KEY` and `SCENARIO_API_SECRET` in a `.env` file. An optional `SCENARIO_MODEL_ID` can be set as the default model for image generation.
All dependencies are listed in `src/requirements.txt` and can be installed with `pip install -r src/requirements.txt`. Additionally, the MCP SDK must be installed (`pip install mcp`).
Images are stored on the Scenario AI platform. The server provides asset IDs and job IDs to retrieve them via the API.
The server exposes `generate_image` (with parameters `prompt`, `model_id`, `negative_prompt`, `num_samples`) and `remove_background` (requires `asset_id`).
Yes, `model_id` is optional for `generate_image`; if omitted, it defaults to the value in the environment variable `SCENARIO_MODEL_ID`. If that is also unset, the API may require a valid model ID.

Connect your AI assistant to your own YOUB endurance training account. Read recorded activities with full analysis, planned sessions, race goals, wellness (HRV, sleep, resting HR) and your athletic profile. Create or mov

Model Context Protocol Servers

Yuppsy MCP: build and publish real estate websites from your AI assistant. Yuppsy lets your AI assistant create live websites for real estate agents and individual property listings. You don't need a designer or any code
YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context
🚀 The fast, Pythonic way to build MCP servers and clients.
评论