The easiest way to use Ollama in .NET
-
Updated
Oct 2, 2025 - C#
The easiest way to use Ollama in .NET
MCPSharp is a .NET library that helps you build Model Context Protocol (MCP) servers and clients - the standardized API protocol used by AI assistants and models.
Building GenAI Apps in C#: AI Templates, GitHub Models, Azure OpenAI & More
This provides sample codes that uses Microsoft.Extensions.AI for locally running LLMs through Docker Model Runner, Foundry Local, Hugging Face and Ollama
.NET is also capable of building AI infused app really easily. This repository provides several sample apps using Microsoft.Extensions.AI, Azure AI Foundry, Foundry Local and MCP server/client.
A sample application demonstrating AWSSDK.Extensions.Bedrock.MEAI
MLXSharp is the first .NET wrapper around Apple MLX that plugs straight into Microsoft.Extensions.AI. It is designed and tested on macOS (Apple silicon) but ships prebuilt native binaries for both macOS and Linux so that NuGet consumers can run out-of-the-box.
A tiny .NET console app that let's you chat with a local gpt-oss-20b AI model.
Add a description, image, and links to the microsoft-extensions-ai topic page so that developers can more easily learn about it.
To associate your repository with the microsoft-extensions-ai topic, visit your repo's landing page and select "manage topics."