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

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

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

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.