modelcontextprotocol

modelcontextprotocol/csharp-sdk

C# No license AI & ML License not recognized by GitHub

The official C# SDK for Model Context Protocol servers and clients. Maintained in collaboration with Microsoft.

4.4k stars
734 forks
recent
GitHub

4.4k

Stars

734

Forks

182

Open issues

30

Contributors

AI Analysis

The official C# SDK for the Model Context Protocol (MCP), enabling .NET applications to implement and interact with MCP clients and servers for secure LLM integration. This is a specialized ecosystem library specifically for .NET developers building MCP-compatible services; it is not for general-purpose C# development and does not benefit developers outside the MCP/LLM integration space.

AI & ML Library Discovery value: 4/10
Documentation 9/10
Activity 10/10
Community 8/10
Code quality 5/10

Inferred from signals mentioned in the README (tests, CI, type safety) — not a review of the actual code.

Overall score 8/10

AI's overall editorial judgment — not an average of the bars above, can weigh other factors too.

llm-integration model-context-protocol dotnet ai-infrastructure mcp-server
Actively maintained Well documented Niche/specialized use case Production ready
Deep Analysis · Based on README and public signals
1w ago

Official C# SDK for Model Context Protocol gains traction as .NET developer adoption of MCP accelerates

The C# SDK provides three composable NuGet packages enabling .NET applications to build and consume MCP servers and clients. Created March 2025 and maintained collaboratively with Microsoft, it targets the large .NET ecosystem where MCP adoption remains early but growing. The SDK is actively maintained (last push July 1, 2026), offers modular dependency structure, and integrates with ASP.NET Core. Real-world adoption metrics remain limited to download counts and GitHub activity; enterprise usage is not publicly documented.

Origin

Launched March 2025 as part of the Model Context Protocol initiative. MCP itself emerged as Anthropic's standardized protocol for LLM context provision. The C# SDK followed successful SDKs in Python (23k stars) and TypeScript (12k stars), positioning it as the third-tier language implementation within a nascent ecosystem.

Growth

4,367 stars accumulated in ~15 months with steady recent activity (29 stars in last 7 days as of July 2026). Growth pattern suggests consistent adoption among .NET developers interested in MCP, though velocity remains lower than Python and TypeScript counterparts. The collaboration with Microsoft likely amplified initial awareness within the C# community. Repository appears to be tracking ecosystem maturation rather than experiencing explosive growth.

In production

Adoption not verified through public documentation. NuGet package availability indicates distribution capability, but download counts, known production deployments, and enterprise customer references are not provided in README or metadata. Comparison to Python SDK (23k stars) and TypeScript SDK (12k stars) suggests C# implementation remains earlier in adoption curve, but this reflects GitHub stars rather than production usage metrics.

Code analysis
Architecture

Based on README, the SDK uses a modular three-package structure: Core (minimal dependencies), main package (hosting + DI), and AspNetCore-specific extensions. This design appears intentional for flexibility. Likely supports both client and server implementations. README documents API documentation availability and samples directory presence, suggesting organized codebase structure. Cannot assess internal implementation quality without code inspection.

Tests

Not documented in README. No mention of test framework, coverage percentage, or testing strategy provided.

Maintenance

Last push July 1, 2026 (current date) indicates active development. Repository created March 2025 means project is ~15 months old at evaluation point. Presence of NuGet packages, API documentation site, and samples directory suggests organized maintenance. Unable to assess issue response time or PR velocity from metadata alone. Microsoft collaboration mentioned but governance structure not detailed.

Honest verdict

ADOPT IF: Your primary application stack is .NET/C# and you need MCP server or client capabilities, or you are building ASP.NET Core MCP servers and want official Microsoft-backed implementation. AVOID IF: You need guaranteed production support documentation, extensive real-world case studies, or are evaluating MCP for a non-.NET stack (Python or TypeScript implementations are further along). MONITOR IF: You are a .NET shop evaluating MCP adoption; this SDK is officially maintained but ecosystem-level MCP adoption is still early (created mid-2025), so production readiness depends on your risk tolerance for young protocol implementations.

Independent dimensions

Mainstream potential

4/10

Technical importance

6/10

Adoption evidence

3/10

Risks
  • MCP protocol itself remains young (standardization ongoing as of 2025-2026); breaking changes to specification could require SDK updates affecting downstream users.
  • Adoption signal is weak relative to category leaders; limited public evidence of production deployments means edge cases may not be well-exercised.
  • Dependency on Microsoft collaboration for long-term maintenance; unclear governance model if priorities diverge or Microsoft reduces commitment.
  • NuGet package distribution and download metrics not disclosed; GitHub stars alone do not confirm production adoption.
  • Microsoft/MCP repository relationship unclear; potential confusion or duplicate effort if both projects serve similar scope.
Prediction

The SDK will likely mature into the de facto standard MCP implementation for .NET enterprises over the next 2-3 years as MCP adoption spreads, assuming the protocol standardization stabilizes. Growth will remain measured compared to Python/TypeScript due to smaller LLM-focused .NET developer base, but it will consolidate mindshare within C# shops. Risk: if MCP adoption stalls or fragments, this SDK could plateau in a small niche.

0 found this helpful

Newsletter

Get analyses like this every Monday

Free weekly digest of the most interesting open-source discoveries.

Languages

C#
100%
Makefile
0%

Information

Language
C#
License
NOASSERTION
Last updated
1w ago
Created
16mo ago
Analyzed with
anthropic/claude-haiku-4-5

Stars over time

Loading…

Contributors over time

Top 100 contributors only — repos with more will plateau at 100.

Loading…

Similar repos

modelcontextprotocol

modelcontextprotocol/php-sdk

The official PHP SDK for Model Context Protocol (MCP), enabling developers to...

1.6k PHP AI & ML
microsoft

microsoft/mcp

This repository provides the core libraries, test frameworks, and engineering...

3.4k C# AI & ML
modelcontextprotocol

modelcontextprotocol/swift-sdk

The MCP Swift SDK is the official Swift implementation of the Model Context...

1.4k Swift AI & ML
modelcontextprotocol

modelcontextprotocol/typescript-sdk

The official TypeScript SDK for the Model Context Protocol (MCP), enabling...

12.8k TypeScript AI & ML
modelcontextprotocol

modelcontextprotocol/python-sdk

The official Python SDK for building Model Context Protocol (MCP) servers and...

23.6k Python AI & ML
vs. alternatives
modelcontextprotocol/python-sdk

5.4x more GitHub stars (23k vs 4.3k); Python remains dominant for LLM workflows. C# SDK likely to remain secondary choice for MCP-native development but may win in existing .NET codebases.

modelcontextprotocol/typescript-sdk

2.9x more stars (12.7k vs 4.3k); TypeScript dominates AI tooling ecosystem. C# SDK targets different developer base with distinct infrastructure preferences.

microsoft/mcp

Appears to be related Microsoft implementation (3.3k stars, also C#). Relationship and differentiation unclear from metadata; potential overlap or integration unclear.

modelcontextprotocol/php-sdk

1.5x fewer stars (1.5k vs 4.3k); C# SDK ahead in adoption despite newer ecosystem. Reflects broader .NET developer engagement with MCP.

Direct MCP client libraries in C#/.NET

No mention of competing C# MCP implementations in similar repos list, suggesting this is the canonical .NET SDK, reducing fragmentation risk.