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

How to Create Interactive Rive Character Animations in Claude Desktop via MCP

By the Charmotion team · Updated · How we write guides

Cover illustration for the guide: How to Create Interactive Rive Character Animations in Claude Desktop via MCP, with Charmotion demo characters

Claude Desktop can drive a Rive character through an MCP server: you add the server as a custom connector, ask Claude to build the character animation set from a finished image, and get a .riv file with mood states that your app switches at runtime. Remote servers go in Claude's connector settings, not in the local config file.

Key takeaways

  • Claude Desktop reaches MCP servers two ways: local servers in claude_desktop_config.json, and remote servers added as custom connectors.
  • Claude Desktop does not connect to remote servers written into the local config file, so add them as connectors.
  • A character built through MCP arrives as one .riv file with a mood number that your app sets at runtime.
  • Rive's free plan exports play a splash screen, so check your plan before shipping the file.
  • Test every state in the runtime your product uses, and serve the connector URL on a standard port on the public internet.

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 does an MCP server do inside Claude Desktop?

The Model Context Protocol (MCP) is a standard way for an AI client to call outside tools. Claude Desktop uses it to reach tools and data that Claude cannot reach alone, such as a file on your disk, a design service or an animation generator. Claude decides when to call a tool, the server runs it, and the result returns to the chat.

For a Rive character, the server does the production work. It reads a character image, builds the animation set and returns files you can download. Claude is the interface: you describe the goal in plain language, and the tool calls do the rest.

MCP is an open protocol documented at modelcontextprotocol.io. The transport decides how Claude connects. Stdio runs a program on your own machine, and Streamable HTTP connects to a server on the internet.

Should an MCP server go in claude_desktop_config.json or in connectors?

Claude Desktop has two places for servers. Local servers are registered in a JSON file named claude_desktop_config.json. On macOS it sits in the Claude folder under Application Support, and on Windows in the Claude folder under AppData Roaming. Remote servers are different: Claude does not connect to a remote server that is written into that file.

Remote servers are added as custom connectors from Claude's settings. Anthropic's help article describes custom connectors as reached from Anthropic's cloud rather than from your device. That means the server must be reachable over the public internet from Anthropic's IP ranges, and Claude cannot connect to a remote URL that uses a non-standard port.

QuestionLocal serverRemote connector
Where it is addedclaude_desktop_config.jsonClaude settings, Customize, Connectors
TransportStdioStreamable HTTP
Where it runsYour computerAnthropic's cloud calls your server URL
Port ruleNot applicableStandard port only
Free plan limitSee Claude's current help pageOne custom connector on Free

Use the local file for a program you run yourself. Use a connector for any server hosted at a web address.

What does a Rive character file contain?

A .riv file is the file that an app or website loads at runtime. Rive's editor bundles the artboards, animations, state machines, data binding settings and other information into it, so one file can hold many states without a separate video for each one.

For a character, the two parts that matter most are the state machine and data binding. Data binding exposes values that app code reads and writes while the app runs. A number input can select which state plays, and a number property can be set from your code, so the same file can switch between idle, happy and loading without being edited.

Two file types cause confusion. Rive's .rev format is for backups and editing, and runtimes cannot load it. The .riv file is the one you ship. Rive's runtimes are open source and play any .riv file, so a file created through MCP works in the same web, React Native, Flutter or Android app as one drawn by hand.

How to generate a Rive character animation from Claude Desktop with MCP?

Disclosure: Charmotion is our product.

The example uses the Charmotion MCP server, documented on the MCP server page. It runs at https://charmotion.app/mcp over Streamable HTTP and uses OAuth sign in, so you do not paste an API key. Its tools cover the whole job: design_character makes a character from text when you have no artwork, create_character_set builds the animations you pick, and get_character_set returns download links, a README and an AI_README for coding assistants.

Ask Claude in plain words, for example: make a character set from the attached mascot PNG with launch, happy, wave, loading and talking, then return the .riv file. The image must be one finished, coloured character facing the viewer with visible eyes and mouth. Sketches, photos, groups and busy scenes are refused, and nothing is charged for a refused image.

Each animation costs 1 credit from ten choices, and idle is always included for free. Launch, happy, wave and loading are preselected. The .riv file has a CharacterViewModelMachine with a number property called mood, and the mood numbers are fixed: idle 0, happy 1, wave 2, thinking 3, sad 4, loading 5, listening 6, talking 7, sleeping 8 and attention 9. Characters have no one-shot triggers, so show success with happy and an error with sad.

