Skip to content

MCP Dotnet Samples

A comprehensive set of samples of creating and using MCP servers and clients with .NET

Install: git clone https://github.com/microsoft/mcp-dotnet-samples

Install

$git clone https://github.com/microsoft/mcp-dotnet-samples

Install command taken from the project's README or registry entry. Always review code before running it.

Model Context Protocol .NET Samples

🚀 Introduction

Welcome to the Model Context Protocol (MCP) .NET Samples repository! This collection of samples demonstrates how to leverage the Model Context Protocol in .NET applications.

MCP is an open protocol that standardizes how applications provide context to Large Language Models (LLMs). Think of MCP like a USB-C port for AI applications - it provides a standardized way to connect AI models to different data sources and tools.

With MCP, you can:

  • Utilize pre-built integrations that your LLM can directly plug into
  • Flexibly switch between LLM providers and vendors
  • Follow best practices for securing your data within your infrastructure
  • Build agents and complex workflows on top of LLMs

This repository contains .NET samples ranging from building your own MCP implementation to integrating with Azure services.

📋 Sample Projects

Sample Name Install Description
Awesome Copilot Install in VS CodeInstall in VS Code InsidersInstall in Visual Studio MCP server that retrieves GitHub Copilot customization files from awesome-copilot.
Markdown to HTML Install in VS CodeInstall in VS Code InsidersInstall in Visual Studio MCP server that converts markdown text to HTML.
Outlook Email [![Install in VS Code](https://img.shields.io/badg

Similar plugs

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype…

Java 面试 & 后端通用面试指南,覆盖计算机基础、数据库、分布式、高并发、系统设计与 AI 应用开发

MCP serverDatabases+105 this week

Explore related