Skip to main content

ModelScope Image Generator

Project description

Project description

ModelScope Image Generation MCP

Project description

Feature

  • 📝 Support text to image generation backed by models on ModelScope
  • 📝 Support image to image generation backed by models on ModelScope

Prerequisites

1.Python 3.11+
2.ModelScope Token (obtained from Modelscope)
3.Node.js (optional, for MCP Inspector)

Install

install ms--geimagen-mcp throuh pip

pip install ms-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 ms_image_gen_mcp

Start the server

start the server by following command:

env MODELSCOPE_TOKEN=YOUR_MODELSCOPE_TOKEN python -m ms_image_gen_mcp

or you can add following json into your config file

{
    "mcpServers": {
        "modelscope-image-gen-mcp": {
            "command": "python",
            "args": [
                "-m",
                "ms_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

If you're not sure about the file name format, learn more about wheel file names.

ms_image_gen_mcp-1.0.0-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file ms_image_gen_mcp-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for ms_image_gen_mcp-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 64f86cc1d0a50c2f77b5451b5773a1f08d2bd236b88a4320677abead9453acf4
MD5 a5569c028d76cac1d5170c74c101e48f
BLAKE2b-256 f16dffecdcc660d065d940049b2e2611db4debb9b2e3cb31e800f2e3a8508914

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page