Skip to main content
Glama
IBM
by IBM

remotion_create_project

Create a new video project with customizable themes, resolution settings, and project structure for generating professional videos using Remotion framework.

Instructions

Create a new Remotion video project.

Creates a complete Remotion project with package.json, TypeScript config,
and project structure ready for video generation.

Args:
    name: Project name (will be used as directory name)
    theme: Theme to use (tech, finance, education, lifestyle, gaming, minimal, business)
    fps: Frames per second (default: 30)
    width: Video width in pixels (default: 1920 for 1080p)
    height: Video height in pixels (default: 1080 for 1080p)

Returns:
    JSON with project information

Example:
    project = await remotion_create_project(
        name="my_video",
        theme="tech",
        fps=30,
        width=1920,
        height=1080
    )

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fpsNo
heightNo
nameYes
themeNotech
widthNo

Implementation Reference

  • MCP tool handler decorated with @mcp.tool that registers and executes the remotion_create_project tool. Delegates core logic to ProjectManager.create_project.
    @mcp.tool  # type: ignore[arg-type]
    async def remotion_create_project(
        name: str, theme: str = "tech", fps: int = 30, width: int = 1920, height: int = 1080
    ) -> str:
        """
        Create a new Remotion video project.
    
        Creates a complete Remotion project with package.json, TypeScript config,
        and project structure ready for video generation.
    
        Args:
            name: Project name (will be used as directory name)
            theme: Theme to use (tech, finance, education, lifestyle, gaming, minimal, business)
            fps: Frames per second (default: 30)
            width: Video width in pixels (default: 1920 for 1080p)
            height: Video height in pixels (default: 1080 for 1080p)
    
        Returns:
            JSON with project information
    
        Example:
            project = await remotion_create_project(
                name="my_video",
                theme="tech",
                fps=30,
                width=1920,
                height=1080
            )
        """
    
        def _create():
            try:
                result = project_manager.create_project(name, theme, fps, width, height)
                return json.dumps(result, indent=2)
            except Exception as e:
                return json.dumps({"error": str(e)})
    
        return await asyncio.get_event_loop().run_in_executor(None, _create)
  • Core implementation of project creation in ProjectManager class. Handles directory creation, template copying from remotion-templates, and timeline initialization.
    def create_project(
        self, name: str, theme: str = "tech", fps: int = 30, width: int = 1920, height: int = 1080
    ) -> dict[str, str]:
        """
        Create a new Remotion project.
    
        Args:
            name: Project name
            theme: Theme to use
            fps: Frames per second
            width: Video width
            height: Video height
    
        Returns:
            Dictionary with project info
        """
        project_dir = self.workspace_dir / name
    
        if project_dir.exists():
            raise ValueError(f"Project '{name}' already exists")
    
        # Create project structure
        project_dir.mkdir(parents=True)
        (project_dir / "src").mkdir()
        (project_dir / "src" / "components").mkdir()
    
        # Copy template files
        template_dir = Path(__file__).parent.parent.parent.parent / "remotion-templates"
    
        # Copy package.json
        self._copy_template(
            template_dir / "package.json", project_dir / "package.json", {"project_name": name}
        )
    
        # Copy config files
        shutil.copy(template_dir / "remotion.config.ts", project_dir / "remotion.config.ts")
        shutil.copy(template_dir / "tsconfig.json", project_dir / "tsconfig.json")
        shutil.copy(template_dir / ".gitignore", project_dir / ".gitignore")
    
        # Copy source files
        # Remotion composition IDs can only contain a-z, A-Z, 0-9, and hyphens
        composition_id = name.replace("_", "-")
    
        self._copy_template(
            template_dir / "src" / "Root.tsx",
            project_dir / "src" / "Root.tsx",
            {
                "composition_id": composition_id,
                "duration_in_frames": 300,  # 10 seconds at 30fps
                "fps": fps,
                "width": width,
                "height": height,
                "theme": theme,
            },
        )
    
        shutil.copy(template_dir / "src" / "index.ts", project_dir / "src" / "index.ts")
    
        # Create timeline (track-based system)
        self.current_project = name
        self.current_timeline = Timeline(fps=fps, width=width, height=height, theme=theme)
    
        return {
            "name": name,
            "path": str(project_dir),
            "theme": theme,
            "fps": str(fps),
            "resolution": f"{width}x{height}",
        }
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. It describes the outcome ('creates a complete Remotion project') and return format ('JSON with project information'), but lacks details on permissions, side effects (e.g., file system changes), error handling, or rate limits. It adds basic context but misses key behavioral traits for a creation tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured with a clear purpose statement, parameter details, return info, and an example. It's appropriately sized for a 5-parameter tool, but the example could be more concise (e.g., by omitting redundant defaults). Most sentences earn their place, though minor trimming is possible.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the complexity (creation tool with 5 parameters), no annotations, and no output schema, the description is moderately complete. It covers purpose, parameters, and return format, but lacks behavioral details (e.g., what happens if the project name already exists), error cases, and output structure. For a tool that creates file system artifacts, more context on side effects would improve completeness.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate. It provides meaningful semantics for all 5 parameters: name (used as directory name), theme (with enumerated values), fps (frames per second with default), width (video width in pixels with default and context), and height (video height in pixels with default and context). This adds significant value beyond the bare schema, though it doesn't explain parameter interactions or constraints.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the specific action ('Create a new Remotion video project') and resource ('complete Remotion project with package.json, TypeScript config, and project structure'), distinguishing it from sibling tools like remotion_generate_video (which generates video from existing projects) or remotion_list_projects (which lists projects). The verb 'create' is precise and unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage context ('ready for video generation') but does not explicitly state when to use this tool versus alternatives. It doesn't mention prerequisites (e.g., needing to create a project before using remotion_generate_video) or exclusions (e.g., not for modifying existing projects). The context is clear but lacks explicit guidance on tool selection among siblings.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

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/IBM/chuk-motion'

If you have feedback or need assistance with the MCP directory API, please join our Discord server