jongalloway avatar

.NET MCP Server

jongalloway/dotnet-mcp

Connects AI assistants directly to the .NET SDK through structured tools instead of raw CLI parsing. You get project creation with template discovery, NuGet package search and management, build and test execution, and workspace introspection. It exposes MCP resources for SDK versions, runtime info, installed templates, and framework metadata so your AI knows what's actually available before making suggestions. The server enriches errors with diagnostic explanations and documentation links for 52 common error codes. Reach for this when you want your AI to scaffold projects, manage dependencies, or run builds without guessing at command syntax or parsing console output.

GitHub stars
26
tools
10
transport
STDIO
env vars
2
last updated
Mar 18, 2026

Tools

10 tools

Public tool metadata for what this MCP can expose to an agent.

dotnet_sdk_queryRead-only query tool for SDK information with actions Version, Info, ListSdks, ListRuntimes, FrameworkInfo, CacheMetrics.

Read-only query tool for SDK information with actions Version, Info, ListSdks, ListRuntimes, FrameworkInfo, CacheMetrics.

No parameter schema in public metadata yet.

dotnet_project_queryRead-only query tool for retrieving logs from background process sessions (Logs action).

Read-only query tool for retrieving logs from background process sessions (Logs action).

No parameter schema in public metadata yet.

dotnet_server_metrics_queryRead-only query tool for server metrics (Get, TokenSavingsGet actions).

Read-only query tool for server metrics (Get, TokenSavingsGet actions).

No parameter schema in public metadata yet.

dotnet_projectUnified interface for project lifecycle operations: New, Restore, Build, Run, Test, Publish, Clean, Analyze, Dependencies, Validate, Pack, Watch, Format, Stop, Logs.

Unified interface for project lifecycle operations: New, Restore, Build, Run, Test, Publish, Clean, Analyze, Dependencies, Validate, Pack, Watch, Format, Stop, Logs.

No parameter schema in public metadata yet.

dotnet_packageManage NuGet packages and project references: Add, Remove, Search, Update, List, AddReference, RemoveReference, ListReferences, ClearCache.

Manage NuGet packages and project references: Add, Remove, Search, Update, List, AddReference, RemoveReference, ListReferences, ClearCache.

No parameter schema in public metadata yet.

dotnet_solutionManage solution files and project membership: Create, Add, List, Remove.

Manage solution files and project membership: Create, Add, List, Remove.

No parameter schema in public metadata yet.

dotnet_efEntity Framework Core database migrations, DbContext management, and scaffolding.

Entity Framework Core database migrations, DbContext management, and scaffolding.

No parameter schema in public metadata yet.

dotnet_workloadInstall and manage .NET workloads: List, Info, Search, Install, Update, Uninstall.

Install and manage .NET workloads: List, Info, Search, Install, Update, Uninstall.

No parameter schema in public metadata yet.

dotnet_toolManage global and local .NET tools: Install, List, Update.

Manage global and local .NET tools: Install, List, Update.

No parameter schema in public metadata yet.

dotnet_helpFree-form help commands for the .NET CLI.

Free-form help commands for the .NET CLI.

No parameter schema in public metadata yet.

Sponsors

Configuration

DOTNET_SKIP_FIRST_TIME_EXPERIENCE

Skip .NET CLI first-time setup experience

DOTNET_NOLOGO

Suppress .NET logo and startup messages

Readme

Details

Repository
github.com/jongalloway/dotnet-mcp
Package
Community.Mcp.DotNet
Transport
STDIO
Registry
MCP registry, active