# Avatar API docs for a coding agent: MCP, llms\.txt, create avatars

Avatar APIs a coding agent can use, Nov 2026: who ships llms\.txt, OpenAPI, MCP servers or agent skills, and a read\-only MCP setup for Cursor and Claude Code\.

Published: 2026-12-03T02:44:24.901Z
Updated: 2026-12-03T02:44:24.901Z
Canonical: https://realtimeavatar.ai/blog/avatar-api-docs-mcp-llms-txt-coding-agents
Markdown: [en](https://realtimeavatar.ai/blog/avatar-api-docs-mcp-llms-txt-coding-agents.md)

As of November 2026, all seven realtime avatar APIs reviewed here publish an llms.txt, and six list an OpenAPI spec in it; the real difference is whether your coding agent also gets tools that read your account. Realtime Avatar ships realtime-avatar-mcp, a local MCP server that runs over stdio with npx: read-only by default, and with REALTIME_AVATAR_ALLOW_WRITES=1 it lets Cursor or Claude Code create an avatar from one image and start a test call capped at 300 seconds. It also serves /llms.txt, markdown versions of its docs pages and an OpenAPI spec at /openapi.json. Tavus and Anam run remote MCP servers you connect with browser sign-in or an API key, and Anam's can be connected read-only. D-ID documents a remote MCP server on its docs site. HeyGen LiveAvatar offers Agent Skills instead of an MCP server, and Simli and Beyond Presence publish llms.txt and OpenAPI files with no MCP server listed.

At a glance, from each vendor's own docs as read on 16 November 2026 and linked at the end. The sections below add a six-point checklist, the Realtime Avatar MCP setup and what a capped test call costs.

- llms.txt: all seven, namely Realtime Avatar, Tavus, Anam, HeyGen LiveAvatar, D-ID, Simli and Beyond Presence.
- OpenAPI spec named in the vendor's llms.txt: Realtime Avatar, Tavus, Anam (swagger.json), LiveAvatar (three files), Simli and Beyond Presence.
- MCP server a coding agent can call: Realtime Avatar (local, over stdio), Tavus and Anam (remote, OAuth sign-in or an API key) and D-ID (remote, added by URL).
- Read-only mode for that server: Realtime Avatar, where it is the default and writes need REALTIME_AVATAR_ALLOW_WRITES=1, and Anam, where you choose Read only at sign-in. Tavus's and D-ID's MCP pages describe none.
- Agent Skills: HeyGen LiveAvatar, installed with npx skills add heygen-com/liveavatar-agent-skills, and Tavus, which lists them on its Agents and Automation page.
- Scopes a generated client can see: Realtime Avatar's /openapi.json declares the scope each operation needs, and Anam's MCP sign-in uses the scopes anam:read and anam:write.
- A capped test call the agent can start itself: Realtime Avatar's start_call, at most 300 seconds and billed by the second.

## The checklist a coding agent needs

An agent writing an avatar integration fails in predictable ways: it invents an avatar ID, guesses an endpoint, puts the API key in browser code, or starts calls that spend money while it debugs. Each item below closes one gap.

- Machine-readable docs: an llms.txt index plus markdown versions of pages, so the agent fetches the current page instead of relying on what it remembers.
- An OpenAPI spec and scoped keys: a contract to generate a typed client from, and keys limited to what the integration needs.
- MCP tools that read the real account: avatars, balance and sessions, so the IDs in the code come from your account, not from the model.
- A safe way to spend: write tools off by default or confirmed by a person, test calls with a hard cap, and per-key spend limits.
- Copy-paste prompts or skills for each builder, such as Cursor, Claude Code, Replit or Lovable, that encode where the key goes.
- A typed SDK that ships the server route, so the key stays on your server and the browser only gets a grant for one call.

## How each vendor scores, as of November 2026

Each line lists what the vendor's own docs publish for agents. Not listed means its llms.txt or agent page did not mention it on 16 November 2026.

- Realtime Avatar: /llms.txt, a markdown version of each docs page (append .md, as in /docs/nextjs.md) and an OpenAPI spec at /openapi.json that declares the scope each operation needs (x-required-scopes). API keys are scoped, with configurable permissions and spend limits. MCP: realtime-avatar-mcp on npm, run on your machine over stdio with npx, read-only by default, with write tools that create an avatar from one image and start capped test calls. Copy-paste prompts for Cursor, Claude Code, Replit Agent, Lovable, Bolt and v0, and a TypeScript SDK with server adapters for Next.js, TanStack Start, Hono and Express. The MCP server is a local process only: there is no remote MCP endpoint and no OAuth sign-in.
- Tavus: llms.txt, and an Agents and Automation page covering llms.txt, OpenAPI, Agent Skills and MCP. Its MCP server is a remote endpoint at mcp.tavus.io/mcp; Codex, Claude Code or Cursor connect with browser sign-in (OAuth) or a Tavus API key, and the agent can build and patch a PAL, define and attach its tools, and start test conversations. There is also a CLI, a ChatGPT plugin, a copy-paste checklist for Cursor or Copilot that scaffolds React with @tavus/cvi-ui, and prompts for Lovable, Replit, Bolt and v0. The MCP page does not describe a read-only connection: requests act with the key's account and permissions.
- Anam: llms.txt and an OpenAPI spec (swagger.json). Its remote MCP server at lab.anam.ai/mcp works with Claude, ChatGPT, Cursor, VS Code, Claude Code and Codex, with OAuth 2.1 sign-in (scopes anam:read, anam:write and offline_access) or an API key. At sign-in you choose Full access or Read only; Read only still reads everything in the organization, including transcripts and recordings. Before deletes and paid work such as creating an avatar, Anam asks you to confirm where the client can show the question. Tools cover personas, avatars from an image, voices, knowledge, sessions and starter code for Next.js, Express or FastAPI.
- HeyGen LiveAvatar: its llms.txt opens with Agent Skills, installed with npx skills add heygen-com/liveavatar-agent-skills, for integration, debugging and feedback in Claude Code, Cursor, Codex and other agents. It lists three OpenAPI files: openapi, openapi-lite and openapi-full. No MCP server is listed.
- D-ID: its docs describe a remote MCP server at docs.d-id.com/mcp, added to Cursor, Windsurf or Claude Desktop by URL, which the page says provides documentation search and access to the D-ID API, with authentication headers set in your MCP client. The page describes no read-only mode or spending guard. D-ID also publishes an llms.txt.
- Simli: llms.txt, an OpenAPI spec (openapi.yaml) and an AsyncAPI spec, with JavaScript (simli-client) and Python (simli-ai) SDKs and integrations for LiveKit Agents (livekit-plugins-simli) and Pipecat. No MCP server or agent skills are listed.
- Beyond Presence: llms.txt and an OpenAPI spec (openapi.json), plus the livekit-plugins-bey plugin for Python or JavaScript. No MCP server or agent skills are listed.

Which one to pick depends on what you want the coding agent to do. Where another vendor is the better fit, the list says so:

- The agent should read your real account and spend nothing: Realtime Avatar's realtime-avatar-mcp in its default read-only mode, or Anam with Read only chosen at sign-in, which still reads transcripts and recordings.
- The agent should build a whole persona from a chat window, with a confirmation before paid work: Anam's remote server, which signs in with OAuth scopes and asks before it creates an avatar or deletes anything.
- The agent should define a conversation's tools, write the matching handlers in your repo and test the round trip: Tavus's remote server, built around its PALs.
- No OAuth flow and no remote endpoint, with the key in an environment variable and every test call capped at 300 seconds at most: Realtime Avatar's realtime-avatar-mcp, run with npx.
- A typed client generated from a spec that names the scope each call needs: Realtime Avatar's /openapi.json, which declares it on every operation.
- You already run a voice agent and only need a face: Simli (LiveKit Agents and Pipecat), LiveAvatar's LITE mode (LiveKit and Pipecat plugins) and Beyond Presence's Speech-to-Video API (a LiveKit Agents plugin) are built for that. Realtime Avatar does not offer a renderer-only mode that lip-syncs audio from your own voice agent.

## Setting up realtime-avatar-mcp in Cursor and Claude Code

The server is published on npm as realtime-avatar-mcp. There is nothing to build and nothing to host: your agent starts it over stdio with npx -y realtime-avatar-mcp. Add it to .mcp.json for Claude Code, .cursor/mcp.json for Cursor or claude_desktop_config.json for Claude Desktop. The project file below holds only a variable name, because Claude Code expands ${REALTIME_AVATAR_API_KEY} from your environment; in a Cursor mcp.json the same value is written ${env:REALTIME_AVATAR_API_KEY}. Never commit the key itself. A read-only .mcp.json for Claude Code, where no tool can spend credits:

```
{
  "mcpServers": {
    "realtime-avatar": {
      "command": "npx",
      "args": ["-y", "realtime-avatar-mcp"],
      "env": { "REALTIME_AVATAR_API_KEY": "${REALTIME_AVATAR_API_KEY}" }
    }
  }
}
```

That configuration is read-only. The read tools list your avatars, credits and sessions: list_avatars, get_avatar, credit_balance and list_sessions, among others. To let the agent create avatars and start billed test calls, add one variable. A project .cursor/mcp.json for Cursor with writes on:

```
{
  "mcpServers": {
    "realtime-avatar": {
      "command": "npx",
      "args": ["-y", "realtime-avatar-mcp"],
      "env": {
        "REALTIME_AVATAR_API_KEY": "${env:REALTIME_AVATAR_API_KEY}",
        "REALTIME_AVATAR_ALLOW_WRITES": "1"
      }
    }
  }
}
```

With writes on, the agent also gets these tools:

- create_avatar_from_image: a character from one still image. The platform generates the resting loop and a starter motion library from that frame, and motionPrompt art-directs the loop.
- upload_asset and create_remote_asset: bring the image in from a file on your machine or from a public URL. Neither spends credits.
- start_call: a live test session, billed by the second and capped by maxSeconds (300 at most), which returns the connection payload.
- set_loop and set_clip_library: re-generate the resting loop from a one-sentence description, and declare the clip library of idle variations, the listening reaction and requestable actions.

## Stopping the agent from inventing avatar IDs

Avatar IDs cannot be guessed, and a model that has never seen your account will write a plausible-looking one. Make the account the source: tell the agent to call list_avatars before writing code and to use only IDs it returns. Creation is asynchronous, so a new avatar comes back preprocessing and cannot take calls until it reaches ready. Minting a session against it returns a 409 with the code avatar_not_ready, which means the agent should poll get_avatar rather than retry the call. A prompt that encodes this:

```
Use the realtime-avatar MCP server.
1. Call credit_balance and list_avatars and show me what they return.
2. If no avatar is ready, upload character.png from this project with upload_asset
   (give it the file's absolute path), create one with create_avatar_from_image,
   then poll get_avatar until it is ready. Never mint a session for an avatar
   that is still preprocessing.
3. Mint one test session with start_call and maxSeconds 60 to confirm the key
   and the avatar work.
4. Add the call to this app with the realtime-avatar SDK: one server route that reads
   REALTIME_AVATAR_API_KEY and mints the session, and an AvatarCall component in the page.
Use only avatar IDs that list_avatars returned.
Reference: https://realtimeavatar.ai/llms.txt
```

Put the last rule in the agent's standing instructions too, such as CLAUDE.md for Claude Code or a project rule in Cursor, so it survives a new chat. Before you have an avatar of your own, Realtime Avatar's coding-agent prompt uses the public example avatar seed-rin-ashfall.

## Keeping it safe, and what a test call costs

Three guards stack. The default server cannot spend, because write tools appear only when REALTIME_AVATAR_ALLOW_WRITES is set to 1. Every live test is bounded, because start_call stops at maxSeconds, 300 at most. And keys carry configurable permissions and spend limits. Creating a key is free, there is no separate test mode and calls on any key spend workspace credits, so give the MCP server its own key with a low spend limit.

What testing costs, from Realtime Avatar's pricing as of November 2026. A credit is one second on air (Starter's 7,200 credits are 120 minutes), so a test call at the 300-second cap uses at most 300 credits:

