The easiest way to use Ollama in .NET
-
Updated
Jul 24, 2026 - 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.
A .NET 10 port of graphify - AI knowledge graph builder for codebases using GitHub Copilot SDK and Microsoft.Extensions.AI
Building GenAI Apps in C#: Microsoft Extensions for AI, Templates, Microsoft Foundry & More
.NET library for local embedding generation using ONNX and Microsoft.Extensions.AI
Pluggable real-time audio conversation framework for .NET. Local VAD, STT, TTS, and LLM
C# local LLM chat completions library using ONNX Runtime, compatible with Microsoft.Extensions.AI
Run, fine-tune and serve real LLMs entirely in-process in .NET — on the CPU, on-device, offline. No Python, no GPU, no cloud.
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 sample application demonstrating Microsoft.Extensions.AI
A .NET library for local image captioning using ONNX Runtime with automatic HuggingFace model download
Composable Microsoft.Extensions.AI IChatClient middlewares for .NET — tool-call tracking with in-band streaming progress, per-tool token usage reports, and satellite packages for MCP tools and Microsoft Agent Framework agents-as-tools.
This provides sample codes that uses Microsoft.Extensions.AI for locally running LLMs through Docker Model Runner, Foundry Local, Hugging Face and Ollama
RAG document intelligence with .NET AI building blocks (Microsoft.Extensions.AI, VectorData, Agents) and Aspire
Local-first .NET 10 sample integrating Microsoft Agent Framework with Foundry Local through a Microsoft.Extensions.AI IChatClient adapter.
.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.
Searchable MCP and AITool gateway for .NET, built on Microsoft.Extensions.AI with embedding-based tool discovery, lexical fallback, and unified execution
Reusable local-first speech runtime for .NET — VAD, STT, LLM, TTS pipeline with Microsoft.Extensions.AI
Markdown-LD Knowledge Bank is a .NET 10 library for building local RDF/JSON-LD knowledge graphs from Markdown with SPARQL, graph/BM25/Tiktoken search, citations, and IChatClient extraction.
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."