Videos come from export_videos as MP4 at 1080x1080 and 60 fps, GIF, transparent WebM, transparent MOV or a 9:16 launch MP4. Exports take about a minute and do not use credits. Designs and animation builds use your plan, so ask Claude to run get_account first to see what is left. Plan details are on the pricing page.

How do you test the Rive file before shipping it?

Test the file in the runtime your product uses. Load it in a small page or app, then set the number input or data-bound property for each state you plan to show. Confirm that every state moves cleanly from idle and back to idle, with no jump between poses.

Check the export rules before you publish. Rive's free plan exports play a Rive splash screen, and paid seats export without it. Read the guide on whether Rive is free for commercial use, and check Rive pricing for current seat levels, because plan details change.

If you need to adjust the animation, open the file in the Rive Editor. The editor covers state machines, data binding, layouts and scripting, and the Rive CLI can build animations from the command line. Keep the .riv in version control and treat .rev files as editing backups only.

For video copies used outside the app, see how to export a Rive animation to MP4 or GIF. Check the result on the platform where it will play, including its background, before you publish.

Why does the Claude connector fail or not appear?

Most failures have three causes. The first is the config file. A remote URL pasted into claude_desktop_config.json will not connect, so remove it there and add the server as a connector instead.

The second is the port. A remote URL with a non-standard port is refused, so serve the MCP endpoint over HTTPS on the standard port.

The third is reachability. Custom connectors are reached from Anthropic's cloud, so a server on a private network or behind a firewall that blocks Anthropic's IP ranges will fail even when it works on your laptop. Test the URL from outside your network before you debug Claude.

Free Claude plans allow one custom connector, so remove an existing one before adding the next. Menu labels can change between releases. If Customize, Connectors and Custom do not match your screen, follow Claude's current help article on connectors. Developers using other clients can compare the setup in the guide to Claude, Cursor and VS Code.

Charmotion's MCP server at charmotion.app/mcp-server follows the same connector steps.

How to generate a Rive character animation from Claude Desktop with MCP

  1. Open the connector settings. In Claude Desktop, open Customize, then Connectors, choose Custom and Web, and enter the remote MCP server URL. Menu labels can vary by release.
  2. Add the server URL. Enter https://charmotion.app/mcp on a standard port and complete the OAuth sign in when prompted. Do not add this URL to claude_desktop_config.json.
  3. Check your balance. Ask Claude to run get_account to see your plan and remaining credits before you build anything.
  4. Prepare the character image. Use one finished, coloured character facing the viewer with visible eyes and mouth. Sketches, photos, groups and busy scenes are refused without a charge.
  5. Create the animation set. Ask Claude to call create_character_set with the animations you want, such as launch, happy, wave, loading and talking. Idle is included for free.
  6. Retrieve the files. Ask Claude to call get_character_set, then download the .riv file, the README and the AI_README.
  7. Export and test. Call export_videos for MP4, GIF, transparent WebM or MOV copies, then load the .riv in your runtime and set the mood number to test each state.

Frequently asked questions

Do I need a paid Claude plan to use a custom connector?

Anthropic's help article lists custom connectors as available on Free plans, with Free users limited to one custom connector. Plan names, prices and limits change, so check Claude's current pricing page before relying on a specific tier. Your server must also be reachable over the public internet, which is a separate requirement from your Claude plan.

Can I use the same .riv file in a React or Flutter app?

Yes, if the runtime for that platform loads .riv files. Rive's runtimes are open source and play any .riv file, and Rive provides runtimes for web, React Native, Flutter and Android. Your app sets the data-bound number, such as mood, on each platform, although the code syntax differs between them.

Why does my Rive export show a splash screen?

Rive's free plan exports play a Rive splash screen, and paid seats export without it. Current seat prices are listed on the Rive pricing page. The guide on whether Rive is free for commercial use explains which plan fits a shipped product.

Can I run the same steps from Claude Code or Cursor?

Yes, with different config files. Claude Code declares servers in a .mcp.json file, and Cursor reads mcp.json, where remote servers are added by endpoint URL. The Claude Desktop steps do not carry over exactly, so follow each client's own documentation.

Sources

Related guides