ViewMax Studio MCP
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@ViewMax Studio MCPCreate a viral hook about morning routines"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
ViewMax Studio MCP Server
An MCP (Model Context Protocol) server that enables Claude and other LLM clients to generate AI video prompts with narrative scripts using the ViewMax Studio API.
Features
7 Video Formats: Shoppable Video, Viral Hook, Trending, Meme, POV & Roleplay, Reaction, Storytelling
11 AI Models: Seedance, Kling, Grok, Runway, Gemini, Veo with automatic model selection
Prompt Generation: Create engaging video prompts tailored to your format
Script Generation: Generate narrative scripts aligned with your prompt
Task Tracking: Monitor video generation progress with task IDs
Character Validation: Enforce 2000-character limits for prompts and scripts
HTTP Deployment: Built with FastMCP for remote HTTP access
Related MCP server: Vidu MCP
Quick Start
1. Setup
# Clone the repository
git clone <your-repo-url>
cd viewmax-mcp
# Create virtual environment
python3 -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
# Install dependencies
pip install -r requirements.txt
# Create .env file
cp .env.example .env
# Edit .env and add your ViewMax API key2. Local Development
# Make sure you're in the virtual environment with dependencies installed
python app.pyThe server will start at http://localhost:8000 and be accessible at http://localhost:8000/mcp
3. Using in Claude Desktop
Create/update your
claude_desktop_config.json:macOS/Linux:
~/.config/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
Add the MCP server configuration:
{
"mcpServers": {
"viewmax": {
"command": "python",
"args": ["<path-to>/app.py"],
"env": {
"VIEWMAX_API_KEY": "your-api-key-here"
}
}
}
}Restart Claude Desktop and the tools should be available
4. Using in Cowork
In Cowork settings, go to Connectors
Add a new connector with type "MCP"
Point it to your running server at
http://localhost:8000(for local testing)Or use the deployed URL for remote access
Deployment to Railway
Prerequisites
Railway account (free tier available at railway.app)
GitHub repository with your code
ViewMax API key set as environment variable
Steps
Push to GitHub
git add . git commit -m "Initial ViewMax MCP server" git push origin mainDeploy on Railway
Connect your GitHub account to Railway
Create new project → Deploy from GitHub
Select your repository
Railway will auto-detect the
Procfileand run the server
Set Environment Variables
In Railway dashboard, go to Variables
Add
VIEWMAX_API_KEYwith your actual API keyRailway automatically provides
PORTenvironment variable
Access Your Server
Railway provides a public domain like:
https://viexmaxmcp-production.up.railway.appMCP endpoint:
https://viexmaxmcp-production.up.railway.app/mcp
Adding to Claude via Connector
In Cowork Connectors, use the deployed URL:
https://viexmaxmcp-production.up.railway.appAPI Tools
1. viewmax_generate_prompt_and_script
Generates both a video prompt and narrative script based on your topic and format.
Inputs:
topic: The subject matter for the videoformat: One of 7 video formats (shoppable_video, viral_hook, trending, meme, pov_roleplay, reaction, storytelling)duration: Video length in seconds (15-120, default: 30)style: Optional style/mood (e.g., "cinematic", "casual")tone: Optional voice tone (e.g., "professional", "energetic")
Outputs:
Generated prompt (max 2000 characters)
Generated script (max 2000 characters)
Selected model and its cost
Character counts and ready-to-submit status
2. viewmax_submit_video
Submits a video generation request to ViewMax API.
Inputs:
prompt: Your video prompt textscript: Narrative script for the videoformat: Video format typemodel: AI model to use (from the 11 available)
Outputs:
Task ID for tracking
Submission status
Model used and format
3. viewmax_check_task_status
Checks the progress of a submitted video generation task.
Inputs:
task_id: The ID returned from video submission
Outputs:
Current status (generating, completed, failed, etc.)
Progress percentage
Estimated completion time
Video URL (when ready)
Available Models
Model | Cost (credits/min) | Quality | Best For |
Seedance 1.5 Pro | 8.0 | High | General purpose |
Seedance 2.0 | 10.0 | Very High | Premium quality |
Seedance 2.0 Fast | 6.0 | High | Quick turnaround |
Kling 2.6 | 9.0 | Very High | Complex scenes |
Grok Imagine | 7.0 | High | Creative content |
Runway | 8.5 | Very High | Professional videos |
Gemini Omni Flash | 5.0 | Medium-High | Budget-friendly |
Veo 3.1 | 12.0 | Excellent | Premium production |
Veo 3.1 Fast | 9.0 | Very High | Fast premium |
Veo 3.1 Lite | 4.5 | Medium-High | Quick generation |
Architecture
Framework: FastMCP - Python framework for building MCP servers
Transport: HTTP with ASGI (Starlette/Uvicorn)
API Client: httpx (async HTTP client)
Validation: Pydantic models for type safety
Deployment: Railway with Procfile automation
Key Implementation Details
HTTP Transport: Uses
mcp.http_app()to expose the server as an ASGI application, accessible via HTTP endpointsAutomatic Model Selection: Recommends optimal model based on video format
Progress Reporting: Tools report progress in real-time using MCP context
Error Handling: Comprehensive error messages for validation and API failures
Async/Await: Non-blocking operations for API calls and progress updates
Troubleshooting
"Connection refused" when running locally
Ensure the server is running:
python app.pyCheck that port 8000 is not already in use
Try accessing
http://localhost:8000/mcpin your browser
"API Key invalid" error
Verify your VIEWMAX_API_KEY in the .env file
Ensure the key hasn't expired
Check the .env file is being loaded
MCP server not appearing in Claude
Restart Claude Desktop after updating configuration
Check the MCP server logs for startup errors
Verify the endpoint URL is accessible
Development
Testing Locally
# Run the server
python app.py
# In another terminal, test with curl
curl -X POST http://localhost:8000/mcp \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "resources/list",
"params": {}
}'Building on the Existing Code
To extend this MCP server:
Add new tools by using the
@mcp.tooldecoratorDefine new Pydantic models for tool inputs
Use
ctx.report_progress()for long-running tasksAdd API calls to ViewMax endpoints as needed
License
MIT License - See LICENSE file for details
Support
For issues or questions:
Check the README troubleshooting section
Review the FastMCP documentation: https://gofastmcp.com
Check ViewMax API documentation for API-specific issues
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/jcmach01/viexmax_mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server