samctur
MCP Serversamcturpublic

ai tools

Image generation project using fastmcp, rabbitmq, docker, fastapi

Repository Info

0
Stars
0
Forks
0
Watchers
0
Issues
Python
Language
-
License

About This Server

Image generation project using fastmcp, rabbitmq, docker, fastapi

Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.

Documentation

Ai Support Tools

Fast API client receives POST requests. Piblishes request to RabbitMQ. Wroker consumes prompt and handles image generation. Logging server logs all messages and results are stored in postgres with embedings. Workers use MCP Server to communicate internally and externally.

Dockerized for ease of use with 2 workers by default.

Dependency Setup

Skip to step 3 if you are using Docker.

Remote Setup with api.stability.ai

  1. Create and activate virtual environment
python -m venv venv
source venv/bin/activate  # or venv\Scripts\activate on Windows
  1. Install dependencies
pip install -r requirements.txt
  1. Setup api keys
cp .env.mock .env
  1. Fill in the .env file with your API keys from stability.ai https://platform.stability.ai/account/keys

Optional: For local generation (Not yet supported)

pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu121
pip install diffusers transformers accelerate safetensors

Start Servers

docker-compose up --build

Cleanup Server

docker-compose down --volumes --remove-orphans

FastApi Curl Test

curl -X POST "http://localhost:8000/generate?model_type=recipe" \
  -H "Content-Type: application/json" \
  -d '{
        "title": "Vegan Pancakes",
        "ingredients": ["flour", "almond milk", "banana"],
        "steps": ["Mix ingredients", "Cook on skillet", "Serve hot"]
      }'

MCPServer Curl Test

curl -X POST http://localhost:8080/mcp/ \
    -H "Content-Type: application/json" \
    -H "Accept: application/json, text/event-stream" \
    -d '{"action":"list_tools"}'

Quick Start

1

Clone the repository

git clone https://github.com/samctur/ai-tools
2

Install dependencies

cd ai-tools
npm install
3

Follow the documentation

Check the repository's README.md file for specific installation and usage instructions.

Repository Details

Ownersamctur
Repoai-tools
LanguagePython
License-
Last fetched8/10/2025

Recommended MCP Servers

💬

Discord MCP

Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.

integrationsdiscordchat
🔗

Knit MCP

Connect AI agents to 200+ SaaS applications and automate workflows.

integrationsautomationsaas
🕷️

Apify MCP Server

Deploy and interact with Apify actors for web scraping and data extraction.

apifycrawlerdata
🌐

BrowserStack MCP

BrowserStack MCP Server for automated testing across multiple browsers.

testingqabrowsers

Zapier MCP

A Zapier server that provides automation capabilities for various apps.

zapierautomation