AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
MCP verified MIT Self-run

McpServerAspNetCore

mcp-marcominerva-mcpserveraspnetcore · by marcominerva

Minimal implementation of an MCP sample server featuring API Key authentication, CORS support, and example server-side tools for weather and time retrieval.

No reviews yet
0 installs
38 views
0.0% view→install

Install

$ agentstack add mcp-marcominerva-mcpserveraspnetcore

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/mcp-marcominerva-mcpserveraspnetcore)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
3mo ago

Declared compatibility

Claude CodeClaude DesktopCursorWindsurf

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of McpServerAspNetCore? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

MCP Server with ASP.NET Core

Minimal implementation of a Model Context Protocol (MCP) server based on ASP.NET Core 10. The project serves as an example to expose MCP tools to compatible clients, including authentication, automatic discovery, and API documentation.

Project purpose

Provide a simple, ready-to-use starting point to build an MCP server on ASP.NET Core, useful for integrating server-side tools into agents/assistants that speak MCP.

Exposed features

  • Framework: ASP.NET Core 10, minimal configuration ready for extension.
  • Security: access protected via API Key.
  • MCP Tool Discovery: automatic detection/exposure of the server's available MCP tools.
  • OpenAPI/Swagger UI: interface to explore and test the exposed endpoints.
  • CORS: enabled/configurable to allow access from secure external origins.
  • Example server-side tools:
  • Weather: retrieve weather conditions for a location.
  • Time: get current date and time (e.g., for a specific time zone).

These features make it possible to connect an MCP client and automatically discover/consume the tools published by the server, with support for security, documentation, and interoperability.

Configuration

OpenWeatherMap API Key

The weather tools use the OpenWeatherMap API to retrieve weather data. To use these tools, you need to obtain a free API key:

  1. Go to OpenWeatherMap and create a free account
  2. Navigate to your API keys page
  3. Generate a new API key (or copy your existing one)
  4. Add the API key to your configuration file
Update appsettings.json

Open src/McpServerAspNetCore/appsettings.json and update the OpenWeatherMapAppId value:

{
    "AppSettings": {
        "OpenWeatherMapBaseUrl": "https://api.openweathermap.org/data/2.5/",
        "OpenWeatherMapAppId": "YOUR_API_KEY_HERE"
    }
}

Azure OpenAI Configuration (for Client Apps)

The sample client applications (McpClientConsoleApp.ExtensionsAI and McpClientConsoleApp.Agents) use Azure OpenAI to demonstrate how to integrate MCP tools with AI agents. To run these clients, you need to configure your Azure OpenAI credentials:

  1. Create an Azure OpenAI resource in the Azure Portal
  2. Deploy a GPT model (e.g., GPT-4) from the Azure OpenAI Studio
  3. Get your endpoint URL and API key from the Azure Portal (under "Keys and Endpoint")
  4. Update the Constants.cs file in each client project
Update Constants.cs

Open src/McpClientConsoleApp.ExtensionsAI/Constants.cs (or src/McpClientConsoleApp.Agents/Constants.cs) and update the values:

public static class Constants
{
    public const string Endpoint = "https://YOUR_RESOURCE_NAME.openai.azure.com/";
    public const string DeploymentName = "YOUR_DEPLOYMENT_NAME";
    public const string ApiKey = "YOUR_AZURE_OPENAI_API_KEY";
}

Note: For production applications, consider using Azure Key Vault or environment variables to store these sensitive credentials securely instead of hardcoding them.

Source & license

This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.