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
无 SECURITY.md
在 GitHub 查看 ↗链接已于 2026-11-12 核查 · HTTP 200 · 打开的是厂商自己的官网
我们没有从该仓库取到可核对的安装命令,也没有公开的远端端点。这两样都没有时,我们不出配置——编一条出来比不给更糟。 各客户端的接法 →
- ★ 数取值
- 8 ★ · tekspry/DotnetFastMCP · 取自 GitHub 搜索 API · (2026-11-13 20:00:50 核对)
- 来源明细
- 收录自 punkpeye/awesome-mcp-servers 榜单(我们从中收集的条目之一) · 条目类型:MCP 服务
- 收录与活跃
- 收录于 2026-10-23 · 最近见到 2026-11-14 · 共见到 26 次 · 被 23 个来源列出
- 评分构成
- 综合分 2,300 · 8 ★ · 23 个来源 · mcp
常见问题(答案都来自我们的记录)
它适合谁 / 用来做什么?
我们把它归在这些标签下: MCP 服务。标签来自条目自身,不是我们强加的分类。
谁维护它、还在更新吗?
仓库
tekspry/DotnetFastMCP;我们收录于 2026-10-23;最近见到 2026-11-14。这里没有"官方认证"或"质量评级"——我们只记录来源与时间。# 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
收录徽章(可选)
想把收录标记放进 README 就复制这行,可选,不影响收录。
[](https://anclum.com/zh/s/tekspry-dotnetfastmcp/)
- 来源
- awesome · https://github.com/tekspry/DotnetFastMCP
- 按领域浏览
- MCP 服务
- Traction
- 8 ★
- 收录来源
- 23 个独立来源
- 收录于
- 今天
- 安全策略
- 我们没在该仓库根目录找到
SECURITY.md(这不代表不安全)
同类推荐
所属领域与标签
每个标签都能点进去看同类的全部条目。数字是当前库里的真实条数。