The C# implementation of Model Context Protocol (MCP) servers provides extensions for the Claude Desktop API. This project offers various tools for file system operations, PowerShell command execution, RSS feed processing, time retrieval, and MCP server development utilities.
git clone https://github.com/sk0ya/CSharpMcp
cd CSharpMcp
dotnet buildEach MCP server tool is implemented as an independent dotnet project and can be built and used separately. For detailed usage instructions, please refer to the README of each tool.
This project is organized into three main categories:
- McpInsight - Debug and monitoring tool for MCP servers
- Real-time monitoring of communication between MCP clients and servers
- Interactive testing of MCP server commands
- Message display in an easy-to-analyze format
- Usable in all phases of stdio-based MCP server development
The following servers use standard input/output (stdio) communication:
-
FileSystem - Provides file system operation functionality
- File reading, writing, editing, and deletion
- Directory creation and folder structure retrieval
- ZIP compression and extraction
- Opening files/folders with default applications
-
PowerShell - Provides a secure interface for PowerShell command execution
- Secure command execution with allowlist validation
- Constrained language mode for security
- Support for parameterized commands
-
Time - Retrieves the current time
- Current date and time information
- Multiple timezone support
-
Rss - Processes RSS feeds
- RSS feed parsing and content extraction
- Multiple feed processing support
The following servers use HTTP-based Server-Sent Events communication:
- Dotnet - .NET project development tools
- CreateMcpServer - Tool for creating MCP server projects
- DotnetBuild - Tool for building and analyzing .NET projects
For stdio-based servers, you can run them directly or integrate them with Claude Desktop by adding configuration to your claude_desktop_config.json.
Example configuration for FileSystem server:
{
"mcpServers": {
"FileSystem": {
"command": "dotnet",
"args": [
"run",
"--project",
"absolute\\path\\to\\CSharpMCP\\Stdio\\FileSystem",
"--no-build",
"--",
"/path/to/allowed/dir"
]
}
}
}For SSE-based servers, start the HTTP server and connect via the configured URL:
cd Sse/Dotnet
dotnet runThe server will be available at http://localhost:7001 by default.
This project provides tools for MCP server development:
- Use McpInsight for debugging and testing stdio-based MCP servers
- Use CreateMcpServer tool to generate new MCP server project templates
- Use DotnetBuild tool for automated building and analysis of .NET projects
This project is licensed under the MIT License.