csharp-sdk  by modelcontextprotocol

C# SDK for Model Context Protocol (MCP) servers and clients

created 4 months ago
2,941 stars

Top 16.6% on sourcepulse

GitHubView on GitHub
Project Summary

This C# SDK provides official support for the Model Context Protocol (MCP), enabling .NET applications to act as clients or servers for LLM interactions. It allows seamless integration of LLMs with diverse data sources and tools, benefiting .NET developers building AI-powered applications.

How It Works

The SDK implements the MCP specification, allowing .NET applications to discover, invoke, and manage tools for LLMs. It provides abstractions for client-server communication over various transports (like stdio) and facilitates tool registration via attributes ([McpServerTool]) or explicit configuration. This approach simplifies the integration of LLM capabilities into existing .NET ecosystems.

Quick Start & Requirements

Highlighted Details

  • Supports both MCP client and server implementations.
  • Enables tool definition via attributes for simplified server setup.
  • Allows fine-grained control over server configuration and request handling.
  • Designed for server-agnostic interoperability with any MCP-compliant server.

Maintenance & Community

Maintained in collaboration with Microsoft. Further community engagement details (Discord/Slack, roadmap) are not explicitly provided in the README.

Licensing & Compatibility

  • License: MIT License.
  • Compatibility: Permissive MIT license allows for commercial use and integration with closed-source applications.

Limitations & Caveats

This project is in preview, meaning breaking changes may occur without prior notice. Additional examples and documentation are planned for future releases.

Health Check
Last commit

1 day ago

Responsiveness

1 day

Pull Requests (30d)
24
Issues (30d)
50
Star History
1,089 stars in the last 90 days

Explore Similar Projects

Starred by Chip Huyen Chip Huyen(Author of AI Engineering, Designing Machine Learning Systems), Travis Fischer Travis Fischer(Founder of Agentic), and
1 more.

fastmcp by punkpeye

3.7%
2k
TypeScript framework for building MCP servers handling client sessions
created 7 months ago
updated 2 days ago
Starred by Didier Lopes Didier Lopes(Founder of OpenBB), Chip Huyen Chip Huyen(Author of AI Engineering, Designing Machine Learning Systems), and
2 more.

fastmcp by jlowin

2.1%
15k
Pythonic SDK for building Model Context Protocol (MCP) servers/clients
created 8 months ago
updated 1 day ago
Feedback? Help us improve.