MCP Directory

How to add .NET Types Explorer MCP Server to Cursor

Explore .NET assemblies, namespaces, types and NuGet packages via reflection so AI agents write accurate code. Paste the config into ~/.cursor/mcp.json and restart Cursor.

Last updated June 14, 2026 · 27 · stdio · no auth

Cursor config for .NET Types Explorer MCP Server

docker pull vrogozhin/dotnet-types-explorer-mcp:latest
{
  "mcpServers": {
    "net-types-explorer-mcp-server": {
      "command": "docker",
      "args": [
        "run",
        "--rm",
        "-i",
        "-v",
        "/path/to/your/dotnet/projects:/workspace",
        "vrogozhin/dotnet-types-explorer-mcp:latest"
      ]
    }
  }
}

Requires Docker to be installed and running.

Setup steps

  1. 1Open Cursor → Settings → MCP → Add new MCP server (or edit ~/.cursor/mcp.json directly).
  2. 2Paste the .NET Types Explorer MCP Server config below into the "mcpServers" object.
  3. 3Fill in placeholder secrets, then save.
  4. 4Cursor reloads MCP servers automatically — check Settings → MCP for a green status dot.
  5. 5Ask Cursor to use one of .NET Types Explorer MCP Server's tools to confirm it's connected.

Before you start

  • .NET 9.0 SDK or later (for native installation)
  • A .NET project to explore (built for project-specific types; restored for NuGetCache mode)
  • Docker (optional, for the containerized deployment)
  • An MCP-compatible client (e.g. Roo Code / Cline, Cursor, Claude Desktop)

What .NET Types Explorer MCP Server can do in Cursor

ReferencedAssembliesExplorer

Retrieves the assemblies referenced by a .NET project, with wildcard full-text filtering and pagination. Requires the project file absolute path.

NamespacesExplorer

Retrieves the namespaces contained in specified assemblies of a project, with wildcard filtering and pagination.

NamespaceTypes

Retrieves detailed type information (full name, implemented interfaces, constructors, methods, properties, fields, events) for types within specified namespaces, with wildcard filtering and pagination.

NuGetPackageSearch

Searches for NuGet packages on nuget.org (and configured feeds) by query, with optional prerelease inclusion, wildcard filtering and pagination.

NuGetPackageVersions

Retrieves version history and dependency information (per target framework) for a specific NuGet package, with optional prerelease inclusion, wildcard filtering and pagination.

Security

Reads .NET projects via MSBuild/reflection from the local filesystem; the Docker config mounts a host project directory into the container at /workspace, granting the server access to every project in that path. NuGet tools make outbound requests to nuget.org and any custom feeds configured in appsettings.json. No authentication is required.

.NET Types Explorer MCP Server + Cursor FAQ

Where is the Cursor config file?

Cursor reads MCP servers from ~/.cursor/mcp.json. Paste the .NET Types Explorer MCP Server config there under the "mcpServers" key and restart the client.

Is .NET Types Explorer MCP Server safe to use with Cursor?

Reads .NET projects via MSBuild/reflection from the local filesystem; the Docker config mounts a host project directory into the container at /workspace, granting the server access to every project in that path. NuGet tools make outbound requests to nuget.org and any custom feeds configured in appsettings.json. No authentication is required.

Does the project need to be built first?

It depends on the resolution mode. In the default BuildOutput mode the project must be built before scanning. In NuGetCache mode only `dotnet restore` is required to inspect third-party package APIs, though project-specific types are still only available after a build.

Does it follow references to other projects in a solution?

No. It only inspects the specified project and its NuGet dependencies. To analyze multiple projects you must scan each one separately.

Can it query private or custom NuGet feeds?

Yes. Configure additional sources under Tools.NuGetSources in appsettings.json; all enabled sources are queried in parallel with priority-based deduplication. nuget.org is added by default only when no sources are configured.

View repo Full .NET Types Explorer MCP Server page