Iamkrmayank/quote-fancy-mcp-server
If you are the rightful owner of quote-fancy-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
The MCP Server is a modular FastAPI backend designed for managing and automating various content-related tasks, leveraging PostgreSQL and modern Python tools.
๐ง MCP Server (Model Control Protocol)
A modular FastAPI backend designed for controlling and automating the lifecycle of quote generation, image handling, video metadata management, and structured content distribution โ powered by PostgreSQL and modern Python tooling.
๐ Features
- ๐ก Quotes & Structure Generator
- ๐ผ๏ธ Image Downloader, Resizer & ALT Text Matcher
- ๐ Batch Submit to Azure OpenAI
- ๐น Video Metadata Cleaner
- ๐ Metadata Generator & Textual Merge
- ๐งญ Circular Navigation Logic for Stories
- ๐งน Final Quote Fancy Data Reordering
- ๐ฅ All data handled via PostgreSQL
๐ฆ Folder Structure
MCP_SERVER/ โโโ main.py # FastAPI entry point โโโ .env # Environment secrets (PG_HOST, PG_USER, etc.) โโโ routers/ # All feature routes modularized โ โโโ quotes.py โ โโโ image_router.py โ โโโ altxt.py โ โโโ rotate.py โ โโโ reorder.py โ โโโ โฆ โโโ requirements.txt # All dependencies
๐ ๏ธ Setup & Run Locally
1. Clone the repository
git clone https://github.com/Iamkrmayank/quote-fancy-mcp-server.git
cd mcp-server
2. Create .env file
PG_HOST=localhost
PG_PORT=5432
PG_DATABASE=your_db
PG_USER=your_user
PG_PASSWORD=your_password
3. Install dependencies
pip install -r requirements.txt
4. Run the FastAPI server
uvicorn main:app --reload
5. Key Endpoints
๐ Key Endpoints
Method | Endpoint | Description |
---|---|---|
POST | /quotes/ | Generate or scrape quotes |
POST | /generate/ | Generate structured textual content |
POST | /images/ | Download images from external sources |
POST | /match/ | Match ALT text with images |
POST | /azure/ | Submit batch text tasks to Azure OpenAI |
POST | /track/ | Track Azure batch image processing |
POST | /merge_text/ | Merge structured quote content |
POST | /resizer/ | Resize and save images to S3/CDN |
POST | /distribute/ | Distribute image URLs and paragraph text |
POST | /videometa/ | Clean and normalize video metadata |
POST | /modify_column/ | Remove or update specific DB columns |
POST | /metadata/ | Generate metadata (title, description, keywords) |
POST | /rotate/ | Add circular next/prev navigation to stories |
POST | /reorder/ | Reorder final output to final_quote_fancy_data |
๐ Access Swagger UI: http://localhost:8000/docs
๐ License
MIT License
๐จโ๐ป Author
Kumar Mayank ๐ฌ LinkedIn ๐ GitHub