Skip to main content

A Model Context Protocol (MCP) server to generate images by text prompts via modelscope

Project description

ModelScope Image Generation MCP

Project description

Feature

  • 📝 Support text 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 modelscope-image-gen-mcp throuh pip

pip install modelscope-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 modelscope_image_gen_mcp

Start the server

start the server by following command:

env MODELSCOPE_TOKEN=YOUR_MODELSCOPE_TOKEN python -m modelscope_image_gen_mcp

or you can add following json into your config file

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

modelscope_image_gen_mcp-0.1.4-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file modelscope_image_gen_mcp-0.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for modelscope_image_gen_mcp-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 b9c52d24f46056f636011409f2788243baa009f8c307b9cad418605f51b81c8f
MD5 6f6ffa3716f5c6a7f1f938ca89a0887c
BLAKE2b-256 d0a24f5f404f4f0e449dbc33142d088f487fa72b17826968b3d65ea201f7b9d9

See more details on using hashes here.

Supported by

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