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

How to Set Up a Remote Rive Animation MCP Server in Cursor

By the Charmotion team · Updated · How we write guides

Cover illustration for the guide: How to Set Up a Remote Rive Animation MCP Server in Cursor, with Charmotion demo characters

Add an entry under the mcpServers key in Cursor's mcp.json, giving the remote Rive MCP server's https url. Use ~/.cursor/mcp.json to make it available in every project, or .cursor/mcp.json to limit it to one. OAuth servers need no API key in the file: complete the sign-in, then check that the server's tools load.

Key takeaways

  • A remote Rive MCP server is added to Cursor with a url field under mcpServers, not with a local command.
  • Global servers live in ~/.cursor/mcp.json; project servers live in .cursor/mcp.json inside the project.
  • Keep secrets out of the file: reference environment variables with ${env:NAME} when a server needs a header.
  • OAuth servers sign you in through their own login, so the mcp.json entry holds only the endpoint.
  • Hosted Cloud Agents do not read ~/.cursor/mcp.json, so configure them separately at cursor.com/agents.

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 a remote Rive MCP server do in Cursor?

A remote MCP server runs on someone else's infrastructure, and Cursor connects to it over HTTP. Once connected, the agent gets the server's tools, such as creating a character, adding an animation or exporting a video, without installing anything on your machine.

Remote servers use the Streamable HTTP transport. For sign-in, the Model Context Protocol's remote setup uses OAuth 2.1, where a separate authorization server handles login and tokens while the MCP server accepts the resulting access. Your config file then needs only the endpoint, not a password or key.

Local stdio servers work differently. They start as a child process on your computer and read local files or credentials. The trade-offs are compared in Streamable HTTP OAuth MCP vs local stdio MCP, and Rive's own options are covered in Rive official desktop MCP vs hosted remote MCP.

The steps below use a placeholder endpoint. Replace it with the https URL that your server's documentation gives you.

Where does Cursor read mcp.json?

Cursor reads MCP servers from two JSON files, and a hosted cloud run uses its own settings. The file you edit decides which projects can see the server.

ScopeFileWho reads it
Global~/.cursor/mcp.json in your home folderEvery project opened in the editor or CLI
Project.cursor/mcp.json inside the project folderThat project. The Cursor Terminal UI also reads this file.
Hosted Cloud AgentsServers set at cursor.com/agents and your team's serversCloud Agents do not read ~/.cursor/mcp.json

Use the global file when you want the Rive server in every project. Use the project file when the server only matters for one codebase, or when a team wants the same setup in the repository. Both files share one shape: a top-level mcpServers object with one key per server.

How to configure a Rive animation MCP server in Cursor mcp.json?

Open the file for your chosen scope. If it does not exist, create it and make sure the content is valid JSON. Add a key for the server name, then a url field with the https endpoint. An entry with a url is treated as a remote server, which is the setup this guide covers.

