DotnetFastMCP
Verified Safeby tekspry
Overview
Provides a .NET framework for building secure, scalable Model Context Protocol (MCP) servers, supporting enterprise-grade OAuth authentication and LLM interaction templates.
Installation
cd examples/Auth/AzureAdOAuth && dotnet runEnvironment Variables
- FASTMCP_SERVER_AUTH_AZUREAD_TENANT_ID
- FASTMCP_SERVER_AUTH_AZUREAD_CLIENT_ID
- FASTMCP_SERVER_AUTH_AZUREAD_CLIENT_SECRET
- FASTMCP_SERVER_AUTH_GOOGLE_CLIENT_ID
- FASTMCP_SERVER_AUTH_GOOGLE_CLIENT_SECRET
- FASTMCP_SERVER_AUTH_GITHUB_CLIENT_ID
- FASTMCP_SERVER_AUTH_GITHUB_CLIENT_SECRET
- FASTMCP_SERVER_AUTH_AUTH0_DOMAIN
- FASTMCP_SERVER_AUTH_AUTH0_AUDIENCE
- FASTMCP_SERVER_AUTH_AUTH0_CLIENT_ID
- FASTMCP_SERVER_AUTH_AUTH0_CLIENT_SECRET
- FASTMCP_SERVER_AUTH_OKTA_DOMAIN
- FASTMCP_SERVER_AUTH_OKTA_AUDIENCE
- FASTMCP_SERVER_AUTH_OKTA_CLIENT_ID
- FASTMCP_SERVER_AUTH_OKTA_CLIENT_SECRET
- FASTMCP_SERVER_AUTH_AWSCOGNITO_USER_POOL_ID
- FASTMCP_SERVER_AUTH_AWSCOGNITO_REGION
- FASTMCP_SERVER_AUTH_AWSCOGNITO_CLIENT_ID
- FASTMCP_SERVER_AUTH_AWSCOGNITO_CLIENT_SECRET
- FASTMCP_SERVER_AUTH_AWSCOGNITO_DOMAIN
Security Notes
The framework is designed with enterprise-grade security in mind, leveraging ASP.NET Core, OAuth 2.0/OpenID Connect for authentication, JWT token verification, and attribute-based authorization. It strongly emphasizes using environment variables for secrets. Security best practices are documented.
Similar Servers
mcpo
Exposes Model Context Protocol (MCP) tools as OpenAPI-compatible HTTP servers.
sagemcp
A scalable platform for hosting Multi-tenant Model Context Protocol (MCP) servers with multi-tenant support, OAuth integration, and connector plugins for various services.
mcp-annotated-java-sdk
Annotation-driven framework for building Model Context Protocol (MCP) servers in Java, simplifying the definition and integration of resources, prompts, and tools for LLM applications.
oauth-mcp-proxy
OAuth 2.1 authentication library for Go MCP servers, supporting both mark3labs and official SDKs for token validation and caching.