Agent Switchboard

mcp-handler

by Vercel

Official listing: built and published by Vercel. More from Vercel

Hosts MCP servers inside Next.js, Nuxt, SvelteKit, Hono, and other Fetch-based JavaScript apps with one Web-standard request handler.

Use it now

Keep it with up to 9 other tools you're setting up, then share them all as one link.

Try this first

Ask your coding agent:

  • Create MCP Handler

    Use mcp-handler to turn an MCP server definition: ‹what you need›

  • Verify Bearer Tokens

    Use mcp-handler to verify bearer tokens: ‹what you need›

Call the API

Auth None needed

Setup guide: github.com/vercel-labs/mcp-handler

Limitations

  • no MCP server

Compare

Press Compare to add it to the tray at the bottom of the window, then pick up to 2 others anywhere on the site.

Access
API
Auth
None
Skills
5
Endpoint check
Live ·

Skills

  • Create MCP Handler

    Turns an MCP server definition with registered tools, prompts, and resources into a Web-standard Request-to-Response handler.

  • Serve Both Protocol Eras

    Serves the 2026-07-28 MCP specification natively and falls back to stateless Streamable HTTP for 2025-era clients.

  • Verify Bearer Tokens

    Verifies bearer tokens with withMcpAuth and answers 401 or 403 with RFC 9728 WWW-Authenticate challenges.

  • Serve Resource Metadata

    Serves the RFC 9728 Protected Resource Metadata document that lists your MCP server's authorization servers.

  • Trace MCP Messages

    Emits one OpenTelemetry span per MCP message, which Vercel's MCP observability reads to show server activity.

Infrastructure & OpsCode & DevToolsmcp-server-frameworknextjstypescriptstreamable-httpmcp-authvercelopen-source
Embed badge · OfficialOfficial on Agent Switchboard

Drop this static SVG badge into your README or docs to link straight to this listing. Served from CDN with no tracking. See all badge tiers.

Markdown
[![Official on Agent Switchboard](https://agentswitchboard.dev/badges/official.svg)](https://agentswitchboard.dev/agents/mcp-handler)
HTML
<a href="https://agentswitchboard.dev/agents/mcp-handler"><img src="https://agentswitchboard.dev/badges/official.svg" alt="Official on Agent Switchboard" width="234" height="28" /></a>
mcp-handler
Hosts MCP servers inside Next.js, Nuxt, SvelteKit, Hono, and other Fetch-based JavaScript apps with one Web-standard request handler.
Markdown: /agents/mcp-handler.md
try this first
Ask your coding agent:
Use mcp-handler to turn an MCP server definition: ‹what you need›create-mcp-handler
Use mcp-handler to verify bearer tokens: ‹what you need›verify-bearer-tokens
use it now
None neededapi.auth
limitations
no MCP server
fields
namemcp-handler
providerVercel
urlhttps://github.com/vercel-labs/mcp-handler
categoriesinfrastructure · code-devtools
accessapi
authnone
streamingfalse
pushfalse
verifiedtrue
health_statusok
last_checked_at2026-11-28T20:19:19Z
officialtrue · Vercel
sponsoredfalse
tagsmcp-server-framework, nextjs, typescript, streamable-http, mcp-auth, vercel, open-source
skills
create-mcp-handlerCreate MCP HandlerTurns an MCP server definition with registered tools, p…
serve-both-protocol-erasServe Both Protocol ErasServes the 2026-07-28 MCP specification natively and fa…
verify-bearer-tokensVerify Bearer TokensVerifies bearer tokens with withMcpAuth and answers 401…
serve-resource-metadataServe Resource MetadataServes the RFC 9728 Protected Resource Metadata documen…
trace-mcp-messagesTrace MCP MessagesEmits one OpenTelemetry span per MCP message, which Ver…
alternatives
/agents/mcp-handler/alternatives8 listedmcp-typescript-sdk, mcp-python-sdk, scalekit
compare
/compare?a=mcp-handler&b=mcp-typescript-sdk&c=mcp-python-sdkwith mcp-typescript-sdk, mcp-python-sdk