原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。使用 Google 登录即可撰写评价。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

DotNetSearch

作者:puneethdc99版本 1.0.3i★ 0i在你的电脑上运行
注册名称io.github.puneethdc99/dotnetsearch

安装方法

What it does

Token-efficient MCP server for codebase search, NuGet decompilation, and deep PDF reading.

  • Connects 在你的电脑上运行
  • Account or key No key needed
  • Category 文档、表格与办公

安装

选择你使用的 AI 应用,然后复制设置。

通过 2/2 项检查 · 在你的电脑上运行

第一步:你用哪个 AI?

选择你用的应用,步骤会显示在下方。

可连接 Claude,但需要先准备

不需要密钥,不用安装程序 · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用

  1. 打开电脑版 Claude 应用的设置文件

    SettingsDeveloperEdit Config

  2. 粘贴这些设置并保存文件

    {
      "mcpServers": {
        "dotnetsearch": {
          "command": "dnx",
          "args": [
            "PuneethDC.DotNetSearch",
            "--yes"
          ]
        }
      }
    }
  3. 退出 Claude 再重新打开

  4. 试一试

    用 DotNetSearch 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 Claude 说正在使用 DotNetSearch,或回答中出现 DotNetSearch 的工具名称,就表示连接成功

菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同

ChatGPT 暂时无法连接 DotNetSearch

DotNetSearch 需要安装在你的电脑上,而 ChatGPT 只能连接在网上运行的服务器

你可以改用这些方式

A · 使用能连接 DotNetSearch 的应用

  • 不需要密钥,不用安装程序 · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用
  • 不需要密钥,不用安装程序
  • 不需要密钥,不用安装程序
  • 不需要密钥,不用安装程序

B · 文档、表格与办公 类中能连接 ChatGPT 的其他服务器

从同类中使用较多的里挑选,仅限用地址即可连接、无需密钥的

可连接 Claude Code,但需要先准备

不需要密钥,不用安装程序

  1. 打开终端

    Mac:按 Command+空格,输入 Terminal · Windows:打开 PowerShell

  2. 粘贴这条命令并按 Enter

    claude mcp add --scope user dotnetsearch -- dnx PuneethDC.DotNetSearch --yes
  3. 在 Claude Code 中输入 /mcp

    应能看到 DotNetSearch 在列表中并显示已连接

  4. 试一试

    用 DotNetSearch 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 Claude Code 说正在使用 DotNetSearch,或回答中出现 DotNetSearch 的工具名称,就表示连接成功

菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同

可连接 Cursor,但需要先准备

不需要密钥,不用安装程序

  1. 点击这个按钮打开 Cursor

    在 Cursor 中打开

    Cursor 会请你确认安装,点击 Install

  2. 在 Cursor 中以 Agent 模式打开 AI 聊天

  3. 试一试

    用 DotNetSearch 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 Cursor 说正在使用 DotNetSearch,或回答中出现 DotNetSearch 的工具名称,就表示连接成功

菜单名称已于 2026年11月11日 对照 Cursor 帮助页面核实 · 你的界面可能因版本略有不同

可连接 VS Code,但需要先准备

不需要密钥,不用安装程序

  1. 点击这个按钮打开 VS Code

    在 VS Code 中打开

    VS Code 会请你确认安装,点击 Install

  2. 在 VS Code 中以 Agent 模式打开 AI 聊天

  3. 试一试

    用 DotNetSearch 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 VS Code 说正在使用 DotNetSearch,或回答中出现 DotNetSearch 的工具名称,就表示连接成功

菜单名称已于 2026年11月11日 对照 VS Code 帮助页面核实 · 你的界面可能因版本略有不同

其他支持 MCP 的应用(如 Windsurf、Zed、Gemini CLI)添加方式各不相同,请在应用列表中查看

查看所有支持 MCP 的应用 →

JSON 设置在下方“开发者专用”中

卡住了?问问正在用 DotNetSearch 的人💬 讨论 →
开发者专用:终端命令和 JSON 设置

安装在电脑上

Claude Code

