A Model Context Protocol (MCP) server to generate images by text prompts via modelscope
Project description
ModelScope Image Generation MCP
Project description
Feature
- 📝 Support text to image generation backed by models on ModelScope
Prerequisites
- Python 3.11+
- ModelScope Token (obtained from Modelscope)
- Node.js (optional, for MCP Inspector)
Install
install modelscope-image-gen-mcp throuh pip
pip install modelscope-image-gen-mcp
Debug by MCP Inspector
start the inspector by following command in terminal (replace YOUR_MODELSCOPE_TOKEN with your own token):
npx @modelcontextprotocol/inspector -e MODELSCOPE_TOKEN=YOUR_MODELSCOPE_TOKEN python -m modelscope_image_gen_mcp
Start the server
start the server by following command:
env MODELSCOPE_TOKEN=YOUR_MODELSCOPE_TOKEN python -m modelscope_image_gen_mcp
or you can add following json into your config file
{
"mcpServers": {
"modelscope-image-gen-mcp": {
"command": "python",
"args": [
"-m",
"modelscope_image_gen_mcp"
],
"env": {
"MODELSCOPE_TOKEN": "YOUR_MODELSCOPE_TOKEN"
}
}
}
}
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file modelscope_image_gen_mcp-0.1.4-py3-none-any.whl
.
File metadata
- Download URL: modelscope_image_gen_mcp-0.1.4-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b9c52d24f46056f636011409f2788243baa009f8c307b9cad418605f51b81c8f |
|
MD5 | 6f6ffa3716f5c6a7f1f938ca89a0887c |
|
BLAKE2b-256 | d0a24f5f404f4f0e449dbc33142d088f487fa72b17826968b3d65ea201f7b9d9 |