Looking to get started building and testing your own Model Context Protocol (MCP) server? Look no further than the new C# SDK for MCPs. You can build both client and servers with a delightful API that gets you up and running in minutes. Best of all you can build, test, and deploy directly from VS Code.
Links:
C# SDK Announcement: https://devblogs.microsoft.com/blog/microsoft-partners-with-anthropic-to-create-official-c-sdk-for-model-context-protocol
My Blog: https://devblogs.microsoft.com/dotnet/build-a-model-context-protocol-mcp-server-in-csharp/
C# SDK on GitHub: https://github.com/modelcontextprotocol/csharp-sdk
Azure Functions: https://techcommunity.microsoft.com/blog/AppsonAzureBlog/build-ai-agent-tools-using-remote-mcp-with-azure-functions/4401059
Container docs: https://learn.microsoft.com/dotnet/core/containers/publish-configuration
Monkey MCP: https://github.com/jamesmontemagno/MonkeyMCP/
Chapters:
00:00 - Intro
02:50 - Create project & install NuGets
04:38 - Boilerplate code and testing MCP server
11:25 - Real MCP server tool functions that call APIs
18:40 - Containerizing and deploying MCP server to docker
23:05 - Wrap-up
Join this channel to get access to perks:
https://www.youtube.com/channel/UCENTmbKaTphpWV2R2evVz2A/join
👕 Buy some swag! - https://jamesmontemagno.myspreadshop.com/
☕️ Buy me a coffee - https://www.buymeacoffee.com/jamesmontemagno
Follow:
👨💻 GitHub: https://github.com/jamesmontemagno
🦜 X: https://x.com/jamesmontemagno
📄 Website: https://www.montemagno.com
📰 Newsletter: https://newsletter.montemagno.com/
Disclaimer: This channel, videos, and streams are created in my spare time and are a product of me... James Montemagno! They are NOT officially affiliated or endorsed by Microsoft (my employer) in any way. Opinions and views are my own.
What is on my hat? It is the CLE clothing logo because I am from Cleveland! Checkout their awesome CLE merch: https://cleclothingco.myshopify.com/
What is that art on my wall? It is an original piece from the French street artist Gregos of La Butte Montmartre: https://www.instagram.com/p/BceZ1oNHiQx/
My Setup:
📷 Canon M50 Mark II - https://amzn.to/3P8R7lp
💡 Nanoleaf Elements Lights - https://amzn.to/3umwJVW
🎙 Blue Spark Microphone - https://amzn.to/3qgtYkq
🎙 Blue Pop Filter - https://amzn.to/3jEWM3r
🤳 Rode Microphone Arm - https://amzn.to/2Z68AlE
🎧 Sony MDR7306 Headphones - https://amzn.to/372jxta
📲 Stream Deck - https://amzn.to/373Uk1n
🖱 MX Master 2S Mouse - https://amzn.to/3d7J2gj
⌨️ Tecware Phantom Keyboard - https://amzn.to/3aUP4y9
Using links I provide I may receive a commission if you buy something which helps support the channel.
#vscode #csharp #dotnet #mcp #mcpserver #githubcopilot