Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
C

csharp-sdk

> 开发工具
Open source

The official C# SDK for Model Context Protocol servers and clients. Maintained in collaboration with Microsoft.

4.4K stars0 likes0 views
WebsiteGitHub

About

The official C# SDK for Model Context Protocol servers and clients. Maintained in collaboration with Microsoft.

MCP C# SDK

The official C# SDK for the Model Context Protocol, enabling .NET applications, services, and libraries to implement and interact with MCP clients and servers. Please visit the API documentation for more details on available functionality.

Packages

The SDK packages are:

  • ModelContextProtocol.Core - For projects that only need to use the client or low-level server APIs and want the minimum number of dependencies.

  • ModelContextProtocol - The main package with hosting and dependency injection extensions. References ModelContextProtocol.Core. This is the right fit for most projects that don't need HTTP server capabilities.

  • ModelContextProtocol.AspNetCore - The library for HTTP-based MCP servers. References ModelContextProtocol.

  • ModelContextProtocol.Extensions.Apps - MCP Apps extension for building interactive UI applications that render inside MCP hosts.

  • ModelContextProtocol.Extensions.Tasks - MCP Tasks extension for running long-running tool invocations asynchronously with status polling and input requests.

Getting Started

To get started, see the Getting Started guide in the conceptual documentation for installation instructions, package-selection guidance, and complete examples for both clients and servers.

You can also browse the samples directory and the API documentation for more details on available functionality.

About MCP

The Model Context Protocol (MCP) is an open protocol that standardizes how applications provide context to Large Language Models (LLMs). It enables secure integration between LLMs and various data sources and tools.

For more information about MCP:

  • Official MCP Documentation
  • MCP C# SDK Documentation
  • Protocol Specification
  • GitHub Organization

Cross-Application Access (Identity Assertion Authorization Grant flow)

The SDK provides support for the Identity Assertion Authorization Grant flow via IdentityAssertionGrantProvider. See the Cross-Application Access section in the transport docs for full usage details.

License

This project is licensed under the Apache License 2.0.

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

C#csharpdotnetmcpmcp-client

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category开发工具
PricingOpen source

> Related tools

V
VS Code
流行的开源代码编辑器
G
Git
分布式版本控制系统
V
Vite
下一代前端构建工具