mcp-dotnet-samples
by microsoft·★ 185·Score 48
Microsoft's collection of MCP server samples in .NET for connecting AI models to various services.
Overview
This repository provides a comprehensive set of samples demonstrating how to create and use MCP servers in .NET applications. It includes several working implementations like a GitHub Copilot customization file retriever, Markdown to HTML converter, Outlook email sender, and to-do list manager. The samples showcase how to connect AI models to different data sources and tools using Microsoft's .NET framework, with Docker support for easy deployment across different IDEs including VS Code and Visual Studio.
Try asking AI
After installing, here are 5 things you can ask your AI assistant:
When to choose this
Choose this if you're a .NET developer looking for examples of how to implement MCP servers for various services.
When NOT to choose this
Don't choose this if you're looking for a ready-to-use MCP server - these are sample implementations that require integration into your own applications.
Tools this server exposes
6 tools extracted from the READMEget_copilot_filesRetrieves GitHub Copilot customization files from awesome-copilot repository
convert_markdown_to_htmlConverts markdown text to HTML format
send_emailSends emails through Outlook
add_todoAdds a new item to the to-do list
list_todosLists all items in the to-do list
complete_todoMarks a to-do item as complete
Comparable tools
Installation
Installation
Each sample in this repository has its own installation instructions. Generally, they can be installed via Docker:
docker run -i --rm ghcr.io/microsoft/mcp-dotnet-samples/[sample-name]:latestFor VS Code integration, use the following snippet in your settings.json:
{
"mcpServers": {
"[sample-name]": {
"command": "docker",
"args": ["run", "-i", "--rm", "ghcr.io/microsoft/mcp-dotnet-samples/[sample-name]:latest"]
}
}
}FAQ
- What is the Model Context Protocol (MCP)?
- MCP is an open protocol that standardizes how applications provide context to Large Language Models (LLMs), acting like a standardized connector between AI models and data sources.
- Can I use these samples in production environments?
- These samples are designed for demonstration and learning purposes. While they provide working implementations, additional security and error handling should be added for production use.
Compare mcp-dotnet-samples with
Last updated · Auto-generated from public README + GitHub signals.