claude mcp add --scope user dotnetsearch -- dnx PuneethDC.DotNetSearch --yes

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "dotnetsearch": {
      "command": "dnx",
      "args": [
        "PuneethDC.DotNetSearch",
        "--yes"
      ]
    }
  }
}

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "dotnetsearch": {
      "command": "dnx",
      "args": [
        "PuneethDC.DotNetSearch",
        "--yes"
      ]
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "dotnetsearch": {
      "type": "stdio",
      "command": "dnx",
      "args": [
        "PuneethDC.DotNetSearch",
        "--yes"
      ]
    }
  }
}

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

一览

每周下载量i
不在 npm/PyPI 上
许可证i
未注明许可证
连接方式
在你的电脑上运行
最新版本i
1.0.3
发布到注册中心i
2026年10月26日
代码最后更新i
2026年10月28日
作者
puneethdc99
软件包
nuget: PuneethDC.DotNetSearch
注册状态
活跃

哪些应用可以使用它

依据这个服务器的连接方式和各应用自己的文档,检查于 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 账户 puneethdc99 验证,该账户拥有此仓库

  • ✓ 通过

    仍在维护

    代码最后更新于15天前

  • … 尚未检查

    有许可证

    我们还没有从 GitHub 读取这个仓库

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

讨论

提问、分享技巧或报告无法使用。按“有帮助”数量排序。

还没有帖子,欢迎第一个提问或分享。

此处内容由用户撰写,不代表 PopNx 团队。

使用 Google 登录后发帖

用户评价

还没有评价

用 Google 登录后写评价

与“文档、表格与办公”中的其他服务器比较i

  • 星标数多于此分类中其他 3784 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 3784 个服务器的 65% 更新
  • 基础检查结果等于或优于此分类中其他 3784 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

DotNetSearch 安全吗?

它在 2 项适用的基础检查中通过了 2 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于15天前,最新版本(1.0.3)于17天前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 .NET。

有什么可以替代它?

同一分类中有:Puter MCP, XcodeBuildMCP, XcodeBuildMCP

同类别的其他选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

Puter MCP

Puter MCP enables AI tools to interact with Puter: manage files, websites, workers, and more

作者:HeyPuter广泛使用★ 4.4万5个月前更新

在云端运行✓ 服务方 · puter.com

XcodeBuildMCP

XcodeBuildMCP provides tools for Xcode project management, simulator management, and app utilities.

作者:getsentry广泛使用↓ 13万/周 共用包的下载量★ 65634个月前更新

在你的电脑上运行✓ 服务方 · xcodebuildmcp.com

XcodeBuildMCP

XcodeBuildMCP provides tools for Xcode project management, simulator management, and app utilities.

作者:cameroncooke广泛使用↓ 13万/周 共用包的下载量★ 656314个月前更新

在你的电脑上运行

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

DotNetSearch — MCP Search & PDF Server

MCP Server Identifier: mcp-name: io.github.puneethdc99/dotnetsearch

*(Proof of package ownership for GitHub MCP Registry inclusion)*

DotNetSearch is a self-contained MCP (Model Context Protocol) server that empowers GitHub Copilot, Claude, Cursor, and other AI agents with high-performance codebase search, NuGet package decompilation, whitespace token reduction, and deep PDF document reading and analysis:

Key Tools Overview
CategoryToolPurpose
Code SearchsearchFind files and lines matching a keyword or natural-language query — returns only matching lines (~110 tokens vs ~2500 for a full file read)
Code Searchsearch_relatedFind code chunks structurally similar to a known location — ideal for discovering callers, implementations, or patterns
Decompilationdecompile_typeDecompile any .NET type from referenced NuGet package assemblies — returns the full C# class definition without needing the source code
Optimizationcompress_codeReduce C# code indentation from 4-space to 1-space per indent level and remove blank lines — saves 10–20% tokens with zero semantic change
File Readingread_fileRead a file from disk and optionally return a specific line range — useful after search when you need full file context
PDF Readingread_pdf_textExtract clean, structured text page-by-page or across targeted page ranges from any PDF document
PDF Readingget_pdf_infoInspect PDF metadata, total page count, per-page dimensions, author, subject, creation date, and structure
PDF Visualsrender_pdf_page_as_imageRasterize any PDF page into a high-resolution PNG image at custom DPI — ideal for inspecting charts, diagrams, tables, and scanned documents
PDF Visualsextract_pdf_imagesExtract embedded raster images from PDF pages and save to disk with pixel coordinates
PDF Structureget_pdf_bookmarksExtract the hierarchical table of contents, bookmarks, and document outline with target page links
PDF Formsget_pdf_form_fieldsRead interactive AcroForm form fields (text boxes, checkboxes, radio buttons, dropdowns) and their values
PDF Assetsextract_pdf_attachmentsExtract embedded file attachments from PDF documents and save them to disk
PDF Linksget_pdf_hyperlinksExtract all clickable web URLs, internal page jumps, and external document links with bounding boxes

