DotnetFastMCP
Verified Safeby tekspry
Overview
A C#/.NET framework for building secure, scalable Model Context Protocol (MCP) servers with enterprise-grade OAuth 2.0 / OpenID Connect authentication, facilitating LLM tool integration.
Installation
dotnet runEnvironment Variables
- FASTMCP_SERVER_AUTH_AZUREAD_TENANT_ID
- FASTMCP_SERVER_AUTH_AZUREAD_CLIENT_ID
- FASTMCP_SERVER_AUTH_AZUREAD_CLIENT_SECRET
Security Notes
The framework is designed with enterprise-grade security, implementing standard OAuth 2.0 and OpenID Connect flows including token verification, dynamic client registration (DCR), and PKCE. It explicitly enforces the use of environment variables for sensitive credentials and warns against hardcoding secrets. JWT tokens are validated against public keys (JWKS). No 'eval' or malicious patterns were observed in the provided source code snippets.
Similar Servers
mcpo
Exposes Model Context Protocol (MCP) tools as OpenAPI-compatible HTTP servers.
mcp-openapi-server
A Model Context Protocol (MCP) server that exposes OpenAPI endpoints as MCP tools, along with optional support for MCP prompts and resources, enabling Large Language Models to interact with REST APIs.
example-remote-server
A reference server demonstrating all Model Context Protocol (MCP) features and OAuth 2.0 authentication patterns.
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.