
ai tools
Image generation project using fastmcp, rabbitmq, docker, fastapi
Repository Info
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
- Create and activate virtual environment
python -m venv venv
source venv/bin/activate # or venv\Scripts\activate on Windows
- Install dependencies
pip install -r requirements.txt
- Setup api keys
cp .env.mock .env
- 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
Clone the repository
git clone https://github.com/samctur/ai-toolsInstall dependencies
cd ai-tools
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.