
MCP OAuth Demo
by DTeam-Top
Next.js based MCP server with OAuth 2.1 authentication support for secure AI tool access.
What it does
This server provides a reference implementation for building MCP servers with secure OAuth 2.1 authentication. It acts as an identity layer that allows MCP clients to authenticate users via providers like Google before accessing protected tools and resources.
Tools
authenticate: Initiates the OAuth flow for the current user.verify_token: Validates an existing access token against the OAuth server.get_user_profile: Retrieves identity information for the authenticated session.
Installation
Deploy this as a Next.js app on Vercel. For Claude Desktop, add the following to your claude_desktop_config.json:
{
"mcpServers": {
"mcp-oauth": {
"url": "https://your-app.vercel.app/mcp/sse"
}
}
}
Supported hosts
Confirmed for Claude Desktop, Claude.ai, Cursor, and VS Code.
Quick install
pnpm install && pnpm run db:push && pnpm run devInformation
- Pricing
- free
- Published
- 5/15/2026
- stars






