T
tekspry/DotnetFastMCP
A lightweight .NET framework for building Model Context Protocol (MCP) servers. Integrates seamlessly with Azure AD, AWS Cognito, Auth0, OpenAI and other providers
no SECURITY.md
View on GitHub ↗Link checked 2026-11-12 · HTTP 200 · opens the vendor's own site
We have neither an install command nor a public remote endpoint from this repository, so we do not print a config. A made-up one is worse than none. How each client wires MCP up →
- Star count
- 8 ★ · tekspry/DotnetFastMCP · read from the GitHub search API · (checked 2026-11-13 20:00:50)
- Source
- collected from the punkpeye/awesome-mcp-servers list · type: MCP server
- Harvest history
- first seen 2026-10-23 · last seen 2026-11-14 · seen 26× · listed by 23 sources
- Score
- score 2,300 · 8 ★ · 23 sources · mcp
FAQ (answers come from our records)
Who is it for?
We filed it under these tags: MCP 服务. The tags come from the entry itself, not a taxonomy we imposed.
Who maintains it?
repository
tekspry/DotnetFastMCP;first catalogued 2026-10-23;last seen 2026-11-14。There is no official certification or quality rating here — we record sources and dates only.# DotnetFastMCP — Enterprise Security & Governance Gateway for MCP Servers
以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →
Enterprise security, governance, and observability layer for Model Context Protocol (MCP) servers in .NET — OAuth 2.0/OIDC authentication, per-tool MFA enforcement, OpenTelemetry instrumentation, and zero-config health checks. Built on ASP.NET Core.
## 🎯 Overview
DotnetFastMCP adds enterprise-grade security, governance, and observability to your MCP servers. While the core protocol is simple, running MCP tools in production requires OAuth 2.0/OIDC authentication, per-tool MFA enforcement, distributed tracing, and health monitoring — none of which the base protocol provides. DotnetFastMCP handles all of this with a clean attribute-based API on ASP.NET Core, plus a native .NET client library for consuming MCP servers.
### ⭐ Key Features
#### 🖼️ Multimodal Content & Universal Media Loader (NEW! v2.2.0)
✅ Universal Media Loader (McpMediaLoader) - Ingest and resolve images/media from any location: remote HTTP/HTTPS, local file paths, file:// URIs, and RFC 2397 data:...;base64,... URIs without boilerplate.
✅ Eliminates Repetitive Helper Code - Replaces duplicate ~40-line FetchImageDataAsync methods across multimodal agent servers with a single line: await McpMediaLoader.LoadAsBase64Async(url, httpClient).
✅ Smart MIME Sniffing - Magic-byte inspection for JPEG, PNG, GIF, WebP, BMP with HTTP Content-Type header inspection and file extension fallbacks.
✅ Zero-Allocation Fast-Path - Data URIs with Base64 payloads are parsed directly without allocating intermediate byte arrays.
✅ Expanded McpContent Factory Methods - First-class helpers for McpContent.Json(obj), McpContent.ImageFromBytes(bytes, mime), McpContent.ImageFromStreamAsync(stream, mime), McpContent.ImageFromUriAsync(uri), McpContent.ResourceText(), McpContent.ResourceBlob(), and McpContent.Composite(...).
#### ⚡ Zero-Boilerplate MCP Servers (v2.1.0)
✅ Automatic DI Registration - Non-static tool, resource, and prompt classes scanned via WithComponentsFrom() are automatically registered as Transient services in the DI container. Zero manual builder.Services.AddTransient () boilerplate.
✅ Preserves Custom Lifetimes - Built on TryAddTransient semantics to honor custom Singleton or Scoped registrations without collision.
✅ [McpDescription] Parameter Attributes - Annotate method parameters with rich descriptions emitted directly into JSON Schema inputSchema (tools/list), significantly enhancing LLM tool-calling accuracy.
✅ Smart Schema Filtering - Automatically hides framework-injected types (McpContext, CancellationToken, ClaimsPrincipal, IMcpSession) from schema exposure so LLMs only see valid user inputs.
#### 🚀 .NET 10 LTS & .NET 8 LTS Dual Support (v2.0.0)
✅ Dual-Targeting - Ships both net8.0 and net10.0 binaries in a single package
✅ Zero Breaking Changes - 100% backward compatible for existing .NET 8 applications
✅ Modern Non-Blocking Async Streams - High-performance SSE parsing compliant with .NET 10 CA2024 rules
✅ Comprehensive Test Matrix - Dual-targeted unit & in-memory integration tests covering positive & negative scenarios
#### Core Framework
✅ Simple Attribute-Based API - Declare tools and resources with [McpTool] and [McpResource] attributes
## 🎯 Overview
DotnetFastMCP adds enterprise-grade security, governance, and observability to your MCP servers. While the core protocol is simple, running MCP tools in production requires OAuth 2.0/OIDC authentication, per-tool MFA enforcement, distributed tracing, and health monitoring — none of which the base protocol provides. DotnetFastMCP handles all of this with a clean attribute-based API on ASP.NET Core, plus a native .NET client library for consuming MCP servers.
### ⭐ Key Features
#### 🖼️ Multimodal Content & Universal Media Loader (NEW! v2.2.0)
✅ Universal Media Loader (McpMediaLoader) - Ingest and resolve images/media from any location: remote HTTP/HTTPS, local file paths, file:// URIs, and RFC 2397 data:...;base64,... URIs without boilerplate.
✅ Eliminates Repetitive Helper Code - Replaces duplicate ~40-line FetchImageDataAsync methods across multimodal agent servers with a single line: await McpMediaLoader.LoadAsBase64Async(url, httpClient).
✅ Smart MIME Sniffing - Magic-byte inspection for JPEG, PNG, GIF, WebP, BMP with HTTP Content-Type header inspection and file extension fallbacks.
✅ Zero-Allocation Fast-Path - Data URIs with Base64 payloads are parsed directly without allocating intermediate byte arrays.
✅ Expanded McpContent Factory Methods - First-class helpers for McpContent.Json(obj), McpContent.ImageFromBytes(bytes, mime), McpContent.ImageFromStreamAsync(stream, mime), McpContent.ImageFromUriAsync(uri), McpContent.ResourceText(), McpContent.ResourceBlob(), and McpContent.Composite(...).
#### ⚡ Zero-Boilerplate MCP Servers (v2.1.0)
✅ Automatic DI Registration - Non-static tool, resource, and prompt classes scanned via WithComponentsFrom() are automatically registered as Transient services in the DI container. Zero manual builder.Services.AddTransient () boilerplate.
✅ Preserves Custom Lifetimes - Built on TryAddTransient semantics to honor custom Singleton or Scoped registrations without collision.
✅ [McpDescription] Parameter Attributes - Annotate method parameters with rich descriptions emitted directly into JSON Schema inputSchema (tools/list), significantly enhancing LLM tool-calling accuracy.
✅ Smart Schema Filtering - Automatically hides framework-injected types (McpContext, CancellationToken, ClaimsPrincipal, IMcpSession) from schema exposure so LLMs only see valid user inputs.
#### 🚀 .NET 10 LTS & .NET 8 LTS Dual Support (v2.0.0)
✅ Dual-Targeting - Ships both net8.0 and net10.0 binaries in a single package
✅ Zero Breaking Changes - 100% backward compatible for existing .NET 8 applications
✅ Modern Non-Blocking Async Streams - High-performance SSE parsing compliant with .NET 10 CA2024 rules
✅ Comprehensive Test Matrix - Dual-targeted unit & in-memory integration tests covering positive & negative scenarios
#### Core Framework
✅ Simple Attribute-Based API - Declare tools and resources with [McpTool] and [McpResource] attributes
Listed badge (optional)
Copy this line into the README if you want the listing mark. Optional, and it does not affect being listed.
[](https://anclum.com/en/s/tekspry-dotnetfastmcp/)
- Source
- awesome · https://github.com/tekspry/DotnetFastMCP
- Browse by field
- MCP servers
- Traction
- 8 ★
- Listed by
- 23 independent sources
- added
- today
- Security policy
- no
SECURITY.mdat the repository root (which does not mean it is unsafe)
More like this
Filed under
Every tag opens the full list for that filter. Counts are the live catalogue figures.