Instead of reading full files (~2500 tokens each), the agent gets back only the matching lines (~110 tokens) — saving up to 98% of context window per query. For files that must be read in full, use compress_code first to strip whitespace overhead and save an additional 10–20% of tokens. For PDF documentation, technical manuals, and specifications, dedicated tools extract targeted text, images, and tables without overwhelming the model context window.


Step 1 — Installation

Option A: Install via .NET CLI (NuGet Tool)

If you have the .NET SDK installed (recommended for .NET developers):

dotnet tool install -g PuneethDC.DotNetSearch

Once installed, the command dotnetsearch is available globally from any terminal.

To update to the latest version in the future:

dotnet tool update -g PuneethDC.DotNetSearch
Option B: Download Standalone Executable (No .NET required)

Go to the latest release and download the self-contained executable for your platform:

PlatformFile to download
Windows x64DotNetSearch-win-x64.exe
Linux x64DotNetSearch-linux-x64
macOS ARM64DotNetSearch-osx-arm64

No .NET installation required. The runtime is bundled inside the executable.

Save it somewhere permanent, e.g.:

  • Windows: C:\Tools\DotNetSearch.exe
  • Linux/macOS: /usr/local/bin/DotNetSearch

On Linux/macOS, make it executable:

chmod +x /usr/local/bin/DotNetSearch

Step 2 — Add to your MCP config

Open (or create) your global MCP config file:

ClientConfig file location
Visual Studio%USERPROFILE%\.mcp.json
VS Code + Copilot%USERPROFILE%\.mcp.json
Claude Desktop%APPDATA%\Claude\claude_desktop_config.json
Cursor%USERPROFILE%\.cursor\mcp.json
If installed via NuGet (.NET Tool):

Works identically across Windows, Linux, and macOS without path differences:

{

"servers": { "DotNetSearch": { "type": "stdio", "command": "dotnetsearch" } } }

If using Standalone Executable:
Windows:
{

"servers": { "DotNetSearch": { "type": "stdio", "command": "C:\\Tools\\DotNetSearch.exe" } } }

Linux / macOS:
{

"servers": { "DotNetSearch": { "type": "stdio", "command": "/usr/local/bin/DotNetSearch" } } }

Alternative: Run on-demand with dnx (Zero-Install):
{

"servers": { "DotNetSearch": { "type": "stdio", "command": "dnx", "args": ["PuneethDC.DotNetSearch"] } } }

If you already have other servers in the file, just add the "DotNetSearch" block inside the existing "servers" object.


Step 3 — Verify it is active

Visual Studio / VS Code:

  1. Open GitHub Copilot Chat
  2. Switch to Agent Mode
  3. Click the wrench / Select Tools icon
  4. Confirm the DotNetSearch tools appear in the list and are enabled:
  • Code & Navigation: search, search_related, decompile_type, compress_code, read_file
  • PDF Document Inspection: read_pdf_text, get_pdf_info, render_pdf_page_as_image, extract_pdf_images, get_pdf_bookmarks, get_pdf_form_fields, extract_pdf_attachments, get_pdf_hyperlinks

Step 4 — Update your Copilot instructions

To make Copilot automatically prefer DotNetSearch over built-in file reading, add the instructions below to your Copilot instructions file. There are two places you can put this — repo-level (affects only that repo) or global (affects all repos).


Option A — Repo-level instructions (recommended)

File location:

<your-repo-root>\.github\copilot-instructions.md

This file is read by GitHub Copilot for every conversation in that repository. It is the recommended place if you want DotNetSearch to be preferred only for a specific project.

