Back to Home
joelverhagen icon

Knapcode.SampleMcpServer

Verified Safe

by joelverhagen

Overview

Demonstrates and provides a template for creating Model Context Protocol (MCP) servers using C# and NuGet packages, specifically showcasing a simple tool for generating random numbers.

Installation

Run Command
dnx Knapcode.SampleMcpServer@0.4.0-beta --yes -- mcp start

Environment Variables

  • WEATHER_CHOICES

Security Notes

Actual server logic (C# source code) is not provided, limiting a full security audit of the implementation. Based on the provided `global.json` and `README.md` (which covers configuration and setup), no 'eval', obfuscation, hardcoded secrets, or direct network risks (beyond standard stdio communication) are apparent in the configuration or setup instructions. The `WEATHER_CHOICES` environment variable is shown in configuration examples, but its usage and validation within the unseen server logic are unknown.

Similar Servers

Stats

Interest Score0
Security Score7
Cost ClassLow
Avg Tokens20
Stars0
Forks1
Last Update2025-12-19

Tags

C#.NETMCPNuGetSampleTooling