プロトタイプ · プレビュー版:公式レジストリのすべてのサーバーを掲載し、30分ごとに同期しています。レビューとアカウント機能は今後のステップで始まります。
PopNx MCPAIを使う人のためのMCPサーバー · やさしい言葉で解説

C# Class Analyzer MCP

作者:undy-mosqバージョン 1.0.4i★ –iパソコンで動く
レジストリ名io.github.undy-mosq/CSharpAnalyserMcp

インストール

概要

作者による説明(英語の原文)

A read-only MCP server that lets an AI assistant browse any C# solution through Roslyn.

PopNx MCPの3つの柱

この3つを1つのスコアにまとめることはしません。意見、測定、人気はそれぞれ別のものだからです。

できること

このサーバーのやさしい解説はまだ書いていません。以下はレジストリから読み取った事実です。

  • 接続方法: パソコンで動く
  • トランスポート: stdio
  • カテゴリ: その他

インストール

使っているAIアプリを選んで、設定をコピーしてください。

インストールの前に

  • 基本チェック:1項目中1項目に合格
  • あなたのパソコンで、あなたのユーザーと同じ権限(ファイル、ネットワーク、アプリ)で動きます。
  • レジストリには、入力が必要なキーは載っていません。

どのアプリを使っていますか?

上でアプリを選んでください。選んだアプリを覚えておくので、次からはボタンに「…にインストール」と表示されます。

Claude Desktop → Settings → Developer → Edit Config を開き、claude_desktop_config.json にこれを貼り付けます

{
  "mcpServers": {
    "csharpanalysermcp": {
      "command": "dnx",
      "args": [
        "CSharpAnalyserMcp",
        "--yes",
        "--workspace",
        "your-value"
      ]
    }
  }
}

ターミナルでこれを実行します

claude mcp add csharpanalysermcp -- dnx CSharpAnalyserMcp --yes --workspace your-value

このサーバーは起動コマンドに値を入れる必要があるので、設定をコピーして入力してください。

または、設定を自分でコピーする

プロジェクトの .cursor/mcp.json、または ~/.cursor/mcp.json に貼り付けます

{
  "mcpServers": {
    "csharpanalysermcp": {
      "command": "dnx",
      "args": [
        "CSharpAnalyserMcp",
        "--yes",
        "--workspace",
        "your-value"
      ]
    }
  }
}

ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。

このサーバーは起動コマンドに値を入れる必要があるので、設定をコピーして入力してください。

または、設定を自分でコピーする

プロジェクトの .vscode/mcp.json に貼り付けます

{
  "servers": {
    "csharpanalysermcp": {
      "type": "stdio",
      "command": "dnx",
      "args": [
        "CSharpAnalyserMcp",
        "--yes",
        "--workspace",
        "your-value"
      ]
    }
  }
}

ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。

これはパソコンで動くサーバーですが、ChatGPTがつなげるのはインターネット上のサーバーだけです。ほかのアプリを選んでください。

選んだアプリは、この端末のCookieに保存されます。アカウントは不要です。

この設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。

できること

パソコンで動くサーバーです。インストールすると、ツール一覧がAIアプリに表示されます。

基本チェックi

誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月6日にチェック

  • ✓ 合格

    作者とリポジトリが一致

    レジストリ名は、リポジトリを所有するGitHubアカウント undy-mosq で確認済みです

  • … 未チェック

    今もメンテナンスされている

    このリポジトリはまだGitHubから読み取っていません

  • … 未チェック

    ライセンスがある

    このリポジトリはまだGitHubから読み取っていません

  • – 対象外

    エンドポイントが応答する

    これはパソコンで動くため、インターネット上のエンドポイントはありません

  • – 対象外

    OAuthでサインイン

    パソコンで動き、代わりにローカルの設定を使います

  • … 未チェック

    ツールの説明に隠れた指示がない

    パソコンで動くサーバーです。ツール一覧を読み取れるのは、インターネット上のエンドポイントがある場合だけです

