Skip to main content

ModelScope Image Generator

Project description

Project description

ModelScope Image Generation MCP

Project description

Feature

  • 📝 Search for models on ModelScope using keywords
  • 📝 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.1.1-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for ms_image_gen_mcp-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 616071b0a54e1f8f6716905427e59f324a25adb29b2eb28313330ddddee85db6
MD5 8f5e77be2f37ca3b8b3e104f04b2fb10
BLAKE2b-256 ff3f512c0e945fbee4895b932342752f6c467b183a9bfa170e8f7a61fad869b5

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