MCP Catalogs
Homemcp-dotnet-samples screenshot

mcp-dotnet-samples

by microsoft·185·Score 48

Microsoft's collection of MCP server samples in .NET for connecting AI models to various services.

developer-toolsai-llmcloud-storage
55
Forks
9
Open issues
this month
Last commit
2d ago
Indexed

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:

you:Building custom MCP servers to connect AI models with .NET applications
you:Demonstrating integrations with Azure services and Microsoft ecosystem
you:Providing examples of Docker-based MCP server deployments
you:What is the Model Context Protocol (MCP)?
you:Can I use these samples in production environments?

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 README
  • get_copilot_files

    Retrieves GitHub Copilot customization files from awesome-copilot repository

  • convert_markdown_to_html

    Converts markdown text to HTML format

  • send_email

    Sends emails through Outlook

  • add_todo

    Adds a new item to the to-do list

  • list_todos

    Lists all items in the to-do list

  • complete_todo

    Marks a to-do item as complete

Comparable tools

mcp-server-templatemcp-typescript-samplesnexus-mcpfirecrawl-mcpmcp-python-samples

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]:latest

For 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

GitHub →

Last updated · Auto-generated from public README + GitHub signals.