Pixelle MCP: Convert ComfyUI workflows into MCP Tools with a single command, providing an MCP server and a Chainlit-based web UI.
Project description
๐จ Pixelle MCP - Omnimodal Agent Framework
English | ไธญๆ
โจ An AIGC solution based on the MCP protocol, seamlessly converting ComfyUI workflows into MCP tools with zero code, empowering LLM and ComfyUI integration.
https://github.com/user-attachments/assets/65422cef-96f9-44fe-a82b-6a124674c417
๐ Recent Updates
- โ 2025-08-12: Integrated the LiteLLM framework, adding multi-model support for Gemini, DeepSeek, Claude, Qwen, and more
๐ Features
- โ ๐ Full-modal Support: Supports TISV (Text, Image, Sound/Speech, Video) full-modal conversion and generation
- โ ๐งฉ ComfyUI Ecosystem: Server-side is built on ComfyUI, inheriting all capabilities from the open ComfyUI ecosystem
- โ ๐ง Zero-code Development: Defines and implements the Workflow-as-MCP Tool solution, enabling zero-code development and dynamic addition of new MCP Tools
- โ ๐๏ธ MCP Server: Server provides functionality based on the MCP protocol, supporting integration with any MCP client (including but not limited to Cursor, Claude Desktop, etc.)
- โ ๐ MCP Client: Client is developed based on the Chainlit framework, inheriting Chainlit's UI controls and supporting integration with more MCP Servers
- โ ๐ Flexible Deployment: Supports standalone deployment of Server-side only as MCP Server, or standalone deployment of Client-side only as MCP Client, or combined deployment
- โ โ๏ธ Unified Configuration: Uses YAML configuration scheme, one config file manages all services
- โ ๐ค Multi-LLM Support: Supports multiple mainstream LLMs, including OpenAI, Ollama, Gemini, DeepSeek, Claude, Qwen, and more
๐ Project Structure
- mcp-base: ๐ง Basic service, provides file storage and shared service capabilities
- mcp-client: ๐ MCP client, a web interface built on Chainlit
- mcp-server: ๐๏ธ MCP server, provides various AIGC tools and services
๐โโ๏ธ Quick Start
๐ฅ 1. Clone the Source Code & Configure Services
๐ฆ 1.1 Clone the Source Code
git clone https://github.com/AIDC-AI/Pixelle-MCP.git
cd Pixelle-MCP
โ๏ธ 1.2 Configure Services
The project uses a unified YAML configuration scheme:
# Copy the configuration example file
cp config.yml.example config.yml
# Edit configuration items as needed
๐ Detailed Configuration Instructions:
The configuration file contains three main sections: Basic Service, MCP Server, and MCP Client. Each section has detailed configuration item descriptions in config.yml.example.
๐ Configuration Checklist:
- โ
Copied
config.yml.exampletoconfig.yml - โ Configured ComfyUI service address (ensure ComfyUI is running)
- โ Configured at least one LLM model (OpenAI or Ollama)
- โ Port numbers are not occupied by other services (9001, 9002, 9003)
๐ง 2. Add MCP Tool (Optional)
This step is optional and only affects your Agent's capabilities. You can skip it if not needed for now.
The mcp-server/workflows directory contains a set of popular workflows by default. Run the following command to copy them to your mcp-server. When the service starts, they will be automatically converted into MCP Tools for LLM use.
Note: It is strongly recommended to test the workflow in your ComfyUI canvas before copying, to ensure smooth execution later.
cp -r pixelle/workflows/* pixelle/data/custom_workflows/
๐ 3. Start the Services
๐ฏ 3.1 Start with Docker (Recommended)
# Start all services
docker compose up -d
๐ ๏ธ 3.2 CLI Start (Recommended)
Requires uv environment.
Cross-platform CLI commands:
# Interactive mode (recommended for first-time users)
uv run pixelle
# Direct start in foreground
uv run pixelle start
# Start in background daemon mode
uv run pixelle start --daemon
# Force start (kill conflicting processes and start)
uv run pixelle start --force
# Combine options: background + force
uv run pixelle start --daemon --force
# Or use short form: uv run pixelle start -df
Service management:
# Check service status
uv run pixelle status
# Stop service
uv run pixelle stop
# View logs
uv run pixelle logs
# Follow logs in real-time
uv run pixelle logs --follow
๐ ๏ธ 3.3 Development Mode (Advanced)
For development purposes, you can also run the service directly:
# Install dependencies (only needed on first run or after updates)
uv sync
# Start service directly (equivalent to pixelle start)
uv run python -m pixelle.main
# Or run with development mode
uv run python -m pixelle.main --reload
Note: For production use, it's recommended to use the CLI commands above for better process management and logging.
๐ 4. Access the Services
After startup, you can access the Pixelle MCP service:
CLI Mode (Recommended)
- Web Interface: ๐ http://localhost:9004 (Chainlit Web UI, default username and password are both
dev, can be changed inauth.py) - MCP Endpoint: ๐ http://localhost:9004/pixelle/mcp (For MCP clients to connect)
Note: The default port is 9004, but you can configure it in your .env file with PORT=your_preferred_port.
Docker Mode
- Web Interface: ๐ http://localhost:9004
- MCP Endpoint: ๐ http://localhost:9004/pixelle/mcp
๐ ๏ธ Add Your Own MCP Tool
โก One workflow = One MCP Tool
๐ฏ 1. Add the Simplest MCP Tool
-
๐ Build a workflow in ComfyUI for image Gaussian blur (Get it here), then set the
LoadImagenode's title to$image.image!as shown below: -
๐ค Export it as an API format file and rename it to
i_blur.json. You can export it yourself or use our pre-exported version (Get it here) -
๐ Copy the exported API workflow file (must be API format), input it on the web page, and let the LLM add this Tool
-
โจ After sending, the LLM will automatically convert this workflow into an MCP Tool
-
๐จ Now, refresh the page and send any image to perform Gaussian blur processing via LLM
๐ 2. Add a Complex MCP Tool
The steps are the same as above, only the workflow part differs (Download workflow: UI format and API format)
๐ง ComfyUI Workflow Custom Specification
๐จ Workflow Format
The system supports ComfyUI workflows. Just design your workflow in the canvas and export it as API format. Use special syntax in node titles to define parameters and outputs.
๐ Parameter Definition Specification
In the ComfyUI canvas, double-click the node title to edit, and use the following DSL syntax to define parameters:
$<param_name>.[~]<field_name>[!][:<description>]
๐ Syntax Explanation:
param_name: The parameter name for the generated MCP tool function~: Optional, indicates URL parameter upload processing, returns relative pathfield_name: The corresponding input field in the node!: Indicates this parameter is requireddescription: Description of the parameter
๐ก Example:
Required parameter example:
- Set LoadImage node title to:
$image.image!:Input image URL - Meaning: Creates a required parameter named
image, mapped to the node'simagefield
URL upload processing example:
- Set any node title to:
$image.~image!:Input image URL - Meaning: Creates a required parameter named
image, system will automatically download URL and upload to ComfyUI, returns relative path
๐ Note:
LoadImage,VHS_LoadAudioUpload,VHS_LoadVideoand other nodes have built-in functionality, no need to add~marker
Optional parameter example:
- Set EmptyLatentImage node title to:
$width.width:Image width, default 512 - Meaning: Creates an optional parameter named
width, mapped to the node'swidthfield, default value is 512
๐ฏ Type Inference Rules
The system automatically infers parameter types based on the current value of the node field:
- ๐ข
int: Integer values (e.g. 512, 1024) - ๐
float: Floating-point values (e.g. 1.5, 3.14) - โ
bool: Boolean values (e.g. true, false) - ๐
str: String values (default type)
๐ค Output Definition Specification
๐ค Method 1: Auto-detect Output Nodes
The system will automatically detect the following common output nodes:
- ๐ผ๏ธ
SaveImage- Image save node - ๐ฌ
SaveVideo- Video save node - ๐
SaveAudio- Audio save node - ๐น
VHS_SaveVideo- VHS video save node - ๐ต
VHS_SaveAudio- VHS audio save node
๐ฏ Method 2: Manual Output Marking
Usually used for multiple outputs Use
$output.var_namein any node title to mark output:
- Set node title to:
$output.result - The system will use this node's output as the tool's return value
๐ Tool Description Configuration (Optional)
You can add a node titled MCP in the workflow to provide a tool description:
- Add a
String (Multiline)or similar text node (must have a single string property, and the node field should be one of: value, text, string) - Set the node title to:
MCP - Enter a detailed tool description in the value field
โ ๏ธ Important Notes
- ๐ Parameter Validation: Optional parameters (without !) must have default values set in the node
- ๐ Node Connections: Fields already connected to other nodes will not be parsed as parameters
- ๐ท๏ธ Tool Naming: Exported file name will be used as the tool name, use meaningful English names
- ๐ Detailed Descriptions: Provide detailed parameter descriptions for better user experience
- ๐ฏ Export Format: Must export as API format, do not export as UI format
๐ฌ Community
Scan the QR codes below to join our communities for latest updates and technical support:
| Discord Community | WeChat Group |
|---|---|
๐ค How to Contribute
We welcome all forms of contribution! Whether you're a developer, designer, or user, you can participate in the project in the following ways:
๐ Report Issues
- ๐ Submit bug reports on the Issues page
- ๐ Please search for similar issues before submitting
- ๐ Describe the reproduction steps and environment in detail
๐ก Feature Suggestions
- ๐ Submit feature requests in Issues
- ๐ญ Describe the feature you want and its use case
- ๐ฏ Explain how it improves user experience
๐ง Code Contributions
๐ Contribution Process
- ๐ด Fork this repo to your GitHub account
- ๐ฟ Create a feature branch:
git checkout -b feature/your-feature-name - ๐ป Develop and add corresponding tests
- ๐ Commit changes:
git commit -m "feat: add your feature" - ๐ค Push to your repo:
git push origin feature/your-feature-name - ๐ Create a Pull Request to the main repo
๐จ Code Style
- ๐ Python code follows PEP 8 style guide
- ๐ Add appropriate documentation and comments for new features
๐งฉ Contribute Workflows
- ๐ฆ Share your ComfyUI workflows with the community
- ๐ ๏ธ Submit tested workflow files
- ๐ Add usage instructions and examples for workflows
๐ Acknowledgements
โค๏ธ Sincere thanks to the following organizations, projects, and teams for supporting the development and implementation of this project.
License
This project is released under the MIT License (LICENSE, SPDX-License-identifier: MIT).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pixelle-0.1.1.tar.gz.
File metadata
- Download URL: pixelle-0.1.1.tar.gz
- Upload date:
- Size: 6.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a017d95449c718802b5567534389c36bf64b73e778b7303f9a23382d00cfc537
|
|
| MD5 |
177a2feae6f28c892cb31652ace63da4
|
|
| BLAKE2b-256 |
3b1c0d012d8155da3b50606ae48736cb105467efa312e1f58ca47bed92982c57
|
File details
Details for the file pixelle-0.1.1-py3-none-any.whl.
File metadata
- Download URL: pixelle-0.1.1-py3-none-any.whl
- Upload date:
- Size: 6.1 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fa633096849c62a4b9867508286e620ff9e2247f3fe8a6ff0122f73796854d6f
|
|
| MD5 |
f59cd99977536805433ad1deda14a70f
|
|
| BLAKE2b-256 |
92a2e9206fb739366aef058d3d41d18975c76eeece3d9994fbe0c3623fb11fb6
|