Video Generation Tool
Create stunning videos effortlessly with our advanced video generation capabilities. Transform your ideas into visual content quickly and easily, enhancing your projects with high-quality video outputs. Experience the power of automated video creation tailored to your needs.
Installation
Installing for Claude Desktop
Manual Configuration Required
This MCP server requires manual configuration. Run the command below to open your configuration file:
npx mcpbar@latest edit -c claude
This will open your configuration file where you can add the Video Generation Tool MCP server manually.
MCQ Video Generator π¬ β¨
Transform your multiple-choice questions into engaging video presentations
π Overview
The MCQ Video Generator is a powerful tool designed to automatically convert CSV-formatted multiple-choice questions into professional video presentations with synchronized audio narration. Perfect for educators, trainers, and content creators looking to enhance learning materials without the hassle of manual video editing.
β¨ Features
- π₯ Automated Video Creation - Transform CSV files of MCQs into complete videos
- π Text-to-Speech Narration - Automatic audio generation for all text elements
- π Multi-language Support - Compatible with various languages through gTTS
- π¨ Customizable Styling - Control colors, fonts, and dimensions
- π Batch Processing - Process multiple questions in a single run
π οΈ Installation
Prerequisites
- Python 3.12 or higher
- Required font file (default:
HindVadodara-Light.ttf
)
Setup
- Clone the repository
git clone https://github.com/yourusername/mcp-video-gen.git
cd mcp-video-gen
- Install the required dependencies
pip install -e .
# or
pip install pandas pillow gtts moviepy
- Install additional MCP dependencies
pip install mcp[cli]>=1.6.0
π Usage
Basic Usage
python main.py
As an MCP Tool
This tool is designed to work within the MCP (Machine Control Protocol) framework:
from mcp.server.fastmcp import FastMCP
from main import create_mcq_video
# Create an MCP server
mcp = FastMCP("mcq_video_generator")
# Example usage
result = await create_mcq_video(
csv_file_path="your_questions.csv",
output_filename="my_quiz_video.mp4"
)
π Input Format
Your CSV file should contain columns for questions and answer options. Example format:
Question | A | B | C | D | Answer |
---|---|---|---|---|---|
What is 1+1? | A. 1 | B. 2 | C. 3 | D. 4 | Ans: B. 2 |
Capital of France? | A. London | B. Berlin | C. Paris | D. Rome | Ans: C. Paris |
βοΈ Configuration Options
Parameter | Description | Default |
---|---|---|
csv_file_path | Path to input CSV file | Required |
output_filename | Name for final video | "Gyan_Dariyo_final_video.mp4" |
language | Language code for TTS | "en" |
font_path | Path to font file | "HindVadodara-Light.ttf" |
font_size | Text size on slides | 70 |
img_width | Video width (pixels) | 1920 |
img_height | Video height (pixels) | 1080 |
bg_color_rgb | Background color | (0, 127, 215) |
font_color_rgb | Text color | (255, 255, 255) |
π Process Flow
graph TD
A[Load CSV Data] --> B[Generate Images]
B --> C[Create TTS Audio]
C --> D[Combine into Video Clips]
D --> E[Concatenate Final Video]
E --> F[Output MP4 File]
π Technical Details
The tool performs the following steps:
- π Reads MCQ data from a CSV file
- πΌοΈ Generates an image for each MCQ with proper text formatting
- ποΈ Creates audio narration using Google's Text-to-Speech (gTTS)
- ποΈ Combines each image and audio into individual video clips
- π¬ Concatenates all clips into a final video presentation
β οΈ Troubleshooting
Common Issues
- Font Not Found Error: Ensure the specified font file exists in the working directory
- Empty CSV Error: Verify your CSV file contains valid data
- Audio Generation Failure: Check internet connection (required for gTTS)
Font Requirements
The default font is set to "HindVadodara-Light.ttf". If you use a different font:
result = await create_mcq_video(
csv_file_path="questions.csv",
font_path="path/to/your/font.ttf"
)
π License
This project is licensed under the MIT License - see the LICENSE file for details.
π₯ Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Made with β€οΈ for educators and content creators
Stars
1Forks
0Last commit
3 months agoRepository age
3 months
Auto-fetched from GitHub .
MCP servers similar to Video Generation Tool:

Β
Stars
Forks
Last commit

Β
Stars
Forks
Last commit

Β
Stars
Forks
Last commit