Guides and TutorialsModel Context Protocol (MCP)
MCP Examples
Learn how to build secure MCP servers with Descope through these step-by-step examples:
Calendar MCP Server
Calendar Management MCP Server (w/ SSO)
Build a secure calendar MCP server that:
- Restricts access to only registered MCP clients (Claude Desktop and ChatGPT)
- Requires SSO authentication via Okta or Azure AD for multiple tenants
- Grants write access only to users with specific permissions
- Allows read-only access to all other authenticated users
Multi-Tenant MCP Server
Run one MCP server for users across different tenants:
- One MCP URL and consent flow — users pick their tenant at sign-in via the tenant selector
- One scope per tool; access policies decide which tools each tenant's users get at consent
- The server stays tenant-agnostic — no tenant-to-tools map in code, and onboarding a new organization is a policy change, not a redeploy
- Tools read the active tenant from the token's
dctclaim; switching organizations means re-authenticating for a new token
Additional Resources
For more example MCP servers, please refer to our GitHub repository.
Was this helpful?
Model Context Protocol (MCP)
Learn how to use Descope to secure and authorize Model Context Protocol (MCP) servers with inbound, outbound, and SDK-based flows.
Calendar MCP Server (w/ SSO)
Learn how to build a secure calendar MCP server with SSO authentication, permission-based scopes, and multi-tenant support.