C# SDK for Model Context Protocol (MCP) servers and clients
Top 16.6% on sourcepulse
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
dotnet add package ModelContextProtocol --prerelease
Highlighted Details
Maintenance & Community
Maintained in collaboration with Microsoft. Further community engagement details (Discord/Slack, roadmap) are not explicitly provided in the README.
Licensing & Compatibility
Limitations & Caveats
This project is in preview, meaning breaking changes may occur without prior notice. Additional examples and documentation are planned for future releases.
1 day ago
1 day