MCP-DEMO
If you are the rightful owner of MCP-DEMO and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
A comprehensive demonstration of the Model Context Protocol (MCP) for .NET applications, showcasing how to create MCP clients and servers, and integrate them with OpenAI's LLM capabilities.
The Model Context Protocol (MCP) is an open protocol that standardizes how applications provide context to Large Language Models (LLMs). It enables secure integration between LLMs and various data sources and tools, allowing for a standardized way to extend LLM capabilities. This demo showcases an MCP server that exposes custom tools, an MCP client that can connect to the server, and integration with OpenAI to use these tools in conversations.
Features
- MCP Server: Exposes several function-based tools: Echo, Add, and GetDateTime.
- OpenAI Integration: Connects to the OpenAI API, maintains conversation context, extracts tool calls from AI responses, executes tools through the MCP server, and returns tool results to the user.
Tools
Echo
Returns a greeting with the input message.
Add
Adds two numerical values together.
GetDateTime
Returns the current date and time.