- Sandbox, free: 480 credits once, no card (8 realtime minutes), or your first avatar plus 2 minutes of calls. After the agent creates an avatar, keep maxSeconds at 120 or below.
- Starter, $9 a month: 120 included minutes, which is 24 test calls at the cap. Past that, $0.095 a minute, so a full 300-second call costs $0.475.
- Developer, $24 a month: 600 included minutes, or 120 capped test calls, then $0.085 a minute, which is $0.425 for a 300-second call.
- A 40-second smoke test bills 40 seconds, because calls are billed by the second. Creating an avatar spends credits as well and takes minutes.

The MCP server is a build-time tool. It is how the agent learns your account while it writes the integration, not how your application talks to the platform at runtime. Your app keeps minting sessions from its own server route, which is where you decide who may call and what the character knows. What the agent should end up writing on Next.js, typechecked against realtime-avatar on npm:

```
// app/api/realtime-avatar/[...path]/route.ts
import { createRealtimeAvatarRoute } from "realtime-avatar/nextjs";

const AVATAR_ID = "YOUR_AVATAR_ID"; // returned by list_avatars, never typed from memory

export const { GET, POST } = createRealtimeAvatarRoute({
  apiKey: () => process.env.REALTIME_AVATAR_API_KEY ?? "",
  authorize: ({ operation }) =>
    operation === "connect" || operation === "end" ? undefined : new Response("Not found", { status: 404 }),
  session: ({ avatarId }) =>
    avatarId === AVATAR_ID
      ? { instructions: "You are a friendly product guide. Short spoken sentences.", maxSeconds: 120 }
      : new Response("Avatar not allowed", { status: 403 }),
});
```

