Streamable HTTP OAuth MCP vs. Local stdio MCP for Design and Animation Workflows
By the Charmotion team · Updated · How we write guides

Choose local stdio when your design assets live on your machine and only you need them: the host launches the server as a child process and talks over standard input and output. Choose remote Streamable HTTP with OAuth when a hosted asset library must serve several people or devices, because a separate authorization server handles sign-in and tokens.
Key takeaways
- Local stdio runs as a child process on your machine and needs no hosted endpoint or sign-in service.
- Remote Streamable HTTP uses OAuth 2.1, with a separate authorization server handling login and tokens.
- Use stdio for private local exports and one designer; use remote OAuth for a library several people share.
- Local HTTP servers need Origin checks and OAuth to block DNS rebinding attacks.
- Config schemas differ by host, so check each client's documentation before copying a snippet.
What is the difference between Streamable HTTP and stdio in MCP?
The core decision in Streamable HTTP remote OAuth MCP vs local stdio MCP for design assets is where the server runs and who can reach it. Model Context Protocol (MCP) defines transports, the ways a client such as Claude Code, Cursor or VS Code exchanges messages with a tool server. Two of them matter for design and animation work.
- stdio. The host starts the server as a child process and exchanges newline-delimited JSON-RPC messages through its standard input and output. The server runs on the same machine as the client.
- Streamable HTTP. The server runs at an HTTP endpoint that clients reach over the network. For protected remote servers, MCP's authorization model uses OAuth 2.1.
The 2026-07-28 revision of the transport specification still lists stdio as a standard binding. The 2025-06-18 revision says clients should support stdio whenever possible.
How does OAuth work with a remote Streamable HTTP MCP server?
In MCP's model, the client is an OAuth 2.1 client and the MCP server is an OAuth 2.1 resource server. A separate authorization server handles login and issues tokens, so the MCP server does not run its own login system.
- The client sends a request to the MCP endpoint with no token.
- The server answers HTTP 401 with a WWW-Authenticate Bearer header that points to a metadata URL under /.well-known/oauth-protected-resource.
- That metadata names the authorization servers the MCP server trusts.
- The client signs the user in through one of them, using Proof Key for Code Exchange (PKCE), and receives a token.
- The client sends the token with later requests, and the server checks it before running any tool.
The feature list for HTTP-based MCP includes OAuth 2.1, PKCE, Protected Resource Metadata and Resource Indicators. For a design asset library, the practical result is that each person signs in with their own account, and access follows that account rather than a shared key pasted into a config file.
When does a local stdio MCP server make sense for design files?
A stdio server fits work that stays on your machine: reading a folder of exported PNG, SVG or PSD files, a brand color file, or a folder of .riv files, and writing results beside them. Nothing has to be hosted, and nothing has to sign in to a remote service.
Credentials usually reach a local server through environment variables. The Claude Code guide notes that stdio servers inherit the process environment for authentication, while Streamable HTTP uses OAuth. Keep secrets out of a project file that you commit, such as a shared .mcp.json.
The Model Context Protocol reference servers repository says every server there serves stdio by default and opens no network port in that mode. That makes stdio a sensible starting point for one designer testing a new tool. The AI SDK documentation draws the same line: stdio is for local servers and is not suited to production deployment, where it recommends HTTP transport.
What are the security risks of each transport?
Each transport moves the risk to a different place.
- Remote servers sit on a public address. They need HTTPS, OAuth checks on every request and careful token handling. Token lifetimes and limits are set by the authorization server and the server's own documentation.
- Local HTTP servers need care too. The 2024-11-05 transport text warns that without protections, attackers could use DNS rebinding to reach a local MCP server from a remote website. Descope describes localhost Streamable HTTP with OAuth authorization and Origin header validation.
- stdio servers open no port, so that attack does not apply. The tools still act with your user account, so limit a file tool to one export folder and review what its tools can write.
The transport text also sets message rules for stdio. The server must write nothing but MCP messages to stdout (2024-11-05), and the client must not write anything to the server's stdin that is not a valid MCP message (2025-06-18). Breaking those rules corrupts the session.
How do you configure stdio and remote MCP servers in a client?
Each host keeps its own config file, and the exact schema differs, so check the host's documentation before copying a snippet. The shapes below show the common pattern.
In Claude Code, a stdio server is added with a transport flag, a name and the launch command:
claude mcp add --transport stdio <name> <launch command>Project scope lives in a .mcp.json file at the repo root, which is version-controlled, so keep secrets out of it. A stdio entry names a command, optional args and an env block:
{
"mcpServers": {
"design-assets": {
"command": "node",
"args": ["./server.js"],
"env": { "ASSET_DIR": "./exports" }
}
}
}A remote entry swaps command and args for a url field, with optional headers. The client then handles the OAuth sign-in described above, so no API key needs to sit in the file.
Which transport should a design or animation team pick?
Pick by who needs the assets and where they live.
| Question | Local stdio | Remote Streamable HTTP with OAuth |
|---|---|---|
| Where it runs | Same machine as the client | Hosted endpoint reached over HTTP |
| Sign-in | Environment variables or the server's own login | OAuth 2.1 through a separate authorization server |
| Best for | Local exports, private files, one designer | Shared asset library, several people or devices |
| Network exposure | None in stdio mode | Public endpoint that must be protected |
| Production guidance | AI SDK docs: local servers only | AI SDK docs recommend HTTP for production |
A practical sequence is to start with stdio on one designer's machine to prove the workflow, then move to a remote OAuth server once a second person or device needs the same library. For a wider view of hosted options, see Rive's desktop MCP compared with a hosted remote MCP.
How does Charmotion's MCP server use this model?
Disclosure: Charmotion is our product. Charmotion runs a remote MCP server at https://charmotion.app/mcp using Streamable HTTP, with OAuth sign-in and no API key, so it follows the remote path described above. Clients such as Claude, Cursor, VS Code and Codex connect to it, and designs, character animations and logo builds use your plan's allowance. Call get_account to see what is left.
The tools and setup steps are on the MCP server page. For a walkthrough in one client, read how to connect a remote animation MCP server to Claude Code, or compare no-API-key OAuth MCP servers for design and motion assets.
Frequently asked questions
Can one server offer both stdio and Streamable HTTP?
The transport is set in each client's entry, but a server supports a transport only if its code implements it. Check the server's own documentation before assuming both options exist. The MCP transport pages describe protocol rules, not which products implement them.
Does a local stdio server need OAuth?
Stdio servers usually take credentials from environment variables that the host passes when it starts the process. The transport pages do not describe an OAuth flow for stdio, so check the server's own documentation for any login step (as of December 2026).
Is a remote MCP server always safer than a local one?
No. A remote server removes local file access but adds a public endpoint that needs HTTPS, OAuth checks and careful token handling. A local stdio server opens no network port by default, yet it runs with your user account's permissions, so limit the folders it can read.
Do I need to host anything for a stdio server?
No hosting is needed. The client launches the server process on your machine, so you only need the runtime the server uses, such as Node.js or Python, installed locally. A remote server needs a hosted endpoint, a TLS certificate and an authorization server.
Sources
- MCP transports, specification revision 2026-07-28, Model Context Protocol
- MCP transports, specification revision 2025-06-18, Model Context Protocol
- Is that allowed? Authentication and authorization in Model Context Protocol, Stack Overflow Blog
- Model Context Protocol (MCP) guide, Descope
- MCP Tools (AI SDK Core), Vercel AI SDK
- Charmotion MCP server, Charmotion
Related guides
- How to Connect a Remote Animation MCP Server to Claude Code
- Rive Official Desktop MCP vs. Hosted Remote MCP: Which Should Developers Use?
- No-API-Key OAuth MCP Servers for Frontend Design and Motion Assets
- Best MCP Servers for UI Animation, Mascots, and Motion Assets in 2026
- How to Animate a Logo or Character From Claude, Cursor or VS Code With MCP