Skip to content
MCP server

DotNetSearch

Token-saving code search, NuGet decompilation and deep PDF reading for AI agents

Runs locally

DotNetSearch is an MCP server for developer tools. It runs locally on your machine and is started by your AI client.

Platforms
Windows, Linux, macOS
Runs
Locally
Version
1.0.3
Listing updated

Similar MCP servers

Install

Add with the CLI

Run in a terminal

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

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

Or share it with your project

Add to .mcp.json

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

Claude Code setup guide

Add to claude_desktop_config.json

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

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

Claude Desktop setup guide

Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

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

Use .cursor/mcp.json in a project to share it with the project.

Cursor setup guide

Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to ~/.copilot/mcp-config.json

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

Or put the same entry in .mcp.json at your workspace root to share it.

VS Code setup guide

Add with the CLI

Run in a terminal

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

Or add to config.toml

Add to ~/.codex/config.toml

[mcp_servers.dotnetsearch]
command = "dnx"
args = ["PuneethDC.DotNetSearch", "--yes"]

Codex setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "dotnetsearch": {
      "command": "dnx",
      "args": [
        "PuneethDC.DotNetSearch",
        "--yes"
      ]
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.json

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

    Or run: gemini mcp add -s user dotnetsearch dnx -- PuneethDC.DotNetSearch --yes

    Antigravity

    Add to ~/.gemini/config/mcp_config.json

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

    Use .agents/mcp_config.json to add it to one workspace only.

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.json

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

    On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.json

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

    Open it from the MCP Servers icon → Configure → Configure MCP Servers.

    Cline setup guide

  • Zed

    Add to Zed settings.json

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

    Open it with zed: open settings file. Merge context_servers into the settings you already have.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

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

    Junie

    Add to ~/.junie/mcp/mcp.json

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

    Use .junie/mcp/mcp.json to share it with a project.

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.json

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

    Use .kiro/settings/mcp.json to add it to one workspace only.

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

About DotNetSearch

DotNetSearch aims at one problem: agents burn context by reading whole files. Its search tool returns only matching lines, about 110 tokens against roughly 2,500 for a full file, and search_related finds structurally similar chunks to locate callers and implementations. compress_code shrinks C# indentation to one space per level and drops blank lines for a 10 to 20 percent saving.

Its .NET-specific tool is decompile_type, which returns the C# definition of a type from referenced NuGet assemblies without the source. A second group of eight tools reads PDFs: text by page range, metadata, page rendering to PNG, embedded images, bookmarks, form fields, attachments and hyperlinks.

Install as a .NET global tool, with dnx, or download a self-contained executable for Windows x64, Linux x64 or macOS ARM64. The README includes Copilot instructions that steer GitHub Copilot to prefer it.

Tools this server provides (13)

Taken from the project documentation; the running server may differ.

From the tool list in its README, going by the names, 8 of 13 tools read data; 5 names don't say.

From the server's own tool labels and tool names; not verified by us.

searchName suggests: reads
Finds files and lines matching a keyword or query.
search_relatedName suggests: reads
Finds structurally similar code chunks.
decompile_type
Decompiles a .NET type from NuGet assemblies.
compress_code
Reduces C# indentation and blank lines.
read_fileName suggests: reads
Reads a file or line range.
read_pdf_textName suggests: reads
Extracts PDF text by page or range.
get_pdf_infoName suggests: reads
Returns PDF metadata and page info.
render_pdf_page_as_image
Renders a PDF page to PNG.
extract_pdf_images
Extracts embedded images.
get_pdf_bookmarksName suggests: reads
Extracts the outline.
get_pdf_form_fieldsName suggests: reads
Reads AcroForm fields.
extract_pdf_attachments
Extracts embedded attachments.
get_pdf_hyperlinksName suggests: reads
Extracts links with bounding boxes.

What it does

Matching-line search
Returns only matching lines, not whole files.
Related code search
Finds similar chunks to locate callers.
NuGet decompilation
Shows C# type definitions from package assemblies.
Code compression
Cuts indentation and blank lines.
PDF text and structure
Text, metadata, bookmarks and hyperlinks.
PDF visuals
Render pages and extract images.

Good for

  • Find usages in a large .NET solution cheaply
  • Read a library type without its source
  • Pull a section from a long spec PDF
  • Read the fields of an interactive PDF form

Pricing

Pricing unknown

Licence not published

DotNetSearch FAQ

Which clients does DotNetSearch work with?

Visual Studio, VS Code with Copilot, Claude Desktop and Cursor.

Do I need .NET installed?

Not if you use the standalone executable.

How much does search save?

The README says about 110 tokens versus 2,500 for a full file read.

How is DotNetSearch installed?

dotnet tool install -g PuneethDC.DotNetSearch, or dnx.

How do I add DotNetSearch to Claude Code?

Run this command in your terminal: claude mcp add dotnetsearch -- dnx PuneethDC.DotNetSearch --yes

What are the best alternatives to DotNetSearch?

The closest alternatives to DotNetSearch are REA, Context7, Chrome DevTools MCP, Codebase Memory and GitHub.

Where this comes from

  • Description: written from the project's README.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers