原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。评价和账户功能将在后续阶段推出。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

DotNetSearch

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

安装

概览

作者提供的说明(英文原文)

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

PopNx MCP 的三大支柱

这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。

它能帮你做什么

我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。

  • 连接方式: 在你的电脑上运行
  • 传输方式: stdio
  • 分类: 文档、表格与办公

安装

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

安装之前

  • 基础检查:1 项中通过 1 项
  • 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
  • 注册中心没有列出需要填写的密钥。

你用的是哪个应用?

在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。

打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json

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

在终端中运行这条命令

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

在 Cursor 中打开

或者自己复制设置

粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json

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

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

在 VS Code 中打开

或者自己复制设置

粘贴到项目中的 .vscode/mcp.json

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

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。

你的选择通过 Cookie 保存在这台设备上,无需账户。

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

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 puneethdc99 验证,该账户拥有此仓库

  • … 尚未检查

    仍在维护

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

  • … 尚未检查

    有许可证

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

  • – 不适用

    端点有响应

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

  • – 不适用

    使用 OAuth 登录

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

  • … 尚未检查

    工具描述中没有隐藏指令

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

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

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

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

常见问题

DotNetSearch 安全吗?

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

它需要哪些密钥或代码?

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

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

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

它还在维护吗?

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

哪些应用可以使用它?

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

有什么可以替代它?

同一分类中有:Agent-Native Calendar, Excel MCP Server, MCP Server for Excel

替代选择

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

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

Agent-Native Calendar

作者:BuilderIO

Agent-Native Google Calendar - manage events, sync, and public booking

在云端运行★ 7,620MIT2个月前更新
安装

Excel MCP Server

作者:haris-musa

Create and edit Excel files with AI: charts, PivotTables, formulas. No Excel needed.

在你的电脑上运行★ 4,276MIT6天前更新
安装

MCP Server for Excel

作者:sbroenne

Excel automation for AI - Sheets, Power Query, DAX, VBA, Tables, Ranges and more. Windows only.

在你的电脑上运行★ 847MIT3天前更新
安装

作者的 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

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

问 PopNx