```
// components/guide-call.tsx: load it with next/dynamic and ssr: false
"use client";
import { AvatarCall, createProxyClient } from "realtime-avatar/react";

const client = createProxyClient({ proxyUrl: "/api/realtime-avatar" });

export function GuideCall({ onDone }: { onDone: () => void }) {
  return <AvatarCall client={client} avatarId="YOUR_AVATAR_ID" onEnded={onDone} />;
}
```

## Questions developers ask

### Which real-time avatar providers offer a solid developer API with good docs?

Judge docs by what a coding agent can use. All seven vendors here publish an llms.txt; Realtime Avatar, Tavus, Anam and D-ID add MCP servers, and LiveAvatar adds Agent Skills. Then decide whether you want the whole conversation managed or only a face for your own voice agent.

### Which realtime avatar APIs publish an llms.txt or an MCP server for Cursor and Claude Code?

All seven above publish an llms.txt. Realtime Avatar's MCP server runs locally with npx; Tavus's (mcp.tavus.io/mcp), Anam's (lab.anam.ai/mcp) and D-ID's (docs.d-id.com/mcp) are remote. LiveAvatar lists Agent Skills instead, and Simli and Beyond Presence list neither.

### Does Tavus have an MCP server or llms.txt?

Yes to both. docs.tavus.io/llms.txt indexes the docs, and the remote Tavus MCP server at mcp.tavus.io/mcp connects to Codex, Claude Code or Cursor with browser sign-in or an API key to build PALs, wire tool calls and start test conversations. Tavus also lists OpenAPI and Agent Skills.

