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.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

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.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 68a1570abc00 · 采集于 2026-11-13 13:29:16 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

🧠 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.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

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