その他のほかのサーバーとの比較i

  • このカテゴリのほかの32520件のうち0%よりスターが多い
  • このカテゴリのほかの32520件のうち72%より最近レジストリに公開
  • 基本チェックの結果が、このカテゴリのほかの32520件のうち100%と同じかそれ以上

レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。

よくある質問

C# Class Analyzer MCPは安全ですか?

当てはまる基本チェック1項目のうち1項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。

どんなキーやコードが必要ですか?

レジストリには必須のキーは載っていません。ただし、最初に使うときにサインインを求めるサーバーもあります。

パソコンで動きますか、それともクラウドですか?

あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。

今もメンテナンスされていますか?

GitHubリポジトリの最終更新は–、最新バージョン(1.0.4)がレジストリに届いたのは14 日前です。

どのアプリで使えますか?

Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンに.NETも必要です。

代わりに使えるものは?

同じカテゴリには:Spec Driven Development, Remote Desktop Commander, Toggl 2.0

代わりの候補

同じカテゴリで、ほかの作者が作ったサーバー。スターの多い順。

カードの見方:★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i

Remote Desktop Commander

作者:desktop-commander

Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.

クラウドで動く★ 211昨日更新
インストール

Toggl 2.0

作者:toggl

Toggl 2.0 MCP server for tasks, projects, time entries, and workspace operations.

パソコンで動く今日更新
インストール

作者のREADME

READMEを開く

作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。

English | 简体中文

CSharpAnalyserMcp

A read-only Model Context Protocol (MCP) server that lets an AI assistant browse any C# solution through Roslyn.