{\n  \"mcpServers\": {\n    \"your-server\": {\n      \"url\": \"https://your-server.example.com/mcp\"\n    }\n  }\n}

Choose a short, lowercase name such as rive-characters, because you will refer to the server by name when you prompt the agent. To add a second server, add another key beside the first inside mcpServers and separate the two entries with a comma. A missing comma is the most common reason the file fails to load.

To limit the same server to one project, copy the identical JSON into .cursor/mcp.json at the project root. Nothing else changes between the two scopes, so you can start global and move the entry later if a project needs it alone.

Rive's editor and CLI are separate from this step. The MCP server creates and exports files for you, while the Rive editor is where you build or inspect artwork by hand. The guide to exporting a Rive animation to MP4 or GIF covers the editor side.

How do you add headers and environment variables safely?

Some remote servers ask for a header, usually an authorization value. Add it in a headers object next to url. Do not paste the secret into the file itself, since mcp.json is often committed to a repository in project scope.

Cursor resolves ${env:NAME} in the url, headers, command, args and env fields. The file holds only the variable name, and the value comes from your environment.

{\n  \"mcpServers\": {\n    \"your-server\": {\n      \"url\": \"https://your-server.example.com/mcp\",\n      \"headers\": {\n        \"Authorization\": \"Bearer ${env:YOUR_SERVER_TOKEN}\"\n      }\n    }\n  }\n}

Set YOUR_SERVER_TOKEN in your operating system's environment before you open Cursor, so the editor can read it. If the variable is missing, the reference resolves to an empty value, and the server will refuse the connection. Only add headers that the server's documentation asks for. An endpoint that uses OAuth does not need one.

How does OAuth sign-in work for a remote MCP server?

For OAuth servers, sign-in happens on the server's own authorization service. You do not create a key in a dashboard and paste it into mcp.json. Your entry holds only the endpoint, and you complete the login when Cursor reaches the server.

Some OAuth servers need static client credentials instead of dynamic client registration. Cursor's MCP documentation says these credentials can be provided in mcp.json. Use this only when the server's own documentation gives you a client ID and secret. The exact field names are on Cursor's MCP page, so copy them from there rather than from a blog post.

Do not reuse a token from one server in another entry. Each server has its own authorization, and a token issued for one endpoint is not meant for a different one.

How do you check the server and make a Rive file with it?

Open Cursor's MCP settings and confirm the server appears with its tools. Then ask the agent in plain language, for example "list the tools from rive-characters". The agent should name them. If the list is empty, the server is not connected yet, and the troubleshooting section below applies.

For a live example, Charmotion's remote server at https://charmotion.app/mcp uses the same shape. It signs in with OAuth, so it needs no headers:

{\n  \"mcpServers\": {\n    \"charmotion\": {\n      \"url\": \"https://charmotion.app/mcp\"\n    }\n  }\n}

Once it is connected, a typical character run uses four tools:

  1. create_character_set takes the animations you choose: launch, happy, wave, loading, thinking, sad, listening, talking, sleeping and attention. Idle is included for free, and each other animation costs 1 credit.
  2. get_character_set returns download links and AI_README integration notes for coding assistants.
  3. export_videos produces MP4, GIF, transparent WebM, transparent MOV and 9:16 launch files in about a minute, without using credits.
  4. add_animations adds more animations later, and only the new ones use credits.

The character comes back as one Rive (.riv) file. It contains CharacterViewModelMachine with a number property named mood, CharacterStateMachine with a number input named mood, and LaunchStateMachine when launch was chosen. Mood 0 is idle, 1 happy, 2 wave, 3 thinking, 4 sad, 5 loading, 6 listening, 7 talking, 8 sleeping and 9 attention. To test the file before it reaches an app, use how to preview a .riv file online.

Rive's Free plan files play a Rive splash screen, and paid plans export without it. The Rive pricing guide explains the tiers, and Charmotion's own plans are listed on the pricing page. The MCP server is documented on the MCP server page.

Why doesn't the server show up in Cursor?

  • Invalid JSON. One missing comma, quote or bracket stops the file from loading. Run the file through a JSON validator before you try again.
  • Wrong key. Servers must sit under mcpServers. An entry at the top level, outside that object, is not read as an MCP server.
  • Wrong file. A server in the global file is not used by hosted Cloud Agents. Add it at cursor.com/agents for cloud runs.
  • Unset variable. A ${env:NAME} reference that points to an unset variable resolves to an empty value. Confirm the variable is visible to the editor.
  • Wrong endpoint. Use the full https URL from the server's own documentation, including any path such as /mcp.

If the server connects but a tool fails, the problem is usually in the request, not the config. Check the server's account status first, since tools that create or export files draw on your plan.

How to configure a Rive animation MCP server in Cursor mcp.json

  1. Choose the scope. Pick the global file ~/.cursor/mcp.json to use the server in every project, or .cursor/mcp.json inside one project to limit it there.
  2. Add the server entry. Under a top-level mcpServers object, add a key with a short server name and a url field containing the server's https endpoint.
  3. Add headers only if required. If the server's documentation asks for a header, add a headers object and reference any secret as ${env:NAME}, with the value set in your environment.
  4. Complete OAuth sign-in. For OAuth servers, sign in through the server's own login when Cursor connects. Do not paste a key into mcp.json.
  5. Verify the tools. Open Cursor's MCP settings, confirm the server is connected and lists its tools, then ask the agent to list them by server name.

Frequently asked questions

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

Not when the server uses OAuth. You sign in through the server's own login, and the mcp.json entry holds only the url. Servers that take a bearer token or another header need that value, which you should keep in an environment variable and reference with ${env:NAME}. Check the server's documentation to see which method it uses.

Can I use the same remote server in Cursor and Claude Code?

You can add it in both, because each client keeps its own configuration file. Cursor reads mcp.json, while Claude Code reads its own JSON setup. Add the same endpoint in each one and sign in separately where OAuth is required.

Does a Rive file made through an MCP server need a paid Rive plan?

Files made on Rive's free tier play a Rive splash screen, while paid tiers export without one, as of December 2026. Check current tier details on Rive's pricing page before you ship, since plan terms can change.

Will hosted Cloud Agents use the server from my global mcp.json?

No. Hosted Cloud Agents do not read ~/.cursor/mcp.json. Add the server at cursor.com/agents, where team servers are also configured, so cloud runs can call it.

Sources

Related guides