McpClientServerExample
@dks50217
About McpClientServerExample
A simple .NET implementation of an MCP (Model Context Protocol) Client and Server example. This project demonstrates how to create and interact with an MCP server using custom tools, natural language prompts, and standard I/O transport.
Config
No standard config provided
This server doesn't expose a parseable MCP config block in its README. See the repository for install instructions.
RepositoryTools
No tools detected
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
What is McpClientServerExample?
McpClientServerExample is a sample project that demonstrates client-server communication using the Model Context Protocol (MCP). It includes a custom McpClient and an McpServer, built without relying on the Claude Client App.
How to use McpClientServerExample?
Clone the repository and ensure you have .NET 8.0 SDK and an OpenAI API key (if using GPT models). Set the OPENAI_API_KEY environment variable, then run the client with dotnet run --project client/McpClient.csproj.
Key features of McpClientServerExample
- Client uses
ModelContextProtocol.Clientto communicate with the server. - Supports OpenAI GPT models for conversation and tool calling.
- Server uses
ModelContextProtocol.Serverand communicates via standard input/output. - Provides built-in tools:
Echo(returns user input) andReverseEcho(returns reversed input).
Use cases of McpClientServerExample
- Learning how to build a custom MCP client without a dedicated chat app.
- Testing MCP server capabilities such as tool listing and invocation.
- Prototyping an MCP-based assistant that combines GPT with local tools.
FAQ from McpClientServerExample
What are the system requirements?
.NET 8.0 SDK and, optionally, an OpenAI API key for GPT model usage.
How do I set up the OpenAI API key?
Export it as an environment variable: export OPENAI_API_KEY=your_api_key_here.
How do I run the client?
Run dotnet run --project client/McpClient.csproj in the project root.
What tools does the server provide?
The server provides Echo (returns the input as-is) and ReverseEcho (returns the reversed input).
Is this project intended for use with the Claude Client App?
No, it is designed as an example of using a custom client instead of the Claude Client App.
Frequently asked questions
What are the system requirements?
.NET 8.0 SDK and, optionally, an OpenAI API key for GPT model usage.
How do I set up the OpenAI API key?
Export it as an environment variable: `export OPENAI_API_KEY=your_api_key_here`.
How do I run the client?
Run `dotnet run --project client/McpClient.csproj` in the project root.
What tools does the server provide?
The server provides `Echo` (returns the input as-is) and `ReverseEcho` (returns the reversed input).
Is this project intended for use with the Claude Client App?
No, it is designed as an example of using a custom client instead of the Claude Client App.
Basic information
More Other MCP servers
Blender
ahujasidOpen-source MCP to use Blender with any LLM
MCP Go 🚀
mark3labsA Go implementation of the Model Context Protocol (MCP), enabling seamless integration between LLM applications and external data sources and tools.

Figs, Relationship Expert
Figs O'Sullivan, LMFTCouples therapist Figs O'Sullivan (LMFT, 17 years, endorsed by Sue Johnson, creator of EFT) inside your AI. Ask relationship questions answered from his clinical writing, name the pattern in a fight, get a three-step rep
Activepieces
activepiecesAI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
XcodeBuildMCP
cameroncookeA Model Context Protocol (MCP) server and CLI that provides tools for agent use when working on iOS and macOS projects.
Comments