MCP Directory
ServersClientsBlog

xASO - App Store Optimization

AI-powered App Store Optimization platform for mobile apps

Go to xASO
MCP Directory

Model Context Protocol Directory

MKSF LTD
Suite 8805 5 Brayford Square
London, E1 0SG

MCP Directory

  • About
  • Blog
  • Documentation
  • Contact

Menu

  • Servers
  • Clients

© 2025 model-context-protocol.com

The Model Context Protocol (MCP) is an open standard for AI model communication.
Powered by Mert KoseogluSoftware Forge
  1. Home
  2. Servers
  3. MCPSharp

MCPSharp

GitHub

MCPSharp is a .NET library for building Model Context Protocol (MCP) servers and clients, enabling seamless creation of AI-compatible tools and integration with Microsoft.Extensions.AI and Semantic Kernel. MCPSharp is a

333
23

MCPSharp

MCPSharp is a .NET library for building Model Context Protocol (MCP) servers and clients, facilitating communication between AI assistants and models. It allows creating MCP-compliant tools and functions, connecting to MCP servers from C#, and exposing .NET methods as MCP endpoints.

Key features include:

  • Integration with Microsoft.Extensions.AI, enabling tools as AIFunctions.
  • Semantic Kernel support via KernelFunctionAttribute.
  • Dynamic tool registration with custom logic.
  • Tool change notifications for clients.
  • Complex object parameter support and improved error handling.

Use cases involve:

  • Creating tools for AI assistants like Anthropic's Claude Desktop.
  • Building MCP-compliant APIs.
  • Exposing .NET code as MCP endpoints.
  • Adding AI capabilities through standardized interfaces.
  • Integrating with Microsoft.Extensions.AI and Semantic Kernel.

The library offers an attribute-based API ([McpTool], [McpResource]), built-in JSON-RPC support, automatic parameter validation, and XML documentation support. Installation is via NuGet.

Repository

AF
afrise

afrise/MCPSharp

Created

February 17, 2025

Updated

March 28, 2025

Language

C#

Category

Developer Tools