MCP Auth
A remote MCP server implementation that demonstrates authentication and authorization capabilities using OAuth 2.1. This is a workshop project for learning how to build secure MCP servers with user authentication.
README
🚨 Important Notice
This repository is a clone of the MCP Auth by EpicAI. It has been published solely to document my GitHub activity and for personal educational purposes.
Note: This is not an official fork or a maintained derivative of the original project. <div> <h1 align="center"><a href="https://www.epicweb.dev/workshops">MCP Auth 🔐</a></h1> <strong> Build remote MCP servers with users </strong> <p> In this workshop, we'll build a remote MCP server that supports authentication/authorization with standard OAuth2.1 in MCP. </p> </div>
<hr />
<div align="center"> <a alt="Epic Web logo with the words Deployed Version" href="https://mcp-auth.epicai.pro/"
<img
width="300px"
src="https://github-production-user-asset-6210df.s3.amazonaws.com/1500684/254000390-447a3559-e7b9-4918-947a-1b326d239771.png"
/>
</a> </div>
<hr />
<!-- prettier-ignore-start --> [![Build Status][build-badge]][build] [![GPL 3.0 License][license-badge]][license] [![Code of Conduct][coc-badge]][coc] <!-- prettier-ignore-end -->
Prerequisites
- JavaScript/TypeScript experience
- Node.js experience
- Advanced MCP Features or equivalent experience.
Pre-workshop Resources
Here are some resources you can read before taking the workshop to get you up to speed on some of the tools and concepts we'll be covering:
- Letting AI Interface with Your App with MCPs
- MCP Introduction
- Your AI Assistant Instructor: The EpicShop MCP Server
- How to Debug Your MCP Server
- OAuth 2.0 and OpenID Connect (in plain English) - (1 hour video, but it's really great!)
System Requirements
- [git][git] v2.18 or greater
- [NodeJS][node] v24 or greater
- [npm][npm] v8 or greater
All of these must be available in your PATH. To verify things are set up
properly, you can run this:
git --version
node --version
npm --version
If you have trouble with any of these, learn more about the PATH environment variable and how to fix it here for [windows][win-path] or [mac/linux][mac-path].
Setup
This is a pretty large project (it's actually many apps in one) so it can take several minutes to get everything set up the first time. Please have a strong network connection before running the setup and grab a snack.
Warning: This repo is very large. Make sure you have a good internet connection before you start the setup process. The instructions below use
--depthto limit the amount you download, but if you have a slow connection, or you pay for bandwidth, you may want to find a place with a better connection.
Follow these steps to get this set up:
git clone --depth 1 https://github.com/epicweb-dev/mcp-auth.git
cd mcp-auth
npm run setup
If you experience errors here, please open [an issue][issue] with as many details as you can offer.
The Workshop App
Learn all about the workshop app on the Epic Web Getting Started Guide.
<!-- prettier-ignore-start --> [npm]: https://www.npmjs.com/ [node]: https://nodejs.org [git]: https://git-scm.com/ [build-badge]: https://img.shields.io/github/actions/workflow/status/epicweb-dev/mcp-auth/validate.yml?branch=main&logo=github&style=flat-square [build]: https://github.com/epicweb-dev/mcp-auth/actions?query=workflow%3Avalidate [license-badge]: https://img.shields.io/badge/license-GPL%203.0%20License-blue.svg?style=flat-square [license]: https://github.com/epicweb-dev/mcp-auth/blob/main/LICENSE [coc-badge]: https://img.shields.io/badge/code%20of-conduct-ff69b4.svg?style=flat-square [coc]: https://kentcdodds.com/conduct [win-path]: https://www.howtogeek.com/118594/how-to-edit-your-system-path-for-easy-command-line-access/ [mac-path]: http://stackoverflow.com/a/24322978/971592 [issue]: https://github.com/epicweb-dev/mcp-auth/issues/new <!-- prettier-ignore-end -->
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。
