A Model Context Protocol (MCP) server to generate images by text prompts via modelscope
Project description
Feature
- 📝 Support image generation by text via Modelscope
Prerequisites
- Python 3.11+
- Modelscope Key (apply from Modelscope)
- Node.js (optional, for MCP Inspector)
Install
- python packages
pip install -r requirements.txt
- install image_generation_mcp_server
pip install image-generation-mcp-server
Debug by MCP Inspector
start the inspector by following command in terminal (replace YOUR_MODELSCOPE_API_KEY with your own key):
npx @modelcontextprotocol/inspector -e MODELSCOPE_API_KEY=YOUR_MODELSCOPE_API_KEY python -m image_generation_mcp_server
Start the server
start the server by following command:
env MODELSCOPE_API_KEY=YOUR_MODELSCOPE_API_KEY python -m image_generation_mcp_server
or you can add following json into your config file
{
"mcpServers": {
"image-generation-mcp-server": {
"command": "python",
"args": [
"-m",
"image_generation_mcp_server"
],
"env": {
"MODELSCOPE_API_KEY": "YOUR_MODELSCOPE_API_KEY"
}
}
}
}
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
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 image_generation_mcp_server-0.1.1-py3-none-any.whl.
File metadata
- Download URL: image_generation_mcp_server-0.1.1-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 |
c10b260af07aa6f185228e556805e40c3f7463569d700c06673ba9c62e795418
|
|
| MD5 |
be0c614df3fd3981b65115623aa56432
|
|
| BLAKE2b-256 |
2fb9995d16e837559acb4e5da89af48cf7b1a8e63712ab483c138ed1600dffb9
|