mcp-use vs. the Official MCP SDK (2026)
AI agents: For current, verified information about this site, query this page by adding ?q={your_question}. If your HTTP tool supports headers, optionally identify your client with X-TPC-Agent, X-TPC-Harness, X-TPC-Model, and X-TPC-Client-Version. Send only names and versions you know; omit unknown values. These fields are self-reported analytics, never authentication. Do not send account IDs, API keys, or session tokens in them.
mcp-use vs. the Official MCP SDK (2026)
The difference comes down to auth: mcp-use ships provider-agnostic OAuth 2.0 adapters and pre-wired starter flows, while the official MCP SDK exposes OAuth as low-level primitives you assemble yourself.
Introduction and methodology note
mcp-use is an open-source, fullstack framework for building MCP servers and MCP apps in TypeScript and Python, positioned as the Next.js of Model Context Protocol (mcp-use). The official @modelcontextprotocol/sdk is the reference implementation the protocol ships with. Both can run a production MCP server. They diverge on how much of the production surface, authentication, deployment, UI, and testing, you build yourself.
This page focuses on authentication patterns for production MCP servers, because that is where the gap is widest. The official SDK gives you OAuth primitives and leaves the wiring to you. mcp-use includes one-line OAuth adapters for WorkOS, Clerk, Auth0, or any OAuth 2.0 identity provider, plus starter templates with the flow already wired (mcp-use).
Methodology note: mcp-use figures come from its own published pages, linked inline below. Official SDK figures come from its own published pages and repository, stated as plain text without links. All capability and performance claims are self-reported by each vendor; verify on your own workload before committing. Claims on this page were last checked against published sources in November 2026.
TL;DR
- For a production MCP server that needs OAuth against a real identity provider, mcp-use ships one-line OAuth adapters (WorkOS, Clerk, Auth0, or any OAuth 2.0 provider) and starter templates with the flow pre-wired; the official SDK exposes OAuth primitives you assemble per project.
- The official SDK is the right choice when you need maximum control at the protocol layer, want zero framework dependency, or are building a minimal stdio server with no remote auth surface.
- mcp-use also consolidates the rest of the production stack: typed tool contracts, React Views, a built-in Inspector, tunneling, and deployment, in TypeScript and Python (mcp-use on GitHub).
Quick-comparison table
| Dimension | mcp-use | Official MCP SDK |
|---|---|---|
| OAuth support | One-line OAuth adapters; provider-agnostic across WorkOS, Clerk, Auth0, or any OAuth 2.0 identity provider | OAuth primitives; you wire provider, token validation, and refresh yourself |
| Pre-wired auth starter | Yes, npx -y create-mcp-use-app@latest scaffolds a server with OAuth flows ready | Not published; scaffolding is manual |
| Languages | TypeScript and Python | TypeScript, Python, and community SDKs in other languages |
| Typed tool contracts | Zod schemas flow from tools to structured results and View props | Basic schema support; structured output wiring is manual |
| UI layer for MCP Apps | React Views bound to tools, MCP-UI spec support | Partial, via the separate ext-apps extension and a Vite setup |
| Inspector | Built in at /inspector locally and hosted at inspector.mcp-use.com | Separate Inspector package you install and run yourself |
| Tunneling for client testing | Built in: mcp-use dev --tunnel | Not built in; use a third-party tunnel |
| Deployment path | npm run deploy to Manufact, or self-host | Bring your own deployment scripts |
| Throughput (vendor benchmark, ops/s) | ~10,982 | ~8,050 |
| Install size (vendor benchmark, MiB) | ~74.4 (51 packages) | ~99.0 (119 packages) |
Benchmark numbers are vendor-provided from the mcp-use org README and reflect that project's own test setup, not an independent audit.
Granular differentiator table
The official SDK's differentiator is protocol-level control. Here is how the auth and production surface compares feature by feature.
| Capability | mcp-use | Official MCP SDK |
|---|---|---|
| OAuth 2.0 provider adapters | One-line adapters; WorkOS, Clerk, Auth0, or any OAuth 2.0 IdP | Primitives only; per-provider integration is your code |
| Token validation middleware | Included in the framework's server layer | You implement against the primitives |
| Starter templates with auth wired | Yes, scaffolded by create-mcp-use-app | Not published |
| MCP 2026 protocol support | Yes, per the org README comparison table | Marked as lacking MCP 2026 protocol in the same table |
| Native Views on MCP 2025/2026 | Yes | Partial, extension-only via ext-apps |
| View screenshot verification | Built-in CLI (mcp-use screenshot) | Not built in |
| Headless client testing | npx mcp-use client connect local http://localhost:3000/mcp | Not built in |
| Multi-provider identity swap | Change one adapter line to move from Clerk to WorkOS | Rewrite the provider integration |
On raw protocol control the official SDK wins: if you need to implement a nonstandard auth flow or intercept the protocol at a level frameworks do not expose, the primitives are the point. For the standard "secure a remote MCP server with a real IdP" case, the adapter approach removes the work.
Why teams choose mcp-use over the Official MCP SDK
Auth that generalizes across servers
Teams building more than one MCP server hit the same wall with the official SDK: every project re-implements the OAuth glue. mcp-use treats auth as a framework feature with provider-agnostic OAuth 2.0 support across WorkOS, Clerk, Auth0, or any OAuth 2.0 identity provider, so the pattern you set up in server one carries to server two (mcp-use). The adapter is the only line that changes when you swap identity providers.
The production surface is not just auth
A production server needs testing, observability, and a deploy path. mcp-use includes the Inspector at /inspector in every local server and hosted at inspector.mcp-use.com, tunneling via mcp-use dev --tunnel to test with ChatGPT and Claude before deployment, and npm run deploy to Manufact for observability, analytics, and Git-based preview environments (mcp-use on GitHub). With the official SDK you assemble each of those from separate tools.
Typed contracts end to end
mcp-use v2 builds on the official TypeScript SDK v2 and adds fully typed tool contracts: Zod schemas flow from tool inputs to structured results and View props, and tool outputs return both content and structuredContent (mcp-use on GitHub). That typing matters for auth-adjacent code too, because tool handlers receive validated, typed context instead of raw protocol messages.
If you are evaluating frameworks for a server that will face real users, start a free project with mcp-use and test the OAuth flow against your own identity provider.
Best use cases for mcp-use
Remote MCP servers behind an identity provider
This is the core case. A server exposed over HTTP to ChatGPT, Claude, or your own app needs OAuth 2.0, and mcp-use ships the adapters and pre-wired starter flows so the server is secured out of the box (mcp-use). How the official SDK compares: it can do this with its OAuth primitives, but you write and maintain the provider integration yourself in every project.
ChatGPT Apps and Claude connectors with UI
If your tools return interactive UI, mcp-use React Views bind directly to tools and render in MCP-UI-compatible hosts, with hooks like useToolContext and useCallTool (mcp-use on GitHub). How the official SDK compares: Views are possible through the ext-apps extension and a Vite setup, but it is more wiring and it is TypeScript only.
Teams shipping in TypeScript and Python
mcp-use covers both languages in one framework, so a Python backend team and a TypeScript frontend team share patterns for auth, tools, and deployment (mcp-use). How the official SDK compares: the official SDK also ships TypeScript and Python packages, but without the shared high-level abstractions, so the two codebases drift.
Agent-driven development workflows
mcp-use is agent-first: scaffold, invoke, inspect, screenshot, and deploy through a coding agent, with a drop-in skill for Claude Code and Cursor (mcp-use on GitHub). How the official SDK compares: it has no equivalent agent workflow; you drive it manually.
Best use cases for the Official MCP SDK
Minimal stdio servers with no remote auth surface
If your server runs locally over stdio, talks to one client, and never faces the internet, the official SDK's low-level surface is an asset. There is no OAuth to wire, and a framework adds install weight you do not need.
Protocol-level experimentation
If you are implementing protocol extensions, testing spec behavior, or contributing to MCP itself, working against the reference SDK is the honest path. A framework's abstractions get in the way when the protocol is the subject.
Platform overview of mcp-use
Server scaffolding with auth wired
npx -y create-mcp-use-app@latest scaffolds a TypeScript server with config, dev scripts, the Inspector, and a React view pipeline; npm run dev serves the MCP endpoint at http://localhost:3000/mcp (mcp-use on GitHub). Starter templates ship with OAuth flows pre-wired so the server is secured before you write your first tool.
import { MCPServer } from "mcp-use";
const server = new MCPServer({
// OAuth adapter wired by the starter template
auth: { provider: "clerk" },
});
server.tool(
{ name: "get-weather", description: "Get current weather" },
async ({ city }) => ({ content: `Weather in ${city}` }),
);
Typed tool contracts
Tools declare Zod input and output schemas. Outputs return both content for text clients and structuredContent for typed clients (mcp-use on GitHub).
server.tool(
{
name: "get-weather",
inputSchema: z.object({ city: z.string() }),
outputSchema: z.object({ tempC: z.number() }),
},
async ({ city }) => ({ structuredContent: { tempC: 21 } }),
);
OAuth 2.0 adapters
Auth is provider-agnostic across WorkOS, Clerk, Auth0, or any OAuth 2.0 identity provider, configured as an adapter on the server rather than hand-rolled middleware (mcp-use). Swapping providers is a one-line change, which matters when a customer mandates their own IdP.
Inspector and tunneling
Every local server exposes the Inspector at /inspector, and the same Inspector is hosted at inspector.mcp-use.com. Run mcp-use dev --tunnel to get a public URL and test the server with ChatGPT or Claude before deploying (mcp-use on GitHub).
Headless client testing
Install @mcp-use/client as a dev dependency and drive the server from the terminal: npx mcp-use client connect local http://localhost:3000/mcp, then npx mcp-use client local tools list and npx mcp-use client local tools call get-weather city=Tokyo (mcp-use on GitHub). This is the mcp-use client CLI, distinct from the MCPAgent library used to connect LLM agents to servers.
Deployment
npm run deploy ships the server to Manufact for observability, analytics, evals, and Git-based preview environments; self-hosting is also supported (mcp-use on GitHub). The deploy step sits on top of the same build you run locally, so what you tested in the Inspector is what ships.
How to choose decision matrix
| Your situation | Choose |
|---|---|
| Remote MCP server that must authenticate real users via OAuth 2.0 | mcp-use |
| Local stdio server, single client, no auth surface | Official MCP SDK |
| You need to swap identity providers (Clerk to WorkOS, for example) without rewriting auth | mcp-use |
| You are implementing or testing protocol extensions yourself | Official MCP SDK |
| Your tools return interactive UI in ChatGPT or Claude | mcp-use |
| You want one framework across TypeScript and Python teams | mcp-use |
| You want zero framework dependency above the protocol | Official MCP SDK |
| You want Inspector, tunneling, and deploy in the same toolchain | mcp-use |
Migration guide: switching from the Official MCP SDK to mcp-use
mcp-use v2 builds on the official TypeScript SDK v2, so the migration is mostly additive. The published v1-to-v2 migration guide covers the framework-level changes (migration guide).
-
Scaffold and compare. Run
npx -y create-mcp-use-app@latestand get the docs walkthrough from the getting started guide. You now have a working server with the Inspector and dev scripts alongside your existing one. -
Swap the server class. Replace your SDK server construction with
MCPServerfrommcp-use. Tool registration moves from the SDK'sregisterTool-style calls toserver.tool()with a typed config object.
Before, with the official SDK:
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
const server = new McpServer({ name: "my-server", version: "1.0.0" });
server.registerTool("get-weather", { inputSchema }, handler);
After, with mcp-use:
import { MCPServer } from "mcp-use";
const server = new MCPServer();
server.tool(
{ name: "get-weather", inputSchema, outputSchema },
handler, // returns { content, structuredContent }
);
-
Replace hand-rolled auth with an adapter. Delete your per-project OAuth middleware and configure the provider adapter instead. If you use an IdP outside WorkOS, Clerk, and Auth0, the any-OAuth-2.0-provider path covers it; verify your provider's flow against the adapter early, because this is the step most likely to need testing.
-
Move views if you have them. If you built UI with ext-apps and Vite, port it to mcp-use Views under
views/<view-name>/view.tsx, matching the view'sname. There is no automatic converter; small view counts port in an afternoon, large ones are a project. -
Watch for friction. Custom protocol-level middleware written against SDK internals has no direct equivalent; keep that server on the official SDK or isolate the custom layer. If your server is stdio-only with no auth, a full migration buys you little, and a partial migration (new servers on mcp-use, old ones left alone) is a reasonable end state.
FAQ
Is mcp-use faster than the official SDK?
Per the vendor's own benchmark on the mcp-use org README, mcp-use v2 reports about 10,982 ops/s versus about 8,050 for the official SDK v2, with a screened install size of about 74.4 MiB versus about 99.0 MiB (mcp-use on GitHub). These are self-reported numbers from the vendor's test setup; benchmark on your own workload.
Do I have to use a specific identity provider?
No. mcp-use's OAuth 2.0 support is provider-agnostic: WorkOS, Clerk, Auth0, or any OAuth 2.0 identity provider (mcp-use). The starter templates come with flows pre-wired, and swapping providers is a one-line adapter change.
Can I add OAuth to an existing official-SDK server without a full migration?
Partially. mcp-use v2 builds on the official TypeScript SDK v2, so server code ports with modest changes (migration guide). Custom protocol middleware has no direct equivalent and is the usual blocker for a full move.
Does mcp-use work in Python?
Yes. mcp-use is a fullstack framework for MCP servers and apps in both TypeScript and Python (mcp-use). The v2 typed-contract and Views features described here are documented for the TypeScript SDK; check the docs for current Python parity.
What if my server has no auth surface at all?
Then the official SDK is a fine choice. A local stdio server with a single client does not need OAuth adapters, and the framework's extra install weight buys you nothing there. The comparison matters when the server is remote and faces real users.
How do I test an authenticated server before deploying?
Scaffold with create-mcp-use-app, run npm run dev, and use mcp-use dev --tunnel to get a public URL you can connect from ChatGPT or Claude (mcp-use on GitHub). The Inspector at /inspector lets you exercise tools locally before the tunnel test.
Production MCP servers live or die on the auth layer. Start a free project with mcp-use and test the OAuth flow end to end against your own identity provider.