How to find or create it:

  • Navigate to your repository root folder
  • Look for a .github subfolder — if it doesn't exist, create it
  • Inside .github, look for copilot-instructions.md — if it doesn't exist, create the file

Option B — Global instructions (applies to all repos)

File location:

ClientGlobal instructions file
Visual Studio%APPDATA%\Microsoft\VisualStudio\Copilot\copilot-instructions.md
VS Code + Copilot%USERPROFILE%\.github\copilot-instructions.md

How to find or create it:

  • Open the path above in File Explorer (paste into the address bar)
  • If the folder doesn't exist, create it
  • If copilot-instructions.md doesn't exist in the folder, create the file

Note: If you add instructions to both files, Copilot merges them — both will be active at the same time.


Instructions to add

Paste the following into whichever file you chose above:

## Search Preference

When searching for code, symbols, or text in this repository, always prefer the DotNetSearch MCP tool (search and search_related) over reading full files or using built-in workspace search. DotNetSearch returns only matching lines and is significantly more token-efficient (~98% fewer tokens per query). Do not call DotNetSearch tools in parallel — run one search at a time.

PDF Document Reading

When reading, analyzing, or searching PDF documents:

  • Always prefer read_pdf_text and get_pdf_info over raw file operations.
  • First call get_pdf_info to inspect total pages and document metadata.
  • Call read_pdf_text with specific page ranges (startPage, endPage) to avoid token overflow.
  • If the PDF contains visual charts, flowcharts, architectural diagrams, or scanned pages, use render_pdf_page_as_image to rasterize the page.
  • For interactive PDF forms, use get_pdf_form_fields to extract user inputs.

NuGet Type Inspection

When the user asks about a third-party or NuGet type and the source code is not available in the workspace, use the DotNetSearch MCP tool decompile_type to decompile the type from the project's referenced assemblies. Pass the short or fully qualified type name and the absolute path to the .csproj file. The project must have been built at least once before calling this tool.

Code Compression

When reading source files to minimize context window usage, use the DotNetSearch MCP tool compress_code — BUT ONLY for the following fully-safe languages where indentation is cosmetic and braces/keywords define scope:

C#, Java, JavaScript, TypeScript, C, C++, Kotlin, Swift, Rust, Scala, PHP, Ruby, CSS, SCSS, Less, JSON, XML

NEVER call compress_code on any other language. In particular, NEVER use it on Python, YAML, CoffeeScript, Pug/Jade, HAML, or Makefile — these are indentation-sensitive and compression WILL silently corrupt the file structure.

Before calling compress_code, check the file extension:

  • Allowed: .cs .java .js .ts .jsx .tsx .kt .swift .rs .scala .php .rb .css .scss .less .json .xml .c .cpp .h
  • Blocked: .py .yaml .yml .coffee .pug .jade .haml (and Makefiles with no extension)

Pass the absolute file path. For JavaScript/TypeScript projects using 2-space indentation, set sourceIndentSize=2.


Step 5 — You're done

No special commands or workflow changes are needed. Just continue your normal coding tasks in Copilot Agent Mode — DotNetSearch will be used automatically whenever Copilot needs to search your codebase or inspect PDF documents.

Over time you will notice a reduction in token usage per conversation. This is because DotNetSearch returns only the matching lines (typically ~110 tokens) instead of full file contents (~2500 tokens), saving up to 98% of context window per search operation.


Tool reference

search

Searches a local directory for files whose content matches a keyword or natural-language query. Uses BM25 ranking with CamelCase and snake_case token expansion.

ParameterTypeDefaultDescription
querystringrequiredKeyword, identifier, or natural-language phrase
repostringrequiredAbsolute or relative path to the directory to search
top_kint5Max results to return (1–100)
context_linesint0Lines of context above/below each match (0–5)

search_related

Finds code chunks structurally similar to a specific location in a file. Use after search to explore related implementations, callers, or patterns.

ParameterTypeDefaultDescription
file_pathstringrequiredPath to the file as returned by a prior search result

| line | int | required | Line number (1-indexed) from a pr

只显示了开头部分;其余内容请在仓库中阅读