GitDiagram
Architecture diagrams, explanations and Mermaid source for public GitHub repositories.
AI assistant access to .NET SDK for projects, packages, building, testing, and development tools.
选择你使用的 AI 应用,然后复制设置。
通过 3/3 项检查 · 在你的电脑上运行 · ✓ 命令已检查 2026年11月14日
第一步:你用哪个 AI?
选择你用的应用,步骤会显示在下方。
可连接 Claude,但需要先准备
不需要密钥,不用安装程序 · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用
把这段话复制到 Claude 的对话里。AI 会先检查电脑,告诉你要改哪个文件,并且每次都等你同意。
请在这台电脑上为 Claude 安装 MCP server .NET MCP Server,按顺序:1) 2) 只使用这份配置(已通过 PopNx MCP 检查):{ "mcpServers": { "dotnet": { "command": "dnx", "args": [ "Community.Mcp.DotNet", "--yes" ] } } } 3) 告诉我要修改的文件完整路径或要运行的命令,等我同意。4) 不需要密钥。5) 按约定执行,然后确认 .NET MCP Server 的工具真的出现了。这段话不包含你的密钥。如果需要密钥,AI 会请你自己粘贴到文件或应用的输入框里。
SettingsDeveloperEdit Config
{
"mcpServers": {
"dotnet": {
"command": "dnx",
"args": [
"Community.Mcp.DotNet",
"--yes"
]
}
}
}上面的命令不填这些也能用。想调整时再按开发者的说明添加。
DOTNET_SKIP_FIRST_TIME_EXPERIENCE 跳过 .NET CLI 首次设置体验 DOTNET_NOLOGO 隐藏 .NET 标志和启动消息 说明为自动翻译,变量名保持原样;不确定时请查看原文。
菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同
ChatGPT 暂时无法连接 .NET MCP Server
.NET MCP Server 需要安装在你的电脑上,而 ChatGPT 只能连接在网上运行的服务器
A · 使用能连接 .NET MCP Server 的应用
B · 开发者工具 类中能连接 ChatGPT 的其他服务器
从同类中使用较多的里挑选,仅限用地址即可连接、无需密钥的
可连接 Claude Code,但需要先准备
不需要密钥,不用安装程序
把这段话复制到 Claude Code 的对话里。AI 会先检查电脑,告诉你要改哪个文件,并且每次都等你同意。
请在这台电脑上为 Claude Code 安装 MCP server .NET MCP Server,按顺序:1) 2) 只使用这份配置(已通过 PopNx MCP 检查):claude mcp add --scope user dotnet -- dnx Community.Mcp.DotNet --yes 3) 告诉我要修改的文件完整路径或要运行的命令,等我同意。4) 不需要密钥。5) 按约定执行,然后确认 .NET MCP Server 的工具真的出现了。这段话不包含你的密钥。如果需要密钥,AI 会请你自己粘贴到文件或应用的输入框里。
Mac:按 Command+空格,输入 Terminal · Windows:打开 PowerShell
claude mcp add --scope user dotnet -- dnx Community.Mcp.DotNet --yes应能看到 .NET MCP Server 在列表中并显示已连接
用 .NET MCP Server 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Claude Code 说正在使用 .NET MCP Server,或回答中出现 .NET MCP Server 的工具名称,就表示连接成功
上面的命令不填这些也能用。想调整时再按开发者的说明添加。
DOTNET_SKIP_FIRST_TIME_EXPERIENCE 跳过 .NET CLI 首次设置体验 DOTNET_NOLOGO 隐藏 .NET 标志和启动消息 说明为自动翻译,变量名保持原样;不确定时请查看原文。
菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同
可连接 Cursor,但需要先准备
不需要密钥,不用安装程序
把这段话复制到 Cursor 的对话里。AI 会先检查电脑,告诉你要改哪个文件,并且每次都等你同意。
请在这台电脑上为 Cursor 安装 MCP server .NET MCP Server,按顺序:1) 2) 只使用这份配置(已通过 PopNx MCP 检查):{ "mcpServers": { "dotnet": { "command": "dnx", "args": [ "Community.Mcp.DotNet", "--yes" ] } } } 3) 告诉我要修改的文件完整路径或要运行的命令,等我同意。4) 不需要密钥。5) 按约定执行,然后确认 .NET MCP Server 的工具真的出现了。这段话不包含你的密钥。如果需要密钥,AI 会请你自己粘贴到文件或应用的输入框里。
用 .NET MCP Server 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Cursor 说正在使用 .NET MCP Server,或回答中出现 .NET MCP Server 的工具名称,就表示连接成功
上面的命令不填这些也能用。想调整时再按开发者的说明添加。
DOTNET_SKIP_FIRST_TIME_EXPERIENCE 跳过 .NET CLI 首次设置体验 DOTNET_NOLOGO 隐藏 .NET 标志和启动消息 说明为自动翻译,变量名保持原样;不确定时请查看原文。
菜单名称已于 2026年11月11日 对照 Cursor 帮助页面核实 · 你的界面可能因版本略有不同
可连接 VS Code,但需要先准备
不需要密钥,不用安装程序
把这段话复制到 VS Code 的对话里。AI 会先检查电脑,告诉你要改哪个文件,并且每次都等你同意。
请在这台电脑上为 VS Code 安装 MCP server .NET MCP Server,按顺序:1) 2) 只使用这份配置(已通过 PopNx MCP 检查):{ "servers": { "dotnet": { "type": "stdio", "command": "dnx", "args": [ "Community.Mcp.DotNet", "--yes" ] } } } 3) 告诉我要修改的文件完整路径或要运行的命令,等我同意。4) 不需要密钥。5) 按约定执行,然后确认 .NET MCP Server 的工具真的出现了。这段话不包含你的密钥。如果需要密钥,AI 会请你自己粘贴到文件或应用的输入框里。
用 .NET MCP Server 告诉我你能帮我做什么,然后做一件给我看✓ 如果 VS Code 说正在使用 .NET MCP Server,或回答中出现 .NET MCP Server 的工具名称,就表示连接成功
上面的命令不填这些也能用。想调整时再按开发者的说明添加。
DOTNET_SKIP_FIRST_TIME_EXPERIENCE 跳过 .NET CLI 首次设置体验 DOTNET_NOLOGO 隐藏 .NET 标志和启动消息 说明为自动翻译,变量名保持原样;不确定时请查看原文。
菜单名称已于 2026年11月11日 对照 VS Code 帮助页面核实 · 你的界面可能因版本略有不同
Claude Code
claude mcp add --scope user dotnet -- dnx Community.Mcp.DotNet --yesClaude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"dotnet": {
"command": "dnx",
"args": [
"Community.Mcp.DotNet",
"--yes"
]
}
}
}Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"dotnet": {
"command": "dnx",
"args": [
"Community.Mcp.DotNet",
"--yes"
]
}
}
}VS Code (mcp.json)
{
"servers": {
"dotnet": {
"type": "stdio",
"command": "dnx",
"args": [
"Community.Mcp.DotNet",
"--yes"
]
}
}
}DOTNET_SKIP_FIRST_TIME_EXPERIENCE envDOTNET_NOLOGO env说明为自动翻译,变量名保持原样;不确定时请查看原文。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
依据这个服务器的连接方式和各应用自己的文档,检查于 2026年11月10日。
在你的电脑上运行,适用于
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月15日
注册名称已通过 GitHub 账户 jongalloway 验证,该账户拥有此仓库
代码最后更新于6天前
使用 MIT
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
提问、分享技巧或报告无法使用。按“有帮助”数量排序。
还没有评价
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 3 项适用的基础检查中通过了 3 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于6天前,最新版本(1.1.2)于8个月前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 .NET。
同一分类中有:GitDiagram, Appllama, Cloudflare MCP, Omnara, Repowise
同一分类、其他作者、命令已通过检查。官方的排在前面,再按星标排序。
如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Architecture diagrams, explanations and Mermaid source for public GitHub repositories.
Study screens, flows and paywalls from top-earning iOS apps, then build from what wins.
Deploy durable AI agents with Omnara, an open-source managed-agent platform.
Codebase intelligence for AI coding agents: graph, git history, docs, decisions, code health.
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
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.
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.
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
Instead of remembering exact dotnet commands and syntax, just ask:
Your AI assistant gets direct access to:
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.
machineReadable: true returns structured JSON (no log scraping)The .NET MCP Server provides context and intelligence that raw CLI execution cannot:
console, webapi, blazor, etc.) and their parametersnet8.0 when you only have net10.0 installed, leading to errors--use-controllers, --auth, framework optionsThe server provides enhanced error diagnostics for 52 common error codes:
See Error Diagnostics Documentation for details.
MCP Resources provide read-only access to structured metadata about your .NET environment:
This enables AI assistants to:
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
The MCP server uses official .NET SDK APIs and CLI commands, ensuring:
unsafeOutput=true for advanced debuggingMicrosoft.AgentGovernance.Extensions.ModelContextProtocol when enabled via configurationdoc/mcp-governance.md for a sample mcp.yaml policy templateGovernance 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"] }
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:
dotnet-mcp use