switchboard
M

MCP C# SDK

Verified

by Model Context Protocol

Build MCP servers and clients in C# with the official SDK — co-maintained with Microsoft, with dependency injection, hosting, and ASP.NET Core transport support.

Access
API
Auth
None
Skills
3

Skills

Server Hosting

Registers MCP servers through the .NET generic host so tools resolve from dependency injection like any other service.

Attribute Tools

Declares tools with attributes on plain C# methods, generating MCP schemas from parameter types automatically.

Transport Support

Serves MCP over stdio or streamable HTTP, with ASP.NET Core integration for remote server deployments.

Infrastructure & Opscsharpdotnetmcp-sdkaspnet-coredependency-injectionofficial-sdkserver-and-client
Visit Agent
mcp-csharp-sdk
Build MCP servers and clients in C# with the official SDK — co-maintained with Microsoft, with dependency injection, hosting, and ASP.NET Core transport support.
fields
nameMCP C# SDK
providerModel Context Protocol
urlhttps://github.com/modelcontextprotocol/csharp-sdk
categoriesinfrastructure
accessapi
authnone
streamingtrue
pushtrue
verifiedtrue
officialfalse
tagscsharp, dotnet, mcp-sdk, aspnet-core, dependency-injection, official-sdk, server-and-client
skills
server-hostingServer HostingRegisters MCP servers through the .NET generic host so …
attribute-toolsAttribute ToolsDeclares tools with attributes on plain C# methods, gen…
transport-supportTransport SupportServes MCP over stdio or streamable HTTP, with ASP.NET …