MCPSharp

C#

MCPSharp is a .NET library that helps you build Model Context Protocol (MCP) servers and clients - the standardized API protocol used by AI assistants and models.

Protocol Implementations
API Frameworks
Function Calling

Architecture and Design Patterns

The library follows an attribute-based approach for defining MCP tools and resources. It leverages JSON-RPC for communication and provides both server and client components. The server uses reflection to discover MCP tools, and dynamic tool registration is supported. Resources are exposed via properties or methods. The library offers an easy-to-use API.

About

Language

C#

Stars

126

Categories

Protocol ImplementationsAPI FrameworksFunction Calling