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-image-gen-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

    "modelscope-image-gen-mcp": {
      "command": "uvx",
      "args": [
        "ms_image_gen_mcp"
      ],
      "env": {
        "MODELSCOPE_API_KEY": "Your ModelScope API Key"
      }
    }

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.1-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for ms_image_gen_mcp-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 eaaa81fd595a369fd37672f3a3d972ad4f9d5ca453b7a80b7c9cf974680ef12a
MD5 126302bef94f045f6b31e3ca30dd565a
BLAKE2b-256 5084094677e4039542095efe8e2466479d2a9bc3f830bbbac767490fd26abbb8

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