quote-fancy-mcp-server

Iamkrmayank/quote-fancy-mcp-server

3.1

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

MethodEndpointDescription
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