ClaudeMap

MCP C# SDK

Official C# SDK for MCP, hosted by Microsoft and targeting .NET 8+.

SDKs & Toolingofficialcsharpdotnetmicrosoft

Official C# / .NET implementation of the Model Context Protocol, hosted by Microsoft under the modelcontextprotocol org. Targets .NET 8+, integrates with ASP.NET Core hosting and dependency injection. The path for MCP in the .NET ecosystem.

What it does

  • Official C#/.NET SDK layered into NuGet packages: ModelContextProtocol.Core (minimum deps), the main package with hosting and DI, and ModelContextProtocol.AspNetCore for HTTP servers
  • Extensions.Apps builds interactive UI applications that render inside MCP hosts
  • Extensions.Tasks runs long-running tool invocations asynchronously with status polling and input requests
  • For .NET applications, services and libraries implementing or consuming MCP clients and servers

When to use it

The .NET-services pick — Core covers client or low-level server use with fewest dependencies, while the AspNetCore package hosts HTTP-based MCP servers.

Getting started

dotnet add package ModelContextProtocol
// HTTP server:
dotnet add package ModelContextProtocol.AspNetCore

Things to know

Choose the package deliberately: Core has no hosting extensions, and HTTP server support lives only in the AspNetCore package.

Repository

modelcontextprotocol/csharp-sdk

Charted

Related on the map

  • Harness Bridge

    SDK / Tool

    A local launcher that points Claude Code and seven other coding harnesses at any OpenAI-, Anthropic- or Responses-compatible endpoint — without editing a single config file.

    • launcher
    • local-models
    • cli
    • menu-bar
  • Claude for Siri

    SDK / Tool

    Answers macOS Spotlight and Siri prompts with your signed-in Claude Code account — an experimental macOS 27 model-delegation provider.

    • macos
    • siri
    • spotlight
    • model-delegation
  • Extract your own local chat history from ten AI coding assistants into one normalized JSONL — for fine-tuning, analytics, or backing up years of conversations. Standard library only.

    • cli
    • data-export
    • jsonl
    • backup