Dotnet SamplesCAUTION
A comprehensive set of samples of creating and using MCP servers and clients with .NET
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
[](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
fbe497855abdOBSERVED · 2026-10-06Connect
Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control.
claude mcp add awesome-copilot:latest -- docker run -i --rm ghcr.io/microsoft/mcp-dotnet-samples/awesome-copilot:latest:None
Trust audit
CAUTIONgrade B · trust 86/100 Install with care. The audit found things worth knowing before you trust its output.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | WARN |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- declared (6 observation(s))
- Network
- declared (2 observation(s))
- Shell
- none-observed
- Dependencies
- pinned
- Secrets in source
- none-found
Findings (11)
public const string DefaultAppUrl = "http://0.0.0.0:{0}";{{{{path: ../../../Dockerfile.awesome-copilot-azure
context: ../../../
path: ../../../Dockerfile.markdown-to-html-azure
context: ../../../
# path: ../../../Dockerfile.outlook-email-azure
Gates applied: no_behavioural_pass.
fbe497855abdfull audit observations/trust-audit/mcp-server/microsoft__dotnet-samples.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-06 | fbe497855abd | CAUTION | B | 86 | first audit |
Questions
What is the Dotnet Samples MCP server?
A comprehensive set of samples of creating and using MCP servers and clients with .NET
Is Dotnet Samples safe to connect to an agent?
With care. The audit graded it B (86/100) and found 11 things worth knowing before you trust this server, listed below with the exact line each was found on.
What credentials does Dotnet Samples need?
No credential environment variables were found in its source, so it appears to need none.
How does Dotnet Samples run?
It speaks stdio, so it runs as a local process your client starts.
How current is this page?
The grade is for one exact copy of the source (fbe497855abd), read on 2026-10-06. The repository is watched and re-audited when it changes.