How to Connect a Remote Animation MCP Server to Claude Code
By the Charmotion team · Updated · How we write guides

You add a remote animation MCP server to Claude Code by declaring it with type set to http and the server's url, either through the claude mcp add-json command or in a .mcp.json file at the project root. Add headers only when the server needs them, and keep secrets in environment variables.
Key takeaways
- A remote MCP server in Claude Code needs a name, a type set to http (or streamable-http) and a url.
- claude mcp add-json adds one server from the terminal, and a .mcp.json file shares the same entry with a team through version control.
- Project scope writes to .mcp.json at the repo root, while local and user scope are stored in ~/.claude.json.
- An entry with a url but no type is treated as a stdio server and fails as a configuration error.
- OAuth servers answer unauthenticated requests with HTTP 401, and sign-in then completes through the server's authorization server.
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 a remote MCP server to Claude Code?
You need Claude Code installed, the URL of the server's remote endpoint, and an account on the service if the server uses OAuth. A remote server runs on someone else's infrastructure and is reached over HTTP, so there is nothing to install on your machine. That differs from a local server, which Claude Code starts as a child process and talks to over standard input and output (stdio).
Remote servers normally use Streamable HTTP. In the Model Context Protocol, the remote transport uses OAuth 2.1 for login: the MCP server acts as a resource server, and a separate authorization server handles login and tokens. Streamable HTTP was introduced in the 2025-06-18 specification, according to a Stack Overflow Blog explainer on MCP authentication.
The example in this guide is Charmotion's remote server at https://charmotion.app/mcp. Charmotion is our product. The server uses Streamable HTTP and OAuth sign-in, so there is no API key to copy into a config file. Animated previews and guide search work without an account. Designs, character animations and logo builds use your plan. Details are on the MCP server page.
How do you add a remote MCP server with claude mcp add-json?
This section covers how to add a remote animation MCP server to Claude Code from a terminal. The claude mcp add-json command takes a name and a JSON string. For a remote server, set type to http and give the url. Claude Code's MCP documentation also accepts streamable-http as an alias for http.
claude mcp add-json animation '{"type":"http","url":"https://your-server.example/mcp"}'Run the command from your project folder. Then open Claude Code and confirm that the server is listed before you start a task. The name you pick, here animation, is how you refer to the server later when you remove or update it.
If the server needs a header, add a headers object to the same JSON. Use headers only when the server's setup page asks for one. Scope flags are easiest to confirm from the CLI itself, so run claude mcp add --help in your installed version before you write team documentation.
The most common mistake is leaving out type. An entry that has a url but no type is treated as a stdio server, which counts as a configuration error. Always set type on remote entries. If you also use Cursor or Codex CLI, the same endpoint works there, and the setup is covered in the Cursor guide and the Codex CLI guide.
Which scope should you choose: local, project or user?
Third-party setup guides describe three scopes for Claude Code MCP servers. Local is the default when no scope flag is given, and it is stored in ~/.claude.json under the current project. Project scope is written to .mcp.json at the repo root, where it can be committed. User scope makes the server available across all your projects.
| Scope | Where it is stored | Use it when |
|---|---|---|
| Local | ~/.claude.json, under the current project | You are trying the server yourself and do not want it in the repo |
| Project | .mcp.json at the project root | The whole team should get the same server from version control |
| User | ~/.claude.json, available in every project | You use the same server in many repositories |
Those storage details come from third-party guides, not from a dated changelog. Confirm the scope names against your installed version before you document them for a team.
A simple rule works for most teams. Start with local while you test the URL and sign-in. Move to project scope once the entry is final and everyone needs it. Use user scope only for servers you rely on in every repo.
How do you share the server through .mcp.json?
Put the same entry under an mcpServers object in .mcp.json at the project root, then commit the file. Anyone who clones the repo gets the server definition, and Claude Code reads it from the project folder.
{
"mcpServers": {
"animation": {
"type": "http",
"url": "https://your-server.example/mcp"
}
}
}Claude Code expands environment variables inside .mcp.json, according to its official MCP docs. That lets a team share one file while each machine supplies its own values. Keep tokens and other secrets out of the committed file, and reference them from the environment instead.
Only add servers your team trusts. A project entry runs for everyone who opens the repo, so review the URL in the same pull request that adds it. For a single-user setup, local scope is simpler and keeps the file out of version control.
How does OAuth sign-in work with a remote animation server?
A remote server that requires authorization does not accept an unauthenticated request. It replies with HTTP 401 and a WWW-Authenticate Bearer header. That header points to a protected resource metadata URL under /.well-known/oauth-protected-resource on the MCP server. The metadata tells the client which authorization servers the MCP server trusts.
The MCP authorization model is OAuth 2.1, and HTTP-based servers commonly add Proof Key for Code Exchange (PKCE) and Resource Indicators. The client receives a token through the sign-in flow. With OAuth, you do not paste a token into the config, which is why the entry above has no secret in it.
After sign-in, the account behind the connection decides what the tools can do. Many animation servers charge their tools against the plan on that account, so check the server's pricing page and any usage tool it offers before a large batch.
How do you check that the animation tools loaded in Claude Code?
Start a new Claude Code session in the project and ask it to list the server's tools. If the tools appear, the connection works. If Claude Code reports that the server is missing or fails to start, check three things: type is http, the url matches exactly, and the scope is the one you meant. A stale entry under the wrong scope is the usual cause.
Then run one small task before a large one, such as creating a single asset, so you can see how the server charges and returns files. For a logo-and-character setup that follows this path, see how to animate a logo or character from Claude, Cursor or VS Code with MCP.
Charmotion's own hosted endpoint for character and logo animation is described on the MCP server page, and its plan details are on the pricing page.
How to add a remote animation MCP server to Claude Code
- Get the server URL. Copy the remote endpoint from the server's setup page. It should be an HTTPS address that uses Streamable HTTP and, if needed, OAuth sign-in.
- Choose a scope. Use local scope while you test, project scope when the whole team should share the server through .mcp.json, and user scope when you use it in many repositories.
- Add the server with claude mcp add-json. Run claude mcp add-json with a name and a JSON string that sets type to http and the url. Set the scope flag you chose after checking claude mcp add --help.
- Share it through .mcp.json. For a shared repo, put the same entry under mcpServers in .mcp.json at the project root and commit the file. Keep secrets in environment variables, not in the file.
- Complete sign-in. If the server uses OAuth, complete the sign-in it asks for. The server returns HTTP 401 until the client has a valid token.
- Test the connection. Start a new session and ask Claude Code to list the server's tools. Seeing them confirms the server works.
Frequently asked questions
Does a remote animation MCP server need an API key in Claude Code?
It depends on the server. Some servers use OAuth sign-in and no API key, so the config holds only the type and url. Others may ask for a header or a token. Check the setup page of the server you are connecting, and keep any secret in an environment variable rather than in the committed .mcp.json file.
Can I use the same remote server in Cursor or Codex CLI?
Usually yes, because both clients document remote HTTP endpoints. Cursor takes a remote server's endpoint URL in its mcp.json file. Codex CLI declares remote HTTP servers in config.toml. The file format differs in each client, so follow that client's own configuration documentation.
Why does Claude Code report a configuration error for my server?
The most common cause is an entry with a url and no type. Claude Code treats that as a stdio server and reports a configuration error. Add "type": "http" to the entry, or use streamable-http, which the official docs list as an alias, then restart the session.
Do I pay to connect a remote animation server?
Connecting itself is usually free, but the tools a server runs may draw on your plan's credits. Check the server's pricing page for what each action costs and whether exports or previews are included, as of December 2026.
Sources
- Model Context Protocol: Connecting MCP servers (Claude Code), Anthropic
- Is that allowed? Authentication and authorization in Model Context Protocol, Stack Overflow Blog
- How Claude Code uses MCP servers, Builder.io
- MCP JSON configuration reference (2026), Prompt Shelf
- Charmotion MCP server, Charmotion
Related guides
- How to Animate a Logo or Character From Claude, Cursor or VS Code With MCP
- How to Set Up a Remote Rive Animation MCP Server in Cursor
- How to Configure a Remote Animation MCP Server in OpenAI Codex CLI
- Streamable HTTP OAuth MCP vs. Local stdio MCP for Design and Animation Workflows
- How to Create Interactive Rive Character Animations in Claude Desktop via MCP