Learn MCP server added to a .NET 11 app for Claude Code
You can instruct Claude Code to read the Microsoft documentation. You can learn how to add the Learn MCP Server to your app, or watch the video.
Download the code example
You'll need to fill out the code example form. We will send you an email where you can download the code example.
Software
This is the software that will need to be installed onto your machine.
Visual Studio 2026. Version 18.12.0 or above. It will work with the free community version.
.NET 11 SDK. Version 11.0.0 or above.
The application
The MCP server instructions have been added to the .mcp.json file in the root of the project.
Open up Claude Code in your project and ask it to write some C# code.
Then ask Claude Code how it wrote the code. It should state the links in the Microsoft documentation that it used.
Download this code example
Enter your email and we'll send you a download link.
Related code examples
Download C# 13 code examples which includes all the new features so you can try them out for yourself and see what has changed from previous C# versions.
A .NET app that has skills created for Claude to create an Entity Framework Core entity and a Minimal API endpoint.
Download this code example
Enter your email and we'll send you a download link.