MCP client-server example with a .NET echo server

MCP client-server example with a .NET echo server

mcpclientserverexample•bydks50217

A sample Model Context Protocol project pairing a custom client with an MCP server that offers built-in echo tools over standard input/output.

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

WHAT IT DOES

  • •Provides an MCP server built with ModelContextProtocol.Server that communicates over standard input/output.
  • •Includes an Echo tool that returns the message entered by the user.
  • •Includes a ReverseEcho tool that returns the reversed version of the user's input message.
  • •Ships with a custom client using ModelContextProtocol.Client that communicates with the server and can list tools and invoke tool functions.

BEST FOR

  • •Developers learning how an MCP client and server communicate with each other.
  • •Testing an MCP server without relying on the Claude client application.
  • •Experimenting with basic echo-style MCP tools in a .NET project.

ABOUT MCPCLIENTSERVEREXAMPLE

MCP client-server example with a .NET echo server is cataloged as an MCP server attributed to dks50217. A sample Model Context Protocol project pairing a custom client with an MCP server that offers built-in echo tools over standard input/output. 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 client-server example with a .NET echo server 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

What built-in tools does the server provide?

It provides an Echo tool that returns the user's message and a ReverseEcho tool that returns the reversed version of the message.

How does the MCP server communicate with clients?

The server supports standard input/output communication.

Can the client connect without the Claude client app?

Yes; the example uses a custom client built with ModelContextProtocol.Client rather than the Claude client app.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 48294a560045 · 采集于 2026-11-13 12:13:06 UTC

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

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

McpClientServerExample

McpClientServerExample 是一個基於 Model Context Protocol (MCP) 的範例專案,展示了如何實現客戶端與伺服器之間的通訊。此專案包含兩個主要部分:McpClient 和 McpServer,分別代表客戶端與伺服器。

用自製的Client,以不使用Claude Client App 為範例

功能

客戶端 (McpClient)

  • 使用 ModelContextProtocol.Client 與伺服器通訊。
  • 支援 OpenAI GPT 模型進行對話。
  • 提供工具列表並支援工具函數調用。

伺服器 (McpServer)

  • 使用 ModelContextProtocol.Server 提供 MCP 伺服器功能。
  • 支援標準輸入/輸出通訊。
  • 提供內建工具,例如:
    • Echo: 回傳用戶輸入的訊息。
    • ReverseEcho: 回傳用戶輸入訊息的反轉版本。

安裝與執行

需求

export OPENAI_API_KEY=your_api_key_here

執行

dotnet run --project client/McpClient.csproj

使用範例

sample

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 client-server example with a .NET echo server 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/mcpclientserverexample)

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