### Does HeyGen LiveAvatar have an llms.txt or an MCP server my coding agent can read?

It has an llms.txt that opens by recommending its Agent Skills, plus three OpenAPI files. As of 16 November 2026 it lists no MCP server; install the skills with npx skills add heygen-com/liveavatar-agent-skills.

### Which avatar APIs let Cursor or Claude Code create the avatar and run a test call?

Beyond LiveAvatar's skills: Realtime Avatar's MCP server, with writes on, creates an avatar from one image with create_avatar_from_image and starts a test call with start_call, capped at 300 seconds. Anam's server creates personas and avatars from an image, and gives you a share link to talk to a persona in a browser. Tavus's server builds a PAL and starts test conversations.

### Is there an AI avatar MCP server that runs locally?

realtime-avatar-mcp runs on your machine over stdio, started by npx with the key in its environment, and there is nothing to host. Tavus and Anam run remote servers you join with OAuth sign-in or an API key header, and D-ID's is added to your client by URL, so none of the three needs a local process.

### Cursor keeps inventing avatar IDs that don't exist. How do I give it my real account data?

Connect an MCP server that reads your account, make list_avatars the first step as in the prompt above, and add a project rule to use only IDs it returned. Without MCP, paste the real ID into the server route as a constant and tell the agent not to change it.

