Skip to content
Limited timeStarter is now $9 a month instead of $20.See plans
charmotion

How to Add a Remote Rive Animation MCP Server to Zed

By the Charmotion team · Updated · How we write guides

Cover illustration for the guide: How to Add a Remote Rive Animation MCP Server to Zed, with Charmotion demo characters

Point Zed at the server's address: open Settings, go to AI, then MCP Servers, choose Add Remote Server and enter the URL. If the server uses OAuth sign-in and no Authorization header is set, Zed starts the standard MCP sign-in. Once connected, the agent can call the server's tools from chat, and the .riv files those tools produce load in any Rive runtime.

Key takeaways

  • Zed adds remote MCP servers from Settings, then AI, then MCP Servers, or from a context_servers entry in settings.json.
  • A remote entry needs a url; headers are optional and usually unnecessary when the server uses OAuth sign-in.
  • When no Authorization header is configured, Zed prompts for the standard MCP OAuth sign-in.
  • Use enabled and context_server_timeout to pause a server or allow slow tool calls.
  • Check plan limits and credits before running generation tools, because those use your account.

Already have a character or logo? See examples in real app screens: splash, onboarding, loading and empty-state screens, with the animation that plays in each.

What do you need before you add the server in Zed?

Zed calls Model Context Protocol servers context servers, and its agent can use their tools and prompts. Before you start you need three things: a current Zed build, the HTTPS address of a remote MCP server, and an account with that server if it asks you to sign in.

This guide covers how to add a remote Rive animation MCP server to Zed editor, from the settings page and from settings.json, then shows what to check after the first connection. For background on the protocol itself, read Streamable HTTP OAuth MCP vs local stdio MCP.

How do you add a remote server from the Zed settings page?

Zed's MCP docs describe an Add Server control that lets you choose Add Local Server or Add Remote Server. For a remote server:

  1. Open Zed's settings and go to AI, then MCP Servers.
  2. Select Add Server, then Add Remote Server.
  3. Paste the server's HTTPS address from its documentation.
  4. If Zed asks you to sign in, finish the sign-in in your browser and return to Zed.

If you prefer to edit files, write the same entry by hand. Open the settings file from Zed's settings page, so you edit the file your version uses, instead of typing a path from an older article.

What does a context_servers entry look like in settings.json?

Zed stores MCP servers under a context_servers object in settings.json, and each server gets an ID you choose. A remote entry takes a url and optional headers. The example below uses a placeholder address; replace it with the URL your server gives you.

{
  "context_servers": {
    "rive-animation": {
      "url": "https://your-server.example/mcp",
      "enabled": true
    }
  }
}
FieldPurposeNotes
urlAddress of the remote serverRequired for a remote entry
headersExtra HTTP headers sent with requestsOptional. Leave it out when the server uses OAuth sign-in
enabledTurns the server on or offSet to false to turn it off

A local server uses command, args and env fields in the same object instead. Keep each server under its own ID so you can switch one off without touching the others.

How does sign-in work when the server has no Authorization header?

When a remote server has no Authorization header configured, Zed prompts for sign-in using the standard MCP OAuth flow. The MCP specification's Streamable HTTP transport uses OAuth 2.1 for this: a separate authorization server handles login and issues tokens, and the MCP server accepts them.

In practice you approve access in your browser, return to Zed, and the server's tools appear for the agent. A static Authorization header stops that prompt, so add one only when the server gives you a token to use.

Remote servers differ from local ones in one practical way. A remote server runs elsewhere, so the sign-in identifies your account to that server. A local server in Zed runs as a process on your machine, started from the command, args and env fields.

Do not paste API keys into settings.json unless the server documents that method. OAuth keeps the token out of your settings file.

What can an agent do with a connected Rive character server?

