> ## Documentation Index
> Fetch the complete documentation index at: https://rendermate.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# MCP server

> Connect an agent to Rendermate's MCP server at https://api.rendermate.com/mcp, and what its tools do.

Rendermate's MCP server is at `https://api.rendermate.com/mcp`. Every REST endpoint has an MCP tool
that calls the same code with the same arguments, so an agent can do anything the API does.

## How do I connect an agent?

Clients such as Claude, ChatGPT and Cursor sign in: you sign in with your Rendermate account and
pick the workspace they work in, and they act as you there, with what your role allows. Other
clients send an API key (`Authorization: Bearer sk_…`), which acts in its own workspace.

* [Claude](https://rendermate.com/docs/mcp/claude.md)
* [ChatGPT](https://rendermate.com/docs/mcp/chatgpt.md)
* [Cursor](https://rendermate.com/docs/mcp/cursor.md)
* [Claude Code](https://rendermate.com/docs/mcp/claude-code.md)

## How do I pin an agent to one workspace?

Connect it to `https://api.rendermate.com/mcp/<workspace_id>` instead. A workspace's ID starts with
`ws_`; `get_account` and `GET /v1/account` show it as `workspace_id`.

## What does an agent read when it connects?

The server's instructions, before any tool's description:

```text theme={null}
Rendermate makes videos from documents: versioned video edits that work like git.
1. Put media in the workspace with upload_asset or import_asset. Documents refer to an asset as asset://<name>, never by URL or inline data: URI: import a file on the web with import_asset first.
2. create_document, then edit_document. A document reads and writes as JSX: get_document returns it, and an edit replaces exact text in it. Each edit is a commit on base_version with a message saying why; if another commit landed first, read the document again with get_document and redo the edit.
3. get_frame shows a still of any moment, so you can check your work.
4. create_link shares a page that plays the video; create_export makes an MP4 to download.
Lists come a page at a time, newest first: pass the cursor a page ended with as after to get the next one.
A tool that answers with the error code not_available can't be used: don't retry it.
An error's doc_url explains its code. When you're unsure how something works, search_docs.
```

## Which tools are there?

Each area has a page listing its tools with their arguments and REST endpoints:

* [Account](https://rendermate.com/docs/mcp/tools/account.md): who the connection acts for.
* [Projects](https://rendermate.com/docs/mcp/tools/projects.md)
* [Documents](https://rendermate.com/docs/mcp/tools/documents.md): create, edit, fork, frames and previews.
* [Links](https://rendermate.com/docs/mcp/tools/links.md): share pages and playback.
* [Exports](https://rendermate.com/docs/mcp/tools/exports.md): MP4 downloads.
* [Assets](https://rendermate.com/docs/mcp/tools/assets.md): uploads, imports and folders.
* [Generations](https://rendermate.com/docs/mcp/tools/generations.md): models and their runs.
* [Persons](https://rendermate.com/docs/mcp/tools/persons.md): verified people for generations.
* [Help](https://rendermate.com/docs/mcp/tools/help.md): searching these docs.

## What does a tool return when it fails?

The same error body as the REST API, as a tool error: a `code`, a `message` that says what to do,
a `doc_url` on [Errors](https://rendermate.com/docs/errors.md) and the `request_id`. A tool that answers `not_available` can't be
used, so an agent shouldn't retry it.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.