{"product_id":"9798868830099","title":"Building MCP Servers with C# Connect AI Agents to Your .NET Applications with the Model Context Protocol","description":"\u003ch1\u003eBuilding MCP Servers with C#\u003c\/h1\u003e\u003ch2\u003eConnect AI Agents to Your .NET Applications with the Model Context Protocol\u003c\/h2\u003e\u003ch3\u003eGerald Versluis\u003c\/h3\u003e\u003cdiv\u003e\u003cb\u003eComputers \/ Programming \/ Microsoft\u003c\/b\u003e\u003c\/div\u003e\u003cbr\u003e\u003cdiv\u003e\n\u003cp\u003eThe Model Context Protocol (MCP) is quickly becoming the standard way for AI models to talk to external tools, data, and services. Anthropic announced it late 2024, and Microsoft, OpenAI, Google, and others all jumped on board pretty quickly. It gives a universal protocol so AI agents can call into code: reading databases, calling APIs, accessing files, whatever is needed. People like to call it \"USB-C for AI.\"\u003cbr\u003e\u003c\/p\u003e\n\u003cp\u003eThis book teaches .NET developers how to build MCP servers using the official C# SDK (ModelContextProtocol on NuGet). Start with the basics, learn how the protocol works, prepare the dev environment, then build increasingly complex servers. The book walks through the three MCP primitives: tools (functions the AI can call), resources (data the AI can read), and prompts (reusable templates), with examples you can actually run as you go.\u003c\/p\u003e\n\u003cp\u003eGitHub Copilot, Claude, ChatGPT, and other AI assistants are adding MCP support right now. If you can build MCP servers, your code and APIs become accessible to every major AI platform at once. Readers build a complete capstone project that ties together tools, resources, prompts, DI, database integration, and deployment. The last chapters cover enterprise stuff like auth, resilience, and observability, plus getting it running with Docker, Azure, and CI\/CD. So you can actually ship what you build.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eWhat You Will Learn\u003c\/strong\u003e\u003c\/p\u003e\n\u003cul\u003e\n\u003cli\u003eUnderstand how MCP works architecturally. Learn how hosts, clients, and servers communicate with JSON-RPC 2.0, how capability negotiation works, and what the transport layers do.\u003c\/li\u003e\n\u003cli\u003eBuild MCP tools with the C# SDK. Create tools with typed parameters, async execution, progress reporting, and proper error handling using the official ModelContextProtocol NuGet package.\u003c\/li\u003e\n\u003cli\u003eExpose data through MCP resources. Serve static and templated resources with proper URI schemes and MIME types so AI models can read your application data.\u003c\/li\u003e\n\u003cli\u003eCreate reusable prompt templates. Build parameterized prompts with multiple messages that guide AI behavior and can be shared across teams.\u003c\/li\u003e\n\u003cli\u003ePick the right transport layer. Understand when to use stdio vs Streamable HTTP and implement both with ASP.NET Core.\u003c\/li\u003e\n\u003cli\u003eUse proper .NET patterns in MCP servers. Use dependency injection, IOptions configuration, structured logging, HttpClientFactory, the same patterns you'd use in any production ASP.NET Core app.\u003c\/li\u003e\n\u003cli\u003eDeploy MCP servers for real. Containerize with Docker, publish as .NET tools on NuGet, deploy to Azure, and set up CI\/CD with GitHub Actions.\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003e\u003cstrong\u003eWho This Book is For\u003c\/strong\u003e\u003c\/p\u003e\n\u003cp\u003eThis book is for any .NET developers seeking to use Model Context Protocol to develop intelligent applications.\u003c\/p\u003e\n\u003c\/div\u003e\u003cdiv\u003e\u003cp\u003e\u003cstrong\u003eGerald Versluis\u003c\/strong\u003e is a software developer from the Netherlands. He works at Microsoft on the .NET Maui team, helping to build amazing cross-platform frameworks for developing mobile and desktop apps. He is the host of a hugely successful YouTube channel with over 100k subscribers and often speaks about app development at conferences like Microsoft Build, NET Conf, and more.\u003c\/p\u003e\u003c\/div\u003e\u003cbr\u003e\u003ctable\u003e\n\u003ctr\u003e\n\u003ctd\u003ePublication Date: \u003c\/td\u003e\n\u003ctd\u003e11 December 2026\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003ePublisher: \u003c\/td\u003e\n\u003ctd\u003eApress\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eImprint: \u003c\/td\u003e\n\u003ctd\u003eApress\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eISBN-13: \u003c\/td\u003e\n\u003ctd\u003e9798868830099\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eFormat: \u003c\/td\u003e\n\u003ctd\u003ePaperback \/ softback\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/table\u003e","brand":"Apress","offers":[{"title":"Default Title","offer_id":50591237046412,"sku":"9798868830099","price":49.49,"currency_code":"USD","in_stock":true}],"url":"https:\/\/lateknightbooks.com\/products\/9798868830099","provider":"Late Knight Books and Services, LLC","version":"1.0","type":"link"}