csharp-sdk  by modelcontextprotocol

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

Created 6 months ago
3,262 stars

Top 14.8% 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)
26
Issues (30d)
51
Star History
179 stars in the last 30 days

Explore Similar Projects

Feedback? Help us improve.