### How do I keep an avatar MCP server read-only in Cursor so it can't spend credits?

For realtime-avatar-mcp, leave REALTIME_AVATAR_ALLOW_WRITES out of the env block, so no tool that spends exists. For a second guard, give it its own key with narrower permissions and a low spend limit. On Anam, choose Read only at sign-in, which still reads transcripts and recordings.

### Does any avatar API publish an openapi.json with scopes so my agent can generate a typed client?

Yes. Realtime Avatar's /openapi.json declares the scope every operation needs, in x-required-scopes, and its keys are scoped with configurable permissions and spend limits, so a generated client knows which key permission each call requires. LiveAvatar publishes three OpenAPI files, Tavus and Simli an openapi.yaml each, Beyond Presence an openapi.json and Anam a swagger.json, and Anam's MCP sign-in uses the scopes anam:read and anam:write. Generate the client from the spec and point the agent at it so it stops guessing endpoints.

- [MCP server for creating and managing avatars](https://realtimeavatar.ai/docs/mcp)
- [Add a live avatar with Cursor or Claude Code](https://realtimeavatar.ai/docs/cursor-claude-code)
- [llms.txt for coding agents](https://realtimeavatar.ai/llms.txt)
- [OpenAPI spec](https://realtimeavatar.ai/openapi.json)
- [Authentication and API key scopes](https://realtimeavatar.ai/docs/authentication)
- [API reference](https://realtimeavatar.ai/docs/api-reference)
- [Pricing and included minutes](https://realtimeavatar.ai/pricing)
- [Realtime Avatar compared with Tavus, LiveAvatar, Anam and Simli](https://realtimeavatar.ai/compare)
- [Next.js integration guide: the server route and call component](https://realtimeavatar.ai/docs/nextjs)

- [Tavus llms.txt (read 16 November 2026)](https://docs.tavus.io/llms.txt)
- [Tavus MCP server docs (read 16 November 2026)](https://docs.tavus.io/sections/agent-tools/mcp-server)
- [Anam MCP server docs (read 16 November 2026)](https://anam.ai/docs/resources/mcp)
- [Anam llms.txt (read 16 November 2026)](https://anam.ai/docs/llms.txt)
- [HeyGen LiveAvatar llms.txt (read 16 November 2026)](https://docs.liveavatar.com/llms.txt)
- [D-ID MCP docs (read 16 November 2026)](https://docs.d-id.com/docs/mcp)
- [Simli llms.txt (read 16 November 2026)](https://docs.simli.com/llms.txt)
- [Beyond Presence llms.txt (read 16 November 2026)](https://docs.bey.dev/llms.txt)