Charmotion runs a remote MCP server at https://charmotion.app/mcp. It uses Streamable HTTP with OAuth sign-in and needs no API key, so it works as a worked example for the steps above. Use without an account covers animated previews and guide search. Designs, character animations and logo builds use your plan, and the get_account tool shows what is left.

  • design_character makes a character with AI (1 credit) or starts from your own image.
  • create_character_set builds the character with the animations you pick. Idle is free; each other animation costs 1 credit. Launch, happy, wave and loading are preselected.
  • add_animations adds more animations later, and only the new ones use credits.
  • get_character_set returns download links and AI_README notes for coding assistants.
  • export_videos makes MP4, GIF, transparent WebM, transparent MOV and 9:16 launch files. Exports do not use credits.

Check get_account first, then ask the agent for a character set. The output is one Rive (.riv) file with CharacterViewModelMachine (data binding with a number property named mood), CharacterStateMachine (number input mood) and, when launch is picked, LaunchStateMachine. Mood 0 is idle, 1 happy, 2 wave, 3 thinking, 4 sad, 5 loading, 6 listening, 7 talking, 8 sleeping and 9 attention.

For plan details, see pricing, and for the tool list see the MCP server page. To change states later, follow adding mood states over MCP.

Disclosure: Charmotion is our product. It is the server used as the example here. Any remote Rive animation server follows the same Zed steps, though its tools and sign-in will differ.

What should you check when the server does not respond?

Most problems come down to a few causes. Check them in this order.

  • Confirm enabled is not set to false and that the URL matches the server's address exactly, including https.
  • If sign-in fails, remove any static Authorization header that may be out of date, then try again.
  • If a call times out, raise context_server_timeout. Zed's default is 60 seconds, and timeouts are capped at 600 seconds.
  • Ask the agent to list the server's tools. If they are missing, the server did not connect, so return to the settings page and recheck the entry.

Zed also forwards MCP servers configured in Zed to External Agents over the Agent Client Protocol, so an external agent you run from Zed can use the same tools.

Tool calls that create files are easier to trust when you inspect the output. Before you commit a .riv file to a project, preview it using how to preview MCP-generated Rive animations.

How do the .riv files from an MCP server reach your app?

A .riv file bundles the artboards, animations, state machines, data binding settings and other information made in the editor. It loads directly into a website or mobile app. The .rev format is for backups and editing, and runtimes cannot load .rev files.

Rive's runtimes are open source and play any .riv file. The free plan's exports play a Rive splash screen, and paid plans export without it. For the plan differences, see is Rive free.

The Rive CLI, installed from rive.app/cli, builds animations from the command line, so a team can script exports next to its code. Store the .riv file beside the component that loads it, and keep the state input names in one place so the app code and the file stay in step. For how those inputs work, see Rive state machines.

How to add a remote Rive animation MCP server to Zed

  1. Open MCP settings. Open Zed's settings and go to AI, then MCP Servers.
  2. Add a remote server. Select Add Server, then Add Remote Server.
  3. Enter the URL. Paste the server's HTTPS address from its documentation.
  4. Sign in. If Zed asks, complete the MCP OAuth sign-in in your browser and return to Zed.
  5. Confirm the connection. Keep enabled set to true, then ask the agent to list the server's tools.

Frequently asked questions

Does Zed need a stdio bridge to reach a remote server?

Zed's MCP documentation describes remote servers as entries with a url, and this guide follows that setup. If your version behaves differently, check the current transport details on zed.dev/docs/ai/mcp before you rely on either approach.

Do I need an API key for a remote Rive MCP server?

Not when the server uses OAuth sign-in. Zed opens the sign-in flow in your browser, so no key goes into settings.json. Servers that rely on a token require a header instead, and you should add that only if the server documents it.

Is MCP included in every Zed plan?

Zed does not document whether MCP is included in each plan (as of December 2026). Check zed.dev for current plan details before you depend on it for a team.

Can someone play the .riv file without a Rive account?

Yes, for playback. Rive's runtimes are open source and play any .riv file in a website or app. Account plans affect editing and export settings, so check the plan differences before you ship an export.

Sources

Related guides