How to Add New Mood and Animation States to a Rive Character via MCP
By the Charmotion team · Updated · How we write guides

Ask your MCP-connected assistant to call add_animations with only the moods you are missing, then download the updated .riv and wire the new mood numbers into your code. Existing animations and their mood numbers stay as they are, and only the newly added animations use credits. Custom moods beyond the fixed list of ten need editing in Rive instead.
Key takeaways
- Adding a state to a character means choosing one of the fixed moods, because the mood list does not grow over MCP.
- Mood is a number input, so your code sets a value rather than firing a trigger.
- Only newly added animations use credits, and idle is always included for free.
- Test every mood from 0 to 9 before shipping, and keep the names in one mapping file.
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.
Which animation states can a Rive character have?
A mood is a number that a Rive state machine reads to decide what the character is doing. The character output uses a fixed list, so adding a state means choosing from that list rather than inventing a new number. Idle (mood 0) is always included for free. Each other animation costs one credit when it is added to the character.
| Mood number | Animation | Typical use in an app |
|---|---|---|
| 0 | idle | Resting state with breathing and blinking (always included) |
| 1 | happy | Success, a finished step, positive feedback |
| 2 | wave | Greeting or the start of onboarding |
| 3 | thinking | Processing, or an AI reply being prepared |
| 4 | sad | Error, failed action or an empty result |
| 5 | loading | Waiting for a network call or an upload |
| 6 | listening | The app is taking microphone or typed input |
| 7 | talking | An assistant speaking or streaming text |
| 8 | sleeping | Inactive screen or an idle timeout |
| 9 | attention | A reminder or something that needs the user |
Launch is not a mood. It is a separate intro that plays once in LaunchStateMachine and then settles on idle. Characters have no one-shot triggers for success or error, so show a success with happy and an error with sad.
Moods blend into each other, so a change from happy to thinking animates through the transition instead of cutting. Some moods show small accents, such as Z z z while sleeping or sparkles when happy. These are on by default, and the boolean accents hides them.
How are mood values read and set in a Rive state machine?
Rive state machine inputs come in three types: number (a float value), boolean (true or false) and trigger (a one-shot signal). The mood input is a number input named mood in CharacterStateMachine, so your code sets a value rather than firing an event. The Rive help documentation says a state machine's changes can be driven by setting boolean or double-value inputs, or by firing trigger inputs.
In the web runtime, you list a state machine's inputs with stateMachineInputs, find the input you need by its name, and set its value property. The snippet below assumes that a Rive instance named rive is already loaded from your .riv file.
const inputs = rive.stateMachineInputs('CharacterStateMachine');
const mood = inputs.find((input) => input.name === 'mood');
mood.value = 1; // happyOther runtimes follow the same pattern with their own calls. The Android runtime help lists separate methods for number, boolean and trigger values, called through the view. In Flutter, you create a state machine controller from an artboard and a state machine name, then read the inputs from controller.stateMachine.inputs. Check the exact method names against the runtime version you ship, because the documentation changes between releases.
If your build binds to ViewModel properties instead, write to the mood property in CharacterViewModelMachine. The number you send is the same either way, so the mapping in your code does not change. Keep the input name exactly as delivered, since a renamed input will silently stop responding.
How to add new animation states to an existing Rive character using MCP?
Charmotion's remote MCP server is at https://charmotion.app/mcp. It uses Streamable HTTP and OAuth sign-in, so you connect it from your assistant without an API key. Sign in with the account that owns the character, then work through three steps.
- Read the current set. Ask the assistant to call get_character_set. It returns the animations the character already has, download links and AI_README integration notes.
- Add the missing moods. Ask it to call add_animations with only the new animations. More animations can be added to the same character later, and only the new ones use credits.
- Download the updated files. Call get_character_set again to get the updated .riv file and the current links.
A prompt like this one gives the assistant clear instructions:
Using my existing Charmotion character set, add the sad and listening animations with add_animations. Then call get_character_set and give me the download links and the mood number for each animation.Check your balance before you add anything. Call get_account to see what is left on your plan. Character animations need a paid plan, and each new animation costs one credit. Plan details are on the pricing page, and setup notes for the server are on the MCP server page.
How do you wire the new mood numbers into your app code?
Keep the mapping in one place so the rest of the app uses names instead of numbers. A small object in code is enough for the ten moods, and it means a later change to the file touches only one line.
export const MOOD = {
idle: 0,
happy: 1,
wave: 2,
thinking: 3,
sad: 4,
loading: 5,
listening: 6,
talking: 7,
sleeping: 8,
attention: 9,
} as const;
export function setMood(rive, name) {
const input = rive.stateMachineInputs('CharacterStateMachine')
.find((i) => i.name === 'mood');
if (input) input.value = MOOD[name];
}Then connect app events to names. A finished upload calls setMood(rive, 'happy'), a failed request calls setMood(rive, 'sad'), and a stream that starts calls setMood(rive, 'talking'). Only the states your screens use need calls, and the other moods can stay in the mapping for later.
The AI_README in the download covers integration notes for that file version, so give it to your coding assistant along with this mapping. If the character sits on a marketing site, the embed steps depend on the builder. See adding Rive and Lottie to Webflow or adding Rive and Lottie to Framer. For the logic that picks a mood from app state, read how to drive Rive character mood states from app state.
How do you test new states before you ship them?
New states fail in predictable ways: a mood number is off by one, an input name is misspelled, or a transition looks abrupt on a real screen. A short test pass catches all three before users see them.
- Open the .riv in the Rive file inspector and confirm that CharacterStateMachine has a number input called mood and that CharacterViewModelMachine has the mood property.
- Step mood through every value your app uses, and watch each transition. Blends should look continuous rather than cut.
- Toggle the boolean accents on and off, then decide whether the sparkles or Z z z suit each screen.
- Confirm that the success path shows happy and the error path shows sad, since those are the only one-shot substitutes available.
- Use the mascot state planner to map each app screen to one mood before you write the wiring.
Keep your test values within the fixed range from 0 to 9. Exports for review are a separate step: export_videos produces MP4, GIF and transparent WebM or MOV copies for stakeholders without using credits, so the team can approve the motion before the code ships.
What if you need a state that is not in the list?
The mood numbers are fixed, so the MCP route cannot add a custom mood such as a payment-processing pose or a level-up dance. Three options cover most cases.
- Map it to the nearest mood. Most one-shot events fit an existing mood. Success is happy, an error is sad, and a reminder is attention.
- Add a second signal in the Rive editor. A boolean input can sit beside the mood and be read by your app. Rive's Free plan exports play a splash screen, so check whether Rive is free for your use before you ship.
- Hire the change. A Rive animator can build bespoke states into the file. See how to hire a Rive animator for what to ask for.
Scope matters here. A character with up to eleven animations covers most product moments, and a state beyond that list is a design decision rather than a configuration step. The MCP route is the fastest way to add the standard moods to a character you already own.
How to add new animation states to an existing Rive character using MCP
- Read the current set. Ask your MCP-connected assistant to call get_character_set. Note which animations and mood numbers the character already has.
- Choose the missing moods. Map each app screen to a mood number from the fixed list of ten, such as happy for success or sad for an error.
- Add only the new animations. Ask the assistant to call add_animations with just the missing animations. Check get_account first, since each new animation costs one credit and idle is free.
- Download the updated files. Call get_character_set again to get the updated .riv file, the download links and the AI_README.
- Wire the mood numbers. Keep a mapping object from names to mood numbers, then set the mood number input in CharacterStateMachine from your app events.
- Test every state. Step mood from 0 to 9 in a test page, check each transition and accent, and confirm the success and error paths show happy and sad.
Frequently asked questions
Does adding a new animation change the character's existing states?
No. The server documentation says more animations can be added to the same character later, and only the new ones use credits. The existing mood numbers stay the same, so code that already sets them keeps working. Download the updated file and retest the states you changed.
Which MCP clients can connect to the remote animation server?
The server is built for Claude, Cursor, VS Code, Codex and other MCP-capable assistants. It is a remote server at https://charmotion.app/mcp that uses Streamable HTTP and OAuth sign-in, so no API key is needed. Free use without an account covers animated previews and guide search.
Do I need to re-export videos after adding a state?
Only if you use the videos. export_videos creates MP4 at 1080x1080 and 60 fps, GIF, transparent WebM, transparent MOV and a 9:16 launch MP4 in about a minute. Exports do not use credits.
Can I rename the mood input?
Keep the names as delivered. The file names the input mood in CharacterStateMachine and the property mood in CharacterViewModelMachine, so map your code to those names. Read the AI_README for the version you downloaded.
Sources
- State machines (Rive help), Rive
- Rive Editor, Rive
- Rive pricing, Rive
- Charmotion MCP server, Charmotion
Related guides
- Rive State Machine: Inputs, Triggers & Moods
- How to Drive Rive Character Mood States (idle, happy, wave, loading) from App State
- Rive Data Binding vs. State Machine Inputs: When to Use Each & Migration Guide
- Mascot Animation States: Loading, Success, Error
- How to Animate Your Own Character With AI: Pick the Method by Goal