Skip to content
Back to search

lets-learn-mcp-csharp

Let's Learn MCP with C - Tutorial Series

Safety scan

A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.

Checked today
Badge for your README
findsafeskills safety rating

Markdown

[![findsafeskills safety rating](/api/listings/microsoft--lets-learn-mcp-csharp/badge.svg)](/listings/microsoft--lets-learn-mcp-csharp)

HTML

<a href="/listings/microsoft--lets-learn-mcp-csharp"><img src="/api/listings/microsoft--lets-learn-mcp-csharp/badge.svg" alt="findsafeskills safety rating" /></a>

Install

i

What was scanned

The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.

README.md · README · 130 lines

View this file on GitHub (read at the repository's current version: the scan did not record which commit it read)

  1. # Let's Learn MCP with C# - Tutorial Series
  2. A comprehensive guide to understanding and building Model Context Protocol (MCP) Servers for C# developers.
  3. ## What You'll Build
  4. By the end of this tutorial series, you'll have:
  5. 1. **🐒 MyMonkey App** - A fun console application that uses existing MCP servers to manage monkey data and create GitHub issues
  6. 2. **🍽️ Lunch Roulette MCP Server** - Your own custom MCP server that helps AI assistants pick restaurants and track dining preferences
  7. ## Tutorial Structure
  8. ### [Part 1: Prerequisites and Setup](part1-setup.md)
  9. **⏱️ Time: 15-20 minutes**
  10. Set up your development environment and understand MCP fundamentals:
  11. - Install VS Code, .NET 9 SDK, and C# Dev Kit
  12. - Learn what Model Context Protocol is and why it matters
  13. - Understand the client-server architecture
  14. - Verify your development environment
  15. **Start here**: [Part 1: Prerequisites and Setup →](part1-setup.md)
  16. ---
  17. ### [Part 2: Using MCP Servers - MyMonkey App](part2-monkey-app.md)
  18. **⏱️ Time: 15-30 minutes**
  19. Learn to use existing MCP servers by building a monkey-themed application:
  20. - Configure MonkeyMCP and GitHub MCP servers
  21. - Create C# models for monkey data
  22. - Build an interactive console application with ASCII art
  23. - Integrate with GitHub to create issues programmatically
  24. - Understand how AI assistants interact with MCP servers
  25. **What you'll create**:
  26. ```
  27. 🐒 Random Monkey Picker!
  28. ========================
  29. Name: Proboscis Monkey
  30. Location: Borneo
  31. Population: 15,000
  32. Details: Known for their distinctive large nose...
  33. ```
  34. **Continue to**: [Part 2: MyMonkey App →](part2-monkey-app.md)
  35. ---
  36. ### [Part 3: Building Your Own MCP Server - Lunch Roulette](part3-lunch-server.md)
  37. **⏱️ Time: 30-45 minutes**
  38. Build a complete MCP server from scratch:
  39. - Create a restaurant management service with JSON persistence
  40. - Implement four MCP tools for AI assistant integration
  41. - Handle dependency injection and async operations
  42. - Test and deploy your server
  43. - Understand MCP protocol implementation details
  44. **What you'll build**:
  45. - `GetRestaurants()` - List all available restaurants
  46. - `AddRestaurant()` - Add new dining options
  47. - `PickRandomRestaurant()` - AI-powered lunch selection
  48. - `GetVisitStatistics()` - Track dining patterns
  49. **Continue to**: [Part 3: Lunch Roulette Server →](part3-lunch-server.md)
  50. ---
  51. ## Quick Start
  52. If you're ready to dive in immediately:
  53. 1. **Prerequisites**: Ensure you have VS Code, .NET 9 SDK, and C# Dev Kit installed
  54. 2. **Choose your path**:
  55. - 🆕 **New to MCP?** Start with [Part 1: Setup](part1-setup.md)
  56. - 🔧 **Want to use MCP?** Jump to [Part 2: MyMonkey App](part2-monkey-app.md)
  57. - 🏗️ **Ready to build?** Go to [Part 3: Lunch Server](part3-lunch-server.md)
  58. ## Learning Outcomes
  59. After completing this tutorial series, you'll understand:
  60. - ✅ **MCP Fundamentals** - What MCP is and how it enables AI-tool integration
  61. - ✅ **Consumer Patterns** - How to use existing MCP servers in your applications
  62. - ✅ **Server Development** - How to build and deploy your own MCP servers
  63. - ✅ **C# Best Practices** - Dependency injection, async patterns, and JSON serialization
  64. - ✅ **AI Integration** - How AI assistants interact with your tools and services
  65. ## Technology Stack
  66. This tutorial uses modern C# development practices:
  67. - **.NET 9** - Latest .NET runtime with performance improvements
  68. - **C# 13** - Modern language features and syntax
  69. - **System.Text.Json** - High-performance JSON serialization with source generators
  70. - **Microsoft.Extensions.Hosting** - Dependency injection and application lifecycle
  71. - **ModelContextProtocol** - Official C# SDK for MCP server development
  72. ## Repository Structure
  73. ```
  74. letslearnmcp-csharp/
  75. ├── README.md # This overview
  76. ├── part1-setup.md # Prerequisites and environment setup
  77. ├── part2-monkey-app.md # Using existing MCP servers
  78. └── part3-lunch-server.md # Building your own MCP server
  79. ```
  80. ## Additional Resources
  81. - 📖 [MCP Official Documentation](https://modelcontextprotocol.io/)
  82. - 🛠️ [C# MCP SDK Repository](https://github.com/modelcontextprotocol/csharp-sdk)
  83. - 🐒 [MyMonkey App Repository](https://github.com/jamesmontemagno/MyMonkeyAppMCP)
  84. - 🍽️ [Lunch Roulette Repository](https://github.com/jamesmontemagno/LunchRouletteMCP)
  85. ## Contributing
  86. This tutorial is open source! Feel free to:
  87. - 🐛 Submit improvements and corrections
  88. - 💡 Add more examples and use cases
  89. - 🤝 Share your own MCP server implementations
  90. - 💬 Help others in the discussions
  91. ---
  92. **Ready to get started?** Begin with [Part 1: Prerequisites and Setup →](part1-setup.md)
  93. *Happy coding! 🐒🍽️*

Ratings and comments

Sign in to rate this skill.

Sign in

Free to use. If it’s helped, pass it on.