MCP_Projects
by felnarg
Overview
This repository demonstrates the creation and publishing of Model Context Protocol (MCP) servers using C#, including examples for mathematical operations (random numbers) and integration with external APIs and databases for user management, designed to extend AI agent capabilities.
Installation
dotnet run --project MCP_Server_Math/SampleMcpServerSecurity Notes
CRITICAL: Multiple `appsettings.json` files contain hardcoded database connection strings (User ID, Password, Data Source, Initial Catalog) and API base URLs. This is a severe security vulnerability, as sensitive credentials are directly exposed in configuration files. These values should always be loaded from secure environment variables or a secret management system, not hardcoded. There are no other obvious 'eval' or malicious patterns, but this flaw is significant.
Similar Servers
mcp-dotnet-samples
This MCP server retrieves GitHub Copilot customizations, including instructions, agents, prompts, and collections, from the `awesome-copilot` repository to provide contextual guidance to AI models.
mcp-python-starter
A feature-complete Model Context Protocol (MCP) server template in Python for developing AI applications and agents.
azure-devops-mcp-server
Exposes Azure DevOps operations as tools for AI assistants, enabling AI agents to automate tasks like creating work items, managing pull requests, and queuing builds.
csharp-lsp-mcp
An MCP server that provides C# and XAML language intelligence by integrating with `csharp-ls` and built-in XAML analysis for AI assistants like Claude.