.NET Metadata
A Model Context Protocol (MCP) server that provides detailed type information from .NET projects for AI coding agents.
What is .NET Metadata?
.NET Metadata is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to model context protocol (mcp) server that provides detailed type information from .net projects for ai coding agents.
A Model Context Protocol (MCP) server that provides detailed type information from .NET projects for AI coding agents.
This server falls under the Developer Tools category on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- A Model Context Protocol (MCP) server that provides detailed
Use Cases
Maintainer
Works with
Installation
Manual Installation
npx dotnetmetadatamcpserverConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
How to Set Up and Use .NET Metadata
DotNetMetadataMcpServer is an MCP server that provides AI coding agents with deep type information from .NET projects — exposing namespaces, type definitions, methods, properties, fields, events, and NuGet package metadata from compiled assemblies or the NuGet cache. It supports three assembly resolution modes (BuildOutput, NuGetCache, and Auto) and can be run as a self-contained binary or as a Docker container mounted to your project directory. .NET developers use it to give AI assistants like Claude accurate, up-to-date type signatures without relying on training data, enabling precise code generation and cross-project type discovery.
Prerequisites
- .NET 9.0 SDK or later installed
- Your .NET project must be built (dotnet build) for BuildOutput mode, or packages restored for NuGetCache mode
- Docker (optional, for the containerized deployment)
- An MCP-compatible client such as Claude Desktop or Claude Code
Clone and build the server
Clone the repository and build a Release binary.
git clone https://github.com/V0v1kkk/DotNetMetadataMcpServer.git
cd DotNetMetadataMcpServer
dotnet build -c ReleasePublish a self-contained binary
Publish for your target runtime to get a single executable you can reference in your MCP config.
dotnet publish -c Release -r linux-x64 --self-contained false
# Output will be in: bin/Release/net9.0/linux-x64/publish/Alternative: use the Docker image
Pull the pre-built Docker image and run it with your project directory mounted as a volume.
docker pull vrogozhin/dotnet-types-explorer-mcp:latest
docker run --rm -i -v /path/to/your/dotnet/projects:/workspace \
vrogozhin/dotnet-types-explorer-mcp:latestBuild your .NET project
Ensure your target .NET project is built so the server can resolve assemblies from the build output.
cd /path/to/your/dotnet-project
dotnet build -c DebugConfigure Claude Desktop
Add the server to your claude_desktop_config.json, pointing to the published binary and specifying the home directory.
{
"mcpServers": {
"dotnet-metadata": {
"command": "/path/to/DotNetMetadataMcpServer/bin/Release/net9.0/linux-x64/publish/DotNetMetadataMcpServer",
"args": ["--homeEnvVariable", "/home/user"],
"timeout": 300
}
}
}.NET Metadata Examples
Client configuration
Claude Desktop configuration using the Docker image, mounting the project workspace.
{
"mcpServers": {
"dotnet-metadata": {
"command": "docker",
"args": [
"run", "--rm", "-i",
"-v", "/path/to/your/dotnet/projects:/workspace",
"vrogozhin/dotnet-types-explorer-mcp:latest"
],
"timeout": 300
}
}
}Prompts to try
Example prompts for .NET type discovery and code assistance.
- "List all namespaces in the MyCompany.Core assembly"
- "Show me all public methods on the UserRepository class in the MyApp.Data namespace"
- "Search NuGet for packages related to JWT authentication and show the latest versions"
- "What interfaces does the OrderService class implement in my solution?"Troubleshooting .NET Metadata
Server returns empty results or cannot find assemblies
Ensure your .NET project has been built with 'dotnet build' before querying. In BuildOutput mode the server reads from the build output directory — if the project has not been compiled, no assemblies are available. Switch to NuGetCache or Auto mode in appsettings.json if build output is not available.
Docker container exits immediately with volume mount errors
Check that the host path in the -v flag exists and uses absolute paths. On macOS, ensure Docker Desktop has permission to access the directory in Settings > Resources > File Sharing.
MCP client times out waiting for the server to respond
Set a higher timeout in your MCP config (e.g. 300 seconds). The first query on a large solution can take 10-30 seconds while the server resolves and indexes assemblies. Subsequent queries are faster due to in-process caching.
Frequently Asked Questions about .NET Metadata
What is .NET Metadata?
.NET Metadata is a Model Context Protocol (MCP) server that model context protocol (mcp) server that provides detailed type information from .net projects for ai coding agents. It connects AI assistants to external tools and data sources through a standardized interface.
How do I install .NET Metadata?
Follow the installation instructions on the .NET Metadata GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.
Which AI clients work with .NET Metadata?
.NET Metadata works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is .NET Metadata free to use?
Yes, .NET Metadata is open source and available under the Apache-2.0 license. You can use it freely in both personal and commercial projects.
.NET Metadata Alternatives — Similar Developer Tools Servers
Looking for alternatives to .NET Metadata? Here are other popular developer tools servers you can use with Claude, Cursor, and VS Code.
Ecc
★ 188.2kThe agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
Javaguide
★ 155.8kJava 面试 & 后端通用面试指南,覆盖计算机基础、数据库、分布式、高并发、系统设计与 AI 应用开发
Gemini CLI
★ 104.5kA secure MCP server that wraps the Google Gemini CLI, allowing clients to query Gemini models using local OAuth sessions without requiring an API key. It provides tools for model interaction and diagnostics with built-in protection against command in
Awesome MCP Servers
★ 87.3k⭐ Curated list of Model Context Protocol (MCP) servers - tools that extend Claude Desktop, Cursor, Windsurf, and other MCP clients with custom capabilities.
MCP Servers
★ 86.0kModel Context Protocol Servers
CC Switch
★ 77.5kA cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Gemini CLI & Hermes Agent. Only official website: ccswitch.io
Browse More Developer Tools MCP Servers
Explore all developer tools servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.
Set Up .NET Metadata in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
Ready to use .NET Metadata?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.