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"
}
}
}
}
Metadata
Release files for image-generation-mcp-server 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| image_generation_mcp_server-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Release files / image_generation_mcp_server-0.1.1-py3-none-any.whl
| Download URL | image_generation_mcp_server-0.1.1-py3-none-any.whl |
|---|---|
| Size | 3.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c10b260af07aa6f185228e556805e40c3f7463569d700c06673ba9c62e795418
|
|
BLAKE2b-256 checksum How to use checksums |
2fb9995d16e837559acb4e5da89af48cf7b1a8e63712ab483c138ed1600dffb9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.11
|