Sample MCP Server

This project demonstrates a Model Context Protocol (MCP) server and client implementation in .NET

Local serverstdioTypeScript

What is the Sample MCP server?

This project demonstrates a Model Context Protocol (MCP) server and client implementation in .NET. That is what the sample mcp server brings to an AI assistant: the same capability, reachable through the Model Context Protocol rather than a separate app or dashboard.

The short version

This project demonstrates a Model Context Protocol (MCP) server and client implementation in .NET for managing employee vacation days. It provides a backend service for tracking, querying, and updating vacation balances for employees, and exposes these capabilities through MCP tools.

The tools it exposes

The server publishes 2 tools. What each one is for:

  • Command — dotnet
  • Arguments — run --project src/csharp/Stdio/MCP.Stdio.Server/MCP.Stdio.Server.csproj

What it needs from you

Configuration is passed through the environment: AZURE_OPENAI_API_KEY. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.

Getting it running

Setup follows the usual MCP pattern — install or clone the server, register it in your client's configuration file, restart the client.

How it compares

This sits in the developer tooling group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. Sample's toolset — Command, Arguments — is a fair guide to whether it matches your workflow. It is maintained by qmatteoq; worth a glance at recent repository activity before you build anything load-bearing on it.

We check each listing at SyncDev against the project's documentation before it goes live — if something here drifts out of date, it is a bug worth reporting.

Things to watch

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

Available tools

ToolWhat it does
Commanddotnet
Argumentsrun --project src/csharp/Stdio/MCP.Stdio.Server/MCP.Stdio.Server.csproj

Configuration

VariableDescriptionRequired
AZURE_OPENAI_API_KEYCredential the server authenticates with.Yes

Example prompts to try

  • Use Sample to Command.
  • Use Sample to Arguments.

Frequently asked questions

The sample includes both SSE (HTTP Streaming) and stdio (standard input/output) transport layers.