{
"mcpServers": {
"remote-mcp-servers-using-dotnet-sdk-resources": {
"command": "<see-readme>",
"args": []
}
}
}No install config available. Check the server's README for setup instructions.
Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
Is it safe?
No package registry to scan.
No authentication — any process on your machine can connect.
MIT. View license →
Is it maintained?
Last commit 25 days ago.
Will it work with my client?
Transport: stdio. Works with Claude Desktop, Cursor, Claude Code, and most MCP clients.
No automated test available for this server. Check the GitHub README for setup instructions.
No known vulnerabilities.
This server is missing a description. Tools and install config are also missing.If you've used it, help the community.
Add informationHave you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Persistent memory using a knowledge graph
Privacy-first. MCP is the protocol for tool access. We're the virtualization layer for context.
Pre-build reality check. Scans GitHub, HN, npm, PyPI, Product Hunt — returns 0-100 signal.
Monitor browser logs directly from Cursor and other MCP compatible IDEs.
MCP Security Weekly
Get CVE alerts and security updates for Remote MCP Servers Using Dotnet Sdk Resources and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
This repository contains a sample remote Model Context Protocol (MCP) server built with the .NET SDK and ModelContextProtocol.AspNetCore.
The server exposes:
/mcp/api/healthzThe project is an ASP.NET Core MCP server that can be used by MCP clients (including VS Code MCP client configuration in .vscode/mcp.json).
Source layout:
src/McpServer/McpServer: MCP host applicationsrc/McpServer/WeatherService: weather service used by the weather toolscripts: PowerShell scripts to list and call MCP tools/resourcespwsh or Windows PowerShell)10.0 (project targets net10.0)From the repository root:
dotnet restore .\src\McpServer\McpServer.slnx
dotnet run --project .\src\McpServer\McpServer\McpServer.csproj
Default server URL:
http://0.0.0.0:8081/mcpNotes:
FUNCTIONS_CUSTOMHANDLER_PORT (defaults to 8081).http://localhost:8081/api/healthzThis repository already includes .vscode/mcp.json:
{
"servers": {
"local-mcp-server": {
"url": "http://0.0.0.0:8081/mcp",
"type": "http"
}
}
}
If needed, update url to match your local port.
Defined in src/McpServer/McpServer/McpServerTools.cs:
Ping(message: string)
GetWeather(city: string)
Tool names shown by MCP clients can be normalized by the MCP library. Use tools/list (or the script below) to confirm exact callable names in your environment.
Defined in src/McpServer/McpServer/McpServerResources.cs:
ServerInfo
Status
Use resources/list (or the script below) to view exact resource URIs returned by the server.
Use this pattern from McpServerResources when adding a new resource.
[McpServerResourceType].[McpServerResource].[Description("...")] attribute so clients can show meaningful metadata..WithResources<McpServerResources>()).resources/list and resources/read.Example (new resource in McpServerResources.cs):
[McpServerResource]
[Description("Returns current process metrics")]
public string ProcessMetrics()
{
var data = new
{
Timestamp = DateTimeOffset.UtcNow,
WorkingSet = Environment.WorkingSet,
Memory = GC.GetTotalMemory(false),
ProcessorCount = Environment.ProcessorCount
};
return JsonSerializer.Serialize(data, new JsonSerializerOptions { WriteIndented = true });
}
After adding the method, test it:
# 1) Start server
dotnet run --project .\src\McpServer\McpServer\McpServer.csproj
# 2) List resources and find the URI generated for ProcessMetrics
.\scripts\list-mcp-server-resources.ps1
# 3) Read the resource (example URI pattern)
.\scripts\call-mcp-resources.ps1 -ResourceUri "resource://mcp/process_metrics"
How your current implementation works:
ServerInfo() provides static/dynamic host and runtime