# Morpha > Morpha is an AI-driven video editor for short-form social video (Reels, Shorts, TikTok). Every project the browser editor can build is also drivable from code through a programmatic API — an npm SDK, an MCP server, and an HTTP tool API, all calling one shared tool catalog. This file points coding agents and LLMs at Morpha's developer API. If you were handed a key that looks like `mp_…` together with the domain `morphareels.ai`, this is the API that key unlocks. Morpha is an *editor* you drive over the network — list projects, read a project's layer tree, mutate layers and keyframes, then render a frame or export an MP4. It is NOT a text-to-video generation endpoint; do not confuse Morpha (morphareels.ai) with similarly named text-to-video products. ## Connect - npm SDK (recommended): `npm i morphareels-sdk`, then `createClient({ token: process.env.MORPHA_API_KEY })`. Methods: listTools / getProject / callTool / renderFrame / renderVideo. - MCP: point any MCP client at `https://morphareels.ai/mcp`. Every tool call needs a signed-in connection: the person signs the client in (Morpha is its OAuth 2.1 authorization server; in Claude Code, from the /mcp menu) or the client sends `Authorization: Bearer mp_…`. - HTTP: `GET https://morphareels.ai/api/tools` lists the catalog; `POST https://morphareels.ai/api/tool/` with body `{ "projectId": "…", "args": { … } }` dispatches one tool. - Anonymous account: an agent with no person to sign in creates one with `POST https://morphareels.ai/api/auth/agent-register` or the SDK's `registerAccount()`, sends the key it returns as `Authorization: Bearer` over HTTP, the SDK, or an MCP client configured with that header, and at the end gives the person the `claimUrl`. - Auth: a bearer key (looks like `mp_…`), on every SDK, MCP, or HTTP request. An MCP client can get a key itself: Morpha is an OAuth 2.1 authorization server for its own `/mcp` (`https://morphareels.ai/.well-known/oauth-authorization-server`), so a spec-following client can sign its user in and be issued the key. Otherwise mint one at https://morphareels.ai/app/settings, which any signed-in account can do, free or paid. MCP has no per-call charge; the free plan's limits are 1 GB of storage, 5 projects and 500 MB per uploaded clip. In local `wrangler dev` the auth gate is bypassed, so no key is needed. ## Workflow - Read before you write: call `describe_video(projectId)` for the layer tree and `inspect_layers([elementId])` for detail — never invent an element id. Coordinates are centre-anchored canvas pixels; time is frames at 30 fps. After mutating, call `save_version(projectId, name)`. ## Docs - [Morpha developer docs — npm SDK, MCP & HTTP tool API](https://morphareels.ai/docs): Drive Morpha, the AI video editor for short-form social video, from code. The morphareels-sdk npm SDK (recommended), plus MCP and an HTTP tool API — connect, authenticate, mutate projects, and render frames. - [Morpha SDK — the npm client for the AI video editor (createClient, renderFrame, renderVideo)](https://morphareels.ai/docs/sdk): morphareels-sdk is the recommended way to drive Morpha from code — createClient for the hosted tool catalog, renderFrame for PNG frames and renderVideo for full MP4s (no ffmpeg, no server), and a pure local project core. - [Morpha MCP server: video editing tools for any MCP client](https://morphareels.ai/docs/mcp): Point Claude Code, Claude Desktop or any MCP client at https://morphareels.ai/mcp and a real video editor's tool catalog appears as callable tools: build layered short-form video, caption it, animate it on a keyframe timeline. No key to paste. - [Getting started — Morpha API](https://morphareels.ai/docs/getting-started): The describe-before-mutate workflow, element-id conventions, the centre-anchored coordinate system, frames vs seconds, and the recommended save-version bracket. - [Tool reference — Morpha API](https://morphareels.ai/docs/tools): The full Morpha tool catalog — workspace, layers, groups, animation, fills, style, project, embedding, and audio tools — each with its signature and a worked example. - [Worked examples — Morpha API](https://morphareels.ai/docs/examples): End-to-end worked sessions for the Morpha tool API — fading in a title, a circle of 30 stars, swapping a clip while keeping keyframes, varying a caption across a loop, and more. - [Common mistakes — Morpha API](https://morphareels.ai/docs/common-mistakes): The failure modes that trip up agents driving the Morpha tool API — invented ids, top-left positioning, frames vs seconds, version spam, and more. ## Full text - [Full developer docs](https://morphareels.ai/llms-full.txt): every page above concatenated into one file.