Skip to content

An MCP for generating images using Hugging Face models, designed to work with Cursor and as a global CLI tool.

Notifications You must be signed in to change notification settings

TCyberChef/mcp-image-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MCP Image Generator

An MCP (Model Control Protocol) for generating images using Hugging Face models. This tool is designed to work both with Cursor IDE and as a global CLI tool.

Features

  • Generate images using Hugging Face's free models
  • Local integration with Cursor IDE
  • Global CLI tool functionality
  • Easy to configure and use
  • Support for multiple image generation models

Installation

Local Installation (Cursor IDE)

pip install -e .

Global Installation

pip install -e . --user

Usage

As a Cursor MCP

The tool will be automatically available in Cursor IDE after installation.

As a CLI Tool

mcp-image-gen --prompt "your image description" --model "model-name" --output "output-path"

Configuration

Create a .env file in your project root:

HUGGINGFACE_TOKEN=your_token_here

Models

Currently supported models:

  • Stable Diffusion
  • More coming soon...

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

MIT

About

An MCP for generating images using Hugging Face models, designed to work with Cursor and as a global CLI tool.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages