MCP Web API Example with .NET

MCP Web API Example with .NET

mcp.example•bycoredevsushant

A .NET-based MCP server that bridges Claude to an ASP.NET Core Web API exposing weather forecast data over stdio.

License: Not specified•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Provides an MCP.Server that connects Claude to backend logic using the Model Context Protocol over stdio.
  • •Communicates with a companion ASP.NET Core Web API exposing weather forecast data via HTTP under the hood.
  • •Lets Claude retrieve five randomized weather forecasts on request.
  • •Is described as a starter template for building Claude-interactive backends.

BEST FOR

  • •Developers wanting to see how to connect an MCP server to Claude Desktop using .NET.
  • •Teams looking for a starting template to build their own Claude-interactive backends on .NET.

ABOUT MCP.EXAMPLE

MCP Web API Example with .NET is cataloged as an MCP server attributed to coredevsushant. A .NET-based MCP server that bridges Claude to an ASP.NET Core Web API exposing weather forecast data over stdio. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for MCP Web API Example with .NET are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

How does the MCP server communicate with the Web API?

The MCP.Server communicates with the MCP.WebApi via HTTP under the hood.

What can Claude do with this weather server?

Claude can call the API via the MCP server to return five randomized forecasts, and the examples also show creating a new weather entry for a date.

Upstream README

View this exact version on GitHub

README.md · 68a1570abc00 · Fetched 2026-11-13 13:29:16 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

🧠 MCP Web API Example with .NET

This repository contains a simple .NET-based MCP Server and Web API integration that demonstrates how to build and connect an API to Claude (Anthropic) using Model Context Protocol (MCP) via stdio.


📂 Projects

  • MCP.Server - The bridge server that connects Claude to your backend logic using MCP.
  • MCP.WebApi - A simple ASP.NET Core Web API exposing weather forecast data.

✅ Requirements


🚀 How to Run This with Claude Desktop

1. Clone the Repo and run MCP.WebApi

  1. Open MCP.sln
  2. Make sure web api is running on https://localhost:44394/
  3. Build MCP.Server

2. Configure Claude

  1. Open Claude Desktop App.
  2. Go to File → Settings → Developer → Edit Config → claude_desktop_config.json.
  3. Replace it with the following:
{
    "inputs": [],
    "mcpServers": {
        "weather": {
            "type": "stdio",
            "command": "dotnet",
            "args": [
                "run",
                "--project",
                "D:/MCP.example/MCP.Server",
                "--no-build"
            ]
        }
    }
}

✅ Make sure to update the --project path above to point to your local path for MCP.Server.


3. Restart Claude Desktop

Once the config is updated, restart Claude Desktop. It should automatically pick up the weather MCP server.


4. Test it!

Ask Claude:

Get weather forecast

Claude will call your API using the MCP Server and return 5 randomized forecasts.

Then try:

create new weather entry for 1 May 2025 as temperature will be 30 and it will be very hot

Then try:

what will be temparature for 1 may

📌 Notes

  • The MCP.Server communicates with the MCP.WebApi via HTTP under the hood.
  • You can extend the API to support POST, PUT, etc., and Claude will pick up those too (if described in your OpenAPI spec).
  • This is a great starter template to build your own Claude-interactive backends.

🧠 Inspired by

Anthropic’s Model Context Protocol + .NET 💡
Built by Sushant


Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for MCP Web API Example with .NET from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/mcp.example)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related developer tools MCP Servers

Alternative and complementary servers in the same category

View all in developer tools →
Postbye
postbye-mcp•postbye-team

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools
Singapore Proxy MCP
singapore-proxy-mcp•Xavierfok

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

0
Developer Tools

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools