.NET MCP Server
What it does
AI assistant access to .NET SDK for projects, packages, building, testing, and development tools.
- Connects パソコンで動く
- Account or key No key needed
- Category 開発者ツール
インストール
使っているAIアプリを選んで、設定をコピーしてください。
チェック 3/3 合格 · あなたのパソコンで動きます
まず:どの AI を使っていますか?
使っているアプリを選ぶと、下に手順が表示されます。
.NET MCP Server に登録してキーを作る
提供元のサイトで登録し、次の手順で使う API キーを作ります。料金や無料プランは提供元のサイトで確認してください。
キーの取り方は下の提供元 README にあります
パソコン版 Claude アプリの設定ファイルを開く
SettingsDeveloperEdit Config
この設定を貼り付けて保存
{ "mcpServers": { "dotnet": { "command": "dnx", "args": [ "Community.Mcp.DotNet", "--yes" ], "env": { "DOTNET_SKIP_FIRST_TIME_EXPERIENCE": "your-value", "DOTNET_NOLOGO": "your-value" } } } }キーはアプリの入力欄にだけ貼り付け、チャットに貼ったり人に送ったりしないでください
Claude を終了してもう一度開く
試してみる
.NET MCP Server を使って、私に何ができるか教えて、1 つやってみせて✓ Claude が .NET MCP Server を使っていると言うか、回答に .NET MCP Server のツール名が出れば接続成功です
メニュー名は 2026年11月11日 に Anthropic のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります
ChatGPT はまだ .NET MCP Server につなげません
.NET MCP Server はパソコンに入れて使うものですが、ChatGPT は Web 上で動くサーバーにしかつなげません
代わりにできること
A · .NET MCP Server につなげるアプリを使う
- .NET MCP Server のキーが必要です(提供元のサイトで作成) · パソコン版 Claude アプリ(Windows または Mac)のみ。Web やスマホでは使えません
- .NET MCP Server のキーが必要です(提供元のサイトで作成)
- .NET MCP Server のキーが必要です(提供元のサイトで作成)
- .NET MCP Server のキーが必要です(提供元のサイトで作成)
B · 開発者ツール の中で ChatGPT につなげる別のサーバー
同じカテゴリでよく使われているものから、キーなしでアドレスだけでつなげるものを選びました
- Sentry✓ ChatGPT
- Compiler Explorer✓ ChatGPT
- GitDiagram✓ ChatGPT
Claude Code につなげますが、先に準備が必要です
.NET MCP Server のキーが必要です(提供元のサイトで作成)
.NET MCP Server に登録してキーを作る
提供元のサイトで登録し、次の手順で使う API キーを作ります。料金や無料プランは提供元のサイトで確認してください。
キーの取り方は下の提供元 README にあります
ターミナルを開く
Mac:Command+スペースで Terminal と入力 · Windows:PowerShell を開く
このコマンドを貼り付けて Enter
claude mcp add --scope user dotnet --env DOTNET_SKIP_FIRST_TIME_EXPERIENCE=your-value --env DOTNET_NOLOGO=your-value -- dnx Community.Mcp.DotNet --yesEnter の前に「your-value」を自分のキーに書き換えてください
キーはアプリの入力欄にだけ貼り付け、チャットに貼ったり人に送ったりしないでください
Claude Code で /mcp と入力
.NET MCP Server が一覧にあり、接続済みと表示されれば OK です
試してみる
.NET MCP Server を使って、私に何ができるか教えて、1 つやってみせて✓ Claude Code が .NET MCP Server を使っていると言うか、回答に .NET MCP Server のツール名が出れば接続成功です
メニュー名は 2026年11月11日 に Anthropic のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります
Cursor につなげますが、先に準備が必要です
.NET MCP Server のキーが必要です(提供元のサイトで作成)
.NET MCP Server に登録してキーを作る
提供元のサイトで登録し、次の手順で使う API キーを作ります。料金や無料プランは提供元のサイトで確認してください。
キーの取り方は下の提供元 README にあります
キーを入力
.NET MCP Server の設定で DOTNET_SKIP_FIRST_TIME_EXPERIENCE, DOTNET_NOLOGO が空です。自分のキーを入れて保存します
キーはアプリの入力欄にだけ貼り付け、チャットに貼ったり人に送ったりしないでください
Cursor の AI チャットを Agent モードで開く
試してみる
.NET MCP Server を使って、私に何ができるか教えて、1 つやってみせて✓ Cursor が .NET MCP Server を使っていると言うか、回答に .NET MCP Server のツール名が出れば接続成功です
メニュー名は 2026年11月11日 に Cursor のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります
VS Code につなげますが、先に準備が必要です
.NET MCP Server のキーが必要です(提供元のサイトで作成)
.NET MCP Server に登録してキーを作る
提供元のサイトで登録し、次の手順で使う API キーを作ります。料金や無料プランは提供元のサイトで確認してください。
キーの取り方は下の提供元 README にあります
キーを入力
.NET MCP Server の設定で DOTNET_SKIP_FIRST_TIME_EXPERIENCE, DOTNET_NOLOGO が空です。自分のキーを入れて保存します
キーはアプリの入力欄にだけ貼り付け、チャットに貼ったり人に送ったりしないでください
VS Code の AI チャットを Agent モードで開く
試してみる
.NET MCP Server を使って、私に何ができるか教えて、1 つやってみせて✓ VS Code が .NET MCP Server を使っていると言うか、回答に .NET MCP Server のツール名が出れば接続成功です
メニュー名は 2026年11月11日 に VS Code のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります
Windsurf、Zed、Gemini CLI など MCP を使える他のアプリは追加方法がそれぞれ違います。アプリ一覧で確認してください
JSON 設定は下の「開発者向け」にあります
開発者向け:ターミナルのコマンドと JSON 設定
パソコンにインストール
Claude Code
claude mcp add --scope user dotnet --env DOTNET_SKIP_FIRST_TIME_EXPERIENCE=your-value --env DOTNET_NOLOGO=your-value -- dnx Community.Mcp.DotNet --yesClaude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"dotnet": {
"command": "dnx",
"args": [
"Community.Mcp.DotNet",
"--yes"
],
"env": {
"DOTNET_SKIP_FIRST_TIME_EXPERIENCE": "your-value",
"DOTNET_NOLOGO": "your-value"
}
}
}
}Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"dotnet": {
"command": "dnx",
"args": [
"Community.Mcp.DotNet",
"--yes"
],
"env": {
"DOTNET_SKIP_FIRST_TIME_EXPERIENCE": "your-value",
"DOTNET_NOLOGO": "your-value"
}
}
}
}VS Code (mcp.json)
{
"servers": {
"dotnet": {
"type": "stdio",
"command": "dnx",
"args": [
"Community.Mcp.DotNet",
"--yes"
],
"env": {
"DOTNET_SKIP_FIRST_TIME_EXPERIENCE": "your-value",
"DOTNET_NOLOGO": "your-value"
}
}
}
}自分で入力する値
DOTNET_SKIP_FIRST_TIME_EXPERIENCEenvSkip .NET CLI first-time setup experienceDOTNET_NOLOGOenvSuppress .NET logo and startup messages
この設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。
ひと目でわかる
使えるアプリ
このサーバーのつなぎ方と、各アプリの公式ドキュメントに基づきます。2026年11月10日に確認。
パソコン上で動かせるアプリ
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
できること
パソコンで動くサーバーです。インストールすると、ツール一覧がAIアプリに表示されます。
基本チェックi
誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月12日にチェック
- ✓ 合格
作者とリポジトリが一致
レジストリ名は、リポジトリを所有するGitHubアカウント jongalloway で確認済みです
- ✓ 合格
今もメンテナンスされている
コードの最終更新:3 日前
- ✓ 合格
ライセンスがある
MITを使用
- – 対象外
エンドポイントが応答する
これはパソコンで動くため、インターネット上のエンドポイントはありません
- – 対象外
OAuthでサインイン
パソコンで動き、代わりにローカルの設定を使います
- … 未チェック
ツールの説明に隠れた指示がない
パソコンで動くサーバーです。ツール一覧を読み取れるのは、インターネット上のエンドポイントがある場合だけです
話し合い
質問、コツの共有、使えないことの報告ができます。「役に立った」の多い順です。
ユーザーレビュー
まだレビューはありません
開発者ツールのほかのサーバーとの比較i
- このカテゴリのほかの5811件のうち95%よりスターが多い
- このカテゴリのほかの5811件のうち6%より最近レジストリに公開
- 基本チェックの結果が、このカテゴリのほかの5811件のうち100%と同じかそれ以上
レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。
よくある質問
.NET MCP Serverは安全ですか?
当てはまる基本チェック3項目のうち3項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。
どんなキーやコードが必要ですか?
レジストリには必須のキーは載っていません。ただし、最初に使うときにサインインを求めるサーバーもあります。
パソコンで動きますか、それともクラウドですか?
あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。
今もメンテナンスされていますか?
GitHubリポジトリの最終更新は3 日前、最新バージョン(1.1.2)がレジストリに届いたのは8 か月前です。
どのアプリで使えますか?
Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンに.NETも必要です。
同じカテゴリのほかの候補
同じカテゴリで、ほかの作者が作ったサーバー。スターの多い順。
カードの見方:↓ 週あたりのダウンロードi★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i
GitHub
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
Serena MCP: the IDE for your agent
A powerful toolkit for coding, providing semantic retrieval and editing capabilities.
作者のREADME
READMEを開く
作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。
.NET MCP Server
Give your AI assistant superpowers for .NET development! This MCP server connects GitHub Copilot, Claude, and other AI assistants directly to the .NET SDK, enabling them to create projects, manage packages, run builds, and more—all through natural language.
Quick Install
Click to install in your preferred environment:
Note: Quick install requires the .NET 10 or .NET 11 SDK. Source builds require .NET 11 RC3 or a compatible GA SDK in the 11.0.1xx feature band.
What is This?
The .NET MCP Server is a Model Context Protocol (MCP) server that connects AI assistants to the .NET SDK using the Model Context Protocol. Think of it as giving your AI assistant a direct line to dotnet commands, but with intelligence and context.
Important: This package is designed exclusively as an MCP server for AI assistants. It is not intended for use as a library or for programmatic consumption in other .NET applications. The only supported use case is running it as an MCP server via
dnxordotnet run.
graph LR
A[AI Assistant Copilot/Claude] -->|Natural Language| B[.NET MCP Server] B -->|dotnet commands| C[.NET SDK] C -->|Results| B B -->|Structured Response| A
style A fill:#e1f5ff style B fill:#fff4e6 style C fill:#e8f5e9
Why Use It?
🚀 Faster Development
Instead of remembering exact dotnet commands and syntax, just ask:
- *"Create a new web API project with Entity Framework"*
- *"Add the Serilog package and configure structured logging"*
- *"Update all my NuGet packages to the latest versions"*
🧠 Smarter AI Assistance
Your AI assistant gets direct access to:
- All installed .NET templates and their parameters
- NuGet package search and metadata
- Framework version information (including LTS status)
- Your solution and project structure
⚡ Token-Efficient by Design
Instead of relying on the LLM to infer state by reading and re-reading console output, the server exposes purpose-built .NET tools with structured inputs and outputs. In practice, this typically means fewer tokens per task and less back-and-forth.
- Deterministic tool schemas reduce prompt/response overhead
machineReadable: truereturns structured JSON (no log scraping)- MCP Resources provide lightweight metadata without running commands
🎯 Why Not Just Let the AI Call `dotnet` Directly?
The .NET MCP Server provides context and intelligence that raw CLI execution cannot:
1. Template Discovery & Validation
- With MCP: AI knows exactly which templates are installed (
console,webapi,blazor, etc.) and their parameters - Without MCP: AI guesses template names and parameters, often getting them wrong
2. Framework Intelligence
- With MCP: AI knows which .NET versions are installed, which are LTS, and can recommend appropriately
- Without MCP: AI suggests
net8.0when you only havenet10.0installed, leading to errors
3. Rich Tool Descriptions
- With MCP: Each tool has detailed parameter descriptions and constraints (e.g., "configuration must be Debug or Release")
- Without MCP: AI constructs commands from general knowledge, missing version-specific changes
4. Parameter Information
- With MCP: AI sees template parameters like
--use-controllers,--auth, framework options - Without MCP: AI doesn't know what optional parameters exist for each template
5. Package Search Integration
- With MCP: AI can search NuGet.org to find exact package names and versions
- Without MCP: AI guesses package names, often suggesting outdated or incorrect ones
6. Structured Error Handling with Enhanced Diagnostics
- With MCP: Errors are parsed and enriched with explanations, documentation links, and suggested fixes
- Without MCP: AI gets raw stderr output and may misinterpret errors
The server provides enhanced error diagnostics for 52 common error codes:
- Plain English explanations of what went wrong
- Direct links to official Microsoft documentation
- Specific suggested fixes with commands to resolve issues
- Support for CS####, MSB####, NU####, and NETSDK#### error codes
See Error Diagnostics Documentation for details.
7. MCP Resources
MCP Resources provide read-only access to structured metadata about your .NET environment:
- dotnet://sdk-info - Information about installed .NET SDKs (versions and paths)
- dotnet://runtime-info - Information about installed .NET runtimes (versions and types)
- dotnet://templates - Complete catalog of installed .NET templates with metadata
- dotnet://frameworks - Information about supported .NET frameworks (TFMs) including LTS status
- dotnet://workspace - Workspace snapshot with solution, projects, target frameworks, and package counts
This enables AI assistants to:
- Answer questions without executing commands ("What .NET versions do I have installed?")
- Provide context-aware suggestions based on your actual environment
- Access structured JSON data more efficiently than parsing CLI output
- Reference official .NET metadata for accurate recommendations
Example: Using resources for context-aware assistance
❌ Without Resources:
User: "What .NET versions do I have?" AI: Executes dotnet --list-sdks and parses output User: "Which is LTS?" AI: Executes dotnet --info and tries to parse support info
✅ With Resources: User: "What .NET versions do I have?" AI: Reads dotnet://sdk-info resource (no execution needed) Returns: .NET 8.0 (LTS), .NET 9.0 (STS), .NET 10.0 (LTS) User: "Which is LTS?" AI: Already knows from resource metadata - .NET 8.0, .NET 10.0
Example: Creating a Blazor project with authentication
❌ Without MCP:
AI: "I'll run: dotnet new blazor --auth Individual" Result: Error - template 'blazor' doesn't support --auth parameter
✅ With MCP: AI: Uses dotnet_sdk with action: "TemplateInfo" for 'blazor' Sees available parameters: --interactivity, --use-program-main, --empty Uses dotnet_sdk with action: "SearchTemplates" to find authentication templates AI: "I'll create a Blazor Web App with authentication using the correct template..." Result: Success - uses 'blazor' template with proper authentication configuration
✨ Consistent Results
The MCP server uses official .NET SDK APIs and CLI commands, ensuring:
- Accurate template information from the Template Engine
- Reliable command execution
- Proper error handling and validation
🔒 Secure by Design
- Runs locally on your machine
- No data sent to external servers
- You control what commands execute
- Standard .NET security model applies
- Automatic secret redaction to protect sensitive information in CLI output
- Connection strings, passwords, and API keys are automatically redacted
- Implemented using optimized regular expressions with <1% performance overhead
- References Microsoft.Extensions.Compliance.Redaction for future integration
- Opt-out available with
unsafeOutput=truefor advanced debugging - Patterns include: database credentials, cloud provider keys, tokens, certificates, and more
- Performance impact is minimal and tested to complete within 500ms for 10,000 lines
- Optional MCP governance controls (preview)
- Uses
Microsoft.AgentGovernance.Extensions.ModelContextProtocolwhen enabled via configuration - Disabled by default to preserve existing behavior and compatibility
- Does not ship with a default enforced policy; provide your own policy file(s) when needed
- See
doc/mcp-governance.mdfor a samplemcp.yamlpolicy template - Sources:
- Agent Governance Toolkit repository: https://github.com/microsoft/agent-governance-toolkit
- Agent Governance Toolkit for .NET: https://github.com/microsoft/agent-governance-toolkit/tree/main/agent-governance-dotnet
- Announcement: https://devblogs.microsoft.com/dotnet/announcing-agent-governance-toolkit-mcp-extensions-for-dotnet/
- Configuration for startup scanning, policy-based tool authorization, and response sanitization uses the following shape:
Governance startup limitation: Setting
McpGovernance:Enabledtotruewith the full tool catalog currently fails startup because the toolkit scanner rejects the existingdotnet_dev_certs.passwordinput property. The example below is not a working full-catalog workaround, and an allow policy does not bypass startup scanning. See the startup restriction and operating guidance. Leaving governance disabled permits ordinary server use but provides no governance enforcement.
"McpGovernance": {
"Enabled": true, "DefaultAgentId": "did:mcp:anonymous", "ServerName": "dotnet-mcp", "PolicyPaths": ["/path/to/your/policies/mcp.yaml"] }
How It Works
sequenceDiagram
participant User participant AI as AI Assistant participant MCP as .NET MCP Server participant SDK as .NET SDK
User->>AI: "Create a console app called MyApp" AI->>MCP: dotnet_project(action: "New", template: "console", name: "MyApp") MCP->>SDK: dotnet new console -n MyApp SDK-->>MCP: Project created successfully MCP-->>AI: Structured result with output AI-->>User: "I've created a new console app called MyApp"
The .NET MCP Server acts as an intelligent middleware that:
- Translates natural language requests into structured .NET SDK operations
- Validates parameters using official SDK metadata (templates, frameworks, packages)
- Executes commands safely with proper error handling
- Returns structured results that AI assistants can understand and explain
🧩 MCP C# SDK Features Used
dotnet-mcp use