A step-by-step guide to building a secure MCP server in TypeScript using FastMCP, Auth0 for OAuth 2.0 authentication, and Auth0 FGA (OpenFGA) for fine-grained authorization. The tutorial covers setting up three MCP tools (whoami, datetime, get_documents), defining a relationship-based authorization model with roles and groups,

18m read time From auth0.com
Post cover image
Table of contents
PrerequisitesThe Application You Will BuildImplementing the MCP Server in TypeScriptTesting Your MCP Server Using MCP InspectorSetting Up MCP Server for AuthenticationCreating an API in Auth0 to Represent Your MCP ServerConfiguring Auth0 FGAConnecting FGA With Your MCP ServerConfiguring MCP Inspector AuthenticationRecap

Sort: