Csharp Sdk logo

Csharp Sdk

Official .NET SDK for building MCP clients and servers with core, hosting, ASP.NET Core, and protocol extension packages.

Install Csharp Sdk

Pick your client, then add it in one click or paste the config.

No confirmed install command yet

We only publish a config when the install details come from the project itself — its README, its docs, or a verified owner. We haven’t found those for csharp-sdk, and we’d rather show nothing than a guess you’d paste into your client.

Open setup steps on GitHub

Overview

csharp-sdk is the official C# SDK for implementing MCP clients and servers in .NET applications, services, and libraries. It provides low-level client and server APIs, hosting and dependency-injection extensions, and an ASP.NET Core package for HTTP-based servers. Additional packages support MCP Apps, Skills, Tasks, and cross-application access authorization. Reach for it when a C# or .NET project needs to provide MCP tools or consume MCP services.

Use cases

  • Build an MCP server in a .NET application
  • Create a C# client that interacts with MCP services
  • Expose MCP functionality through an ASP.NET Core HTTP server
  • Add asynchronous tool execution with status polling
  • Serve Agent Skills with verifiable file manifests

Key features

  • C# client and server APIs
  • Hosting and dependency-injection extensions
  • ASP.NET Core support for HTTP-based MCP servers
  • MCP Apps, Skills, and Tasks extensions
  • Identity Assertion Authorization Grant support

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked Today

Recent health check succeeded.

27/27 checks healthy over the last 17d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars4.6kStargazers on the source repository.
Last commitTodayMost recent push to the default branch.

How Csharp Sdk works

What csharp-sdk does

csharp-sdk gives .NET developers the building blocks to create applications that participate in the Model Context Protocol. It supports both sides of the protocol: applications can expose MCP servers or connect to MCP clients and servers through the SDK's client and server APIs.

The package family is split by project needs. ModelContextProtocol.Core contains the lower-level APIs with a minimal dependency footprint. ModelContextProtocol adds hosting and dependency-injection extensions and is intended for most projects that do not require HTTP server support. ModelContextProtocol.AspNetCore adds the library needed for HTTP-based MCP servers.

Optional extensions cover interactive MCP Apps, Agent Skills with verifiable file manifests, and long-running tool calls with asynchronous execution, status polling, and input requests.

How it works

Projects consume the SDK through NuGet packages and use its C# APIs to implement MCP clients or servers. The core package is the base choice for applications that need client functionality or low-level server APIs without the broader hosting dependencies.

For hosted .NET applications, the main ModelContextProtocol package supplies hosting and dependency-injection integration. HTTP server projects add the ASP.NET Core package. The SDK also exposes support for the Identity Assertion Authorization Grant flow through IdentityAssertionGrantProvider, enabling the Cross-Application Access authorization flow.

API reference material, conceptual guides, and sample projects provide the implementation details and examples for client and server projects.

Setup and configuration

Install the NuGet package that matches the application architecture:

  • Use ModelContextProtocol.Core for minimal client or low-level server projects.
  • Use ModelContextProtocol for projects needing hosting and dependency-injection extensions.
  • Add ModelContextProtocol.AspNetCore when building an HTTP-based MCP server.
  • Add the Apps, Skills, or Tasks extension package when the application needs that protocol feature.

The official getting-started guide covers installation, package selection, and complete client and server examples. The API documentation and repository samples are useful for checking available types and implementation patterns.

Tools and capabilities

  • Build MCP clients and servers in C# and .NET.
  • Use low-level client and server APIs through the core package.
  • Add hosting and dependency-injection support to .NET applications.
  • Implement HTTP-based MCP servers with ASP.NET Core.
  • Build interactive MCP Apps that render inside MCP hosts.
  • Serve or consume Agent Skills with verifiable file manifests.
  • Run long-lived tool invocations asynchronously with status polling and input requests.
  • Use the Identity Assertion Authorization Grant flow for Cross-Application Access.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Csharp Sdk

csharp-sdk is an MCP server that provides the official C# SDK for .NET applications, services, and libraries to connect with MCP clients and implement MCP servers. Its main APIs cover low-level client and server functionality, with packages for hosting, dependency injection, ASP.NET Core HTTP servers, Apps, Skills, and Tasks.

Install the appropriate csharp-sdk NuGet package for your project. Choose ModelContextProtocol.Core for minimal client or low-level server APIs, ModelContextProtocol for hosting and dependency injection, and ModelContextProtocol.AspNetCore for HTTP-based MCP servers.

Use the ModelContextProtocol.AspNetCore package to build an HTTP-based MCP server. It extends the main ModelContextProtocol package, while the SDK's getting-started guide and samples provide client and server implementation examples.

Yes. The ModelContextProtocol.Extensions.Tasks package supports asynchronous long-running tool invocations, status polling, and input requests.

Yes. The ModelContextProtocol.Extensions.Apps package supports building interactive UI applications that render inside MCP hosts.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewCsharp Sdk AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/csharp-sdk?style=directory)](https://allmcps.com/mcp/csharp-sdk)
HTML Embed
<a href="https://allmcps.com/mcp/csharp-sdk"><img src="https://allmcps.com/api/badge/csharp-sdk?style=directory" alt="Csharp Sdk on AllMCPs" /></a>