mcp-dotnet-samples
A comprehensive set of samples of creating and using MCP servers and clients with .NET
Safety scan
A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.
Check it deeper on your machine
It has changed since its scan on 11 Nov 2026.
As a Claude Code plugin, install it and then ask Claude Code:
/plugin marketplace add keithmackay/mackayi/plugin install scanskillsafety@mackayiDo a deep scan of https://github.com/microsoft/mcp-dotnet-samples with scanskillsafety
Or from a terminal, clone it and run it:
git clone https://github.com/keithmackay/scanskillsafety-skill ~/.claude/skills/scanskillsafetynode ~/.claude/skills/scanskillsafety/cli.cjs --deep 'https://github.com/microsoft/mcp-dotnet-samples'
It checks the exact commit: every file, its packages against OSV (api.osv.dev), how it compares with this page's scan (findsafeskills.com receives the repository's address), and, if you agree, Claude reading every file with your own Claude subscription. It never runs the code.
Badge for your README
Markdown
[](/listings/microsoft--mcp-dotnet-samples)HTML
<a href="/listings/microsoft--mcp-dotnet-samples"><img src="/api/listings/microsoft--mcp-dotnet-samples/badge.svg" alt="findsafeskills safety rating" /></a>Install
What was scanned
The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.
README.md · README · 64 lines
View this file on GitHub (read at the repository's current version: the scan did not record which commit it read)
- # Model Context Protocol .NET Samples
- [](https://discord.com/invite/ByRwuEEgH4)
- [](https://aka.ms/foundry/forum)
- ## 🚀 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](./awesome-copilot/) | [](https://aka.ms/awesome-copilot/mcp/vscode)<br/>[](https://aka.ms/awesome-copilot/mcp/vscode-insiders)<br/>[](https://aka.ms/awesome-copilot/mcp/vs) | MCP server that retrieves GitHub Copilot customization files from [awesome-copilot](https://github.com/github/awesome-copilot). |
- | [Markdown to HTML](./markdown-to-html/) | [](https://vscode.dev/redirect?url=vscode%3Amcp%2Finstall%3F%7B%22name%22%3A%22markdown-to-html%22%2C%22gallery%22%3Afalse%2C%22command%22%3A%22docker%22%2C%22args%22%3A%5B%22run%22%2C%22-i%22%2C%22--rm%22%2C%22ghcr.io%2Fmicrosoft%2Fmcp-dotnet-samples%2Fmarkdown-to-html%3Alatest%22%5D%7D)<br/>[](https://insiders.vscode.dev/redirect?url=vscode-insiders%3Amcp%2Finstall%3F%7B%22name%22%3A%22markdown-to-html%22%2C%22gallery%22%3Afalse%2C%22command%22%3A%22docker%22%2C%22args%22%3A%5B%22run%22%2C%22-i%22%2C%22--rm%22%2C%22ghcr.io%2Fmicrosoft%2Fmcp-dotnet-samples%2Fmarkdown-to-html%3Alatest%22%5D%7D)<br/>[](https://aka.ms/vs/mcp-install?%7B%22name%22%3A%22markdown-to-html%22%2C%22gallery%22%3Afalse%2C%22command%22%3A%22docker%22%2C%22args%22%3A%5B%22run%22%2C%22-i%22%2C%22--rm%22%2C%22ghcr.io%2Fmicrosoft%2Fmcp-dotnet-samples%2Fmarkdown-to-html%3Alatest%22%5D%7D) | MCP server that converts markdown text to HTML. |
- | [Outlook Email](./outlook-email/) | [](https://vscode.dev/redirect?url=vscode%3Amcp%2Finstall%3F%7B%22name%22%3A%22outlook-email%22%2C%22gallery%22%3Afalse%2C%22command%22%3A%22docker%22%2C%22args%22%3A%5B%22run%22%2C%22-i%22%2C%22--rm%22%2C%22ghcr.io%2Fmicrosoft%2Fmcp-dotnet-samples%2Foutlook-email%3Alatest%22%5D%7D)<br/>[](https://insiders.vscode.dev/redirect?url=vscode-insiders%3Amcp%2Finstall%3F%7B%22name%22%3A%22outlook-email%22%2C%22gallery%22%3Afalse%2C%22command%22%3A%22docker%22%2C%22args%22%3A%5B%22run%22%2C%22-i%22%2C%22--rm%22%2C%22ghcr.io%2Fmicrosoft%2Fmcp-dotnet-samples%2Foutlook-email%3Alatest%22%5D%7D)<br/>[](https://aka.ms/vs/mcp-install?%7B%22name%22%3A%22outlook-email%22%2C%22gallery%22%3Afalse%2C%22command%22%3A%22docker%22%2C%22args%22%3A%5B%22run%22%2C%22-i%22%2C%22--rm%22%2C%22ghcr.io%2Fmicrosoft%2Fmcp-dotnet-samples%2Foutlook-email%3Alatest%22%5D%7D) | MCP server that sends emails through Outlook. |
- | [To-do List](./todo-list/) | [](https://vscode.dev/redirect?url=vscode%3Amcp%2Finstall%3F%7B%22name%22%3A%22todo-list%22%2C%22gallery%22%3Afalse%2C%22command%22%3A%22docker%22%2C%22args%22%3A%5B%22run%22%2C%22-i%22%2C%22--rm%22%2C%22ghcr.io%2Fmicrosoft%2Fmcp-dotnet-samples%2Ftodo-list%3Alatest%22%5D%7D)<br/>[](https://insiders.vscode.dev/redirect?url=vscode-insiders%3Amcp%2Finstall%3F%7B%22name%22%3A%22todo-list%22%2C%22gallery%22%3Afalse%2C%22command%22%3A%22docker%22%2C%22args%22%3A%5B%22run%22%2C%22-i%22%2C%22--rm%22%2C%22ghcr.io%2Fmicrosoft%2Fmcp-dotnet-samples%2Ftodo-list%3Alatest%22%5D%7D)<br/>[](https://aka.ms/vs/mcp-install?%7B%22name%22%3A%22todo-list%22%2C%22gallery%22%3Afalse%2C%22command%22%3A%22docker%22%2C%22args%22%3A%5B%22run%22%2C%22-i%22%2C%22--rm%22%2C%22ghcr.io%2Fmicrosoft%2Fmcp-dotnet-samples%2Ftodo-list%3Alatest%22%5D%7D) | MCP server that manages to-do list items. |
- ## 🛠️ Getting Started
- Details on how to set up and run the samples will be provided in each sample's directory.
- ## 📚 Learning Resources
- - [MCP Official Documentation](https://modelcontextprotocol.io/)
- - [MCP GitHub Repository](https://github.com/modelcontextprotocol/modelcontextprotocol)
- ## 🚶♀️ Next Steps
- - [Learn more about GenAI with .NET with a free course!](https://aka.ms/genainet)
- - [Join the Azure AI Community Discord to keep the conversation going](https://discord.com/invite/ByRwuEEgH4)
- ## Contributing
- This project welcomes contributions and suggestions. Most contributions require you to agree to a
- Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us
- the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.
- When you submit a pull request, a CLA bot will automatically determine whether you need to provide
- a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions
- provided by the bot. You will only need to do this once across all repos using our CLA.
- This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
- For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or
- contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.
- ## Trademarks
- This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft
- trademarks or logos is subject to and must follow
- [Microsoft's Trademark & Brand Guidelines](https://www.microsoft.com/en-us/legal/intellectualproperty/trademarks/usage/general).
- Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship.
- Any use of third-party trademarks or logos are subject to those third-party's policies.
Ratings and comments
Sign in to rate this skill.
Sign inFree to use. If it’s helped, pass it on.