- Explore MCP Servers
- mcp-dotnet-samples
Mcp Dotnet Samples
What is Mcp Dotnet Samples
mcp-dotnet-samples is a comprehensive collection of examples demonstrating how to create and utilize MCP servers and clients using the .NET framework. It showcases the Model Context Protocol (MCP), which standardizes the way applications provide context to Large Language Models (LLMs).
Use cases
Use cases for mcp-dotnet-samples include building custom MCP implementations, integrating with Azure services, and creating applications that require context-aware interactions with LLMs, such as extracting subtitles from YouTube videos.
How to use
To use mcp-dotnet-samples, clone the repository and follow the setup instructions provided in each sample’s directory. Each sample demonstrates different functionalities and integrations with Azure services.
Key features
Key features of mcp-dotnet-samples include: 1) Pre-built integrations for LLMs, 2) Flexibility to switch between different LLM providers, 3) Best practices for data security, and 4) The ability to build agents and complex workflows on top of LLMs.
Where to use
mcp-dotnet-samples can be used in various fields such as AI development, data processing, and application integration, particularly where context provision to LLMs is required.
Clients Supporting MCP
The following are the main client software that supports the Model Context Protocol. Click the link to visit the official website for more information.
Overview
What is Mcp Dotnet Samples
mcp-dotnet-samples is a comprehensive collection of examples demonstrating how to create and utilize MCP servers and clients using the .NET framework. It showcases the Model Context Protocol (MCP), which standardizes the way applications provide context to Large Language Models (LLMs).
Use cases
Use cases for mcp-dotnet-samples include building custom MCP implementations, integrating with Azure services, and creating applications that require context-aware interactions with LLMs, such as extracting subtitles from YouTube videos.
How to use
To use mcp-dotnet-samples, clone the repository and follow the setup instructions provided in each sample’s directory. Each sample demonstrates different functionalities and integrations with Azure services.
Key features
Key features of mcp-dotnet-samples include: 1) Pre-built integrations for LLMs, 2) Flexibility to switch between different LLM providers, 3) Best practices for data security, and 4) The ability to build agents and complex workflows on top of LLMs.
Where to use
mcp-dotnet-samples can be used in various fields such as AI development, data processing, and application integration, particularly where context provision to LLMs is required.
Clients Supporting MCP
The following are the main client software that supports the Model Context Protocol. Click the link to visit the official website for more information.
Content
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 | Description |
|---|---|
| Markdown to HTML | A remote MCP server that converts markdown text to HTML. |
| To-do List | A remote MCP server that manages to-do list items. |
| YouTube Subtitles Extractor | A remote MCP server that extracts subtitles from any given YouTube video’s URL. |
🛠️ Getting Started
Details on how to set up and run the samples will be provided in each sample’s directory.
📚 Learning Resources
🚶♀️ Next Steps
- Learn more about GenAI with .NET with a free course!
- Join the Azure AI Community Discord to keep the conversation going
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.
For more information see the Code of Conduct FAQ or
contact [email protected] 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.
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.
Dev Tools Supporting MCP
The following are the main code editors that support the Model Context Protocol. Click the link to visit the official website for more information.