The server loads a solution with MSBuildWorkspace into a cached Roslyn snapshot and then answers structured queries about it: where each type is declared, its XML documentation, and a method's signature, documentation, source location and body. An agent can therefore pull in the exact slice of source it needs instead of reading whole files into its context window.

  • Transport: stdio (StdioServerTransport), protocol traffic on stdout only; all logs go to stderr.
  • Solution path is passed on the command line (--workspace ); the solution is loaded before the MCP handshake, so a bad path fails fast with a message on stderr and a non-zero exit code.
  • Every tool returns MCP text content and never structuredContent: listing / hierarchy / search tools return one text block per entry (a string list from the client's point of view), while detail tools emit path / desc / namespace / signature / body blocks separated by a line containing ---.
  • Distribution: published to NuGet as the .NET tool CSharpAnalyserMcp (command csharp-analyser-mcp) and listed in the official MCP Registry as io.github.undy-mosq/CSharpAnalyserMcp.

Installation

NuGet .NET tool (recommended)
dotnet tool install --global CSharpAnalyserMcp

csharp-analyser-mcp --workspace D:\MyProject\MySolution.sln

upgrade / remove

dotnet tool update --global CSharpAnalyserMcp dotnet tool uninstall --global CSharpAnalyserMcp

Install it globally: a --local install only writes a manifest entry, so csharp-analyser-mcp never lands on PATH and MCP clients cannot start it.

On demand with dnx (nothing to install, .NET SDK 10+)
# "--" separates dnx options from the arguments forwarded to the server

dnx CSharpAnalyserMcp --yes -- --workspace D:\MyProject\MySolution.sln

From source
git clone https://github.com/undy-mosq/CSharpAnalyserMcp

dotnet build CSharpAnalyserMcp\CSharpAnalyserMcp.csproj dotnet run --project CSharpAnalyserMcp -- --workspace D:\MyProject\MySolution.sln

Requirements

PurposeRequirement
Run the published tool (dotnet tool install --global).NET SDK 8.0 or newer on PATH (the package targets net8.0)
Run it on demand with dnx.NET SDK 10.0 or newer — dnx ships with the SDK
Build / run from source.NET SDK 8.0 or newer (the project targets net8.0)
Load the analyzed solutionAn MSBuild toolchain that can open it — Visual Studio 2022 or VS Build Tools (Microsoft.Build.Locator registers the newest installed instance), or the .NET SDK itself for SDK-style projects

Client configuration

The server is started with a single argument, --workspace, pointing at the solution file.

Installed .NET tool

The global tool shim lives in %USERPROFILE%\.dotnet\tools. MCP clients spawn the process themselves and only see the PATH they inherited, so point the configuration at the shim by absolute path (expand %USERPROFILE%, e.g. C:\Users\you\.dotnet\tools\csharp-analyser-mcp.exe):

Claude Desktop (claude_desktop_config.json):

{

"mcpServers": { "csharp-analyser": { "command": "C:\\Users\\you\\.dotnet\\tools\\csharp-analyser-mcp.exe", "args": ["--workspace", "D:\\MyProject\\MySolution.sln"] } } }

VS Code (.vscode/mcp.json):

{

"servers": { "csharp-analyser": { "type": "stdio", "command": "C:\\Users\\you\\.dotnet\\tools\\csharp-analyser-mcp.exe", "args": ["--workspace", "D:\\MyProject\\MySolution.sln"] } } }

The bare command name ("command": "csharp-analyser-mcp") works only when that directory is already on the client's PATH; a client started before the tool was installed keeps the old environment, so restart it after changing PATH.

On demand with dnx (nothing installed)
{

"servers": { "csharp-analyser": { "type": "stdio", "command": "dnx", "args": ["CSharpAnalyserMcp", "--yes", "--", "--workspace", "D:\\MyProject\\MySolution.sln"] } } }

Append @ to the package id to pin a version. The MCP Server tab of the NuGet package page offers the same JSON for copying. dnx is a .cmd shim; if the client cannot spawn it, use the equivalent dotnet form instead: "command": "dotnet" with "args": ["tool", "exec", "CSharpAnalyserMcp", "--yes", "--", "--workspace", "D:\\MyProject\\MySolution.sln"].

Published executable

VS Code (.vscode/mcp.json):

{

"servers": { "csharp-analyser": { "type": "stdio", "command": "C:\\Tools\\csharp-analyser\\CSharpAnalyserMcp.exe", "args": ["--workspace", "D:\\MyProject\\MySolution.sln"] } } }

Running the project from source
{

"servers": { "csharp-analyser": { "type": "stdio", "command": "dotnet", "args": [ "run", "--project", "D:\\MyProject\\CSharpAnalyserMcp\\CSharpAnalyserMcp\\CSharpAnalyserMcp.csproj", "--", "--workspace", "D:\\MyProject\\MySolution.sln" ] } } }

Press F5 in VS Code to debug the server itself; .vscode/launch.json already passes a --workspace argument — point it at your own solution.

Tools

ToolMCP annotationsPurpose
list_classes_in_folderread-onlyList type declarations in a folder and its subfolders (one text per type)
list_classes_in_namespaceread-onlyList type declarations in a namespace (sub-namespaces optional; one text per type)
get_class_documentationread-onlyReturn the XML documentation and member signatures of a type located by its declaration line
get_methodread-onlyReturn a method's signature, XML docs, location and body, located by its declaration line plus its declaring type's declaration line
find_inheritanceread-onlyList the derived-type tree of a type (first entry: the type itself)
find_method_overridesread-onlyList the overrides / implementations of a method (first entry: the method itself)
search_regexread-onlySearch a directory / file line by line with a regular expression (default: *.cs only); one text per match
reload_solutionidempotentRebuild the Roslyn snapshot after source files changed
set_resolve_base_pathidempotentChange the directory used to resolve relative paths
list_classes_in_folder
{ "folderPath": "src/Services", "kinds": ["class", "interface"] }
ParameterTypeDefaultDescription
folderPathstring, required—Absolute path, or a path relative to the resolve base directory (default: the solution's directory).
kindsstring[]["class"]Type kinds to include (see Type kinds and kinds).

Files under bin/obj are skipped. Returns a string list, one text content per type, formatted as {relativePath} L{start}-{end} {namespace}: {signature}; the namespace segment is omitted for the global namespace, and a partial type reports the location of its first declaration plus a trailing ...(partial xN).

list_classes_in_namespace
{ "namespaceName": "MyApp.Services", "includeSubNamespaces": true, "kinds": ["all"] }
ParameterTypeDefaultDescription
namespaceNamestringglobal namespaceNamespace name, e.g. MyApp.Services. Empty, global, global namespace or all mean the global namespace.
includeSubNamespacesbooltrueAlso include types declared in child namespaces.
kindsstring[]["class"]Type kinds to include.
get_class_documentation
{ "typeDeclaration": "public static class ItemConfig", "maxXmlChars": 2000 }
ParameterTypeDefaultDescription
typeDeclarationstring, required—Declaration line of the type (the signature segment printed by the listing tools), e.g. public static class ItemConfig. Whitespace is stripped, then it must match the canonical signature or the first source line of the declaration exactly.
namespaceNamestringany namespaceNamespace of the type; empty or global means the global namespace.
maxXmlCharsint2000Maximum characters of the raw XML documentation per type (the desc field); 0 = no limit.

On a match the result is a text block: path / desc / namespace (the global namespace prints as global) / signature / body (member signatures, one per line); multiple matches are separated by a line containing ---. A miss prints (no match) followed by candidates : and candidate declaration lines.

get_method
{ "methodDeclaration": "public static void SetEffect(RoleAttributes owner, int stack)", "typeDeclaration": "public class RoleAttributes", "namespaceName": "DuelModel" }
ParameterTypeDefaultDescription
methodDeclarationstring, required—Declaration line of the method, e.g. public static string TextName(this ItemInfo.ItemType itemType). The method name and its parameter types are parsed from this text.
typeDeclarationstring, required—Declaration line of the declaring class / interface / struct, e.g. public static class ItemConfig.
namespaceNamestringany namespaceNamespace of the declaring type; empty or global means the global namespace.
maxBodyCharsint8000Maximum characters of the method body; 0 = no limit.

Matching rules:

  • Both declaration lines must match the canonical signature or the first source line of the declaration exactly after whitespace is stripped (no substring matching).
  • Only members declared by the type itself are searched (ordinary methods; no inherited members, constructors or properties). Explicit interface implementations (IFoo.Bar) are matched too.
  • Parameter types parsed from the declaration line are compared case-insensitively and whitespace-insensitively, without namespace prefixes; C# aliases are mapped to their metadata names (int → Int32, string → String, …). The comparison is relaxed step by step: exact → ignoring generic arguments → allowing a prefix of the parameter list.
  • When nothing matches, (no match) is printed followed by candidates : and candidate declaration lines (same-named methods of that type first, otherwise every method of that type).

The result is a text block per overload: path / desc (raw XML docs, 2000-char cap) / namespace / class / signature / body (source with the outermost braces and the common indentation removed); overloads are separated by a line containing ---.

find_inheritance
{ "typeDeclaration": "public abstract class BuffEntity", "namespaceName": "Duel" }
ParameterTypeDefaultDescription
typeDeclarationstring, required—Declaration line of the class / interface / struct / record.
namespaceNamestringany namespaceNamespace of the type; empty or global means the global namespace.

The first entry is the queried type itself (no indentation, no prefix); every derived type follows as its own text content, indented by one tab and prefixed with - per hierarchy level. A class root reports the classes / records deriving from it; an interface root reports sub-interfaces plus the classes / structs / records implementing it directly. Generic base types are matched by OriginalDefinition (Base and Base count as the same base). Ea

冒頭だけを表示しています。続きはリポジトリで読めます

PopNxに聞く