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.

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

Upstream README

View this exact version on GitHub

README.md · 48294a560045 · Fetched 2026-11-13 12:13:06 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.

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.

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