MyFirstMCP logo

MyFirstMCP

by iamgauravn

MyFirstMCP is a simple C# implementation of a Model Context Protocol (MCP) server using .NET 9. It demonstrates how to create an MCP server with basic functionality including monkey and selling services.

View on GitHub

Last updated: N/A

What is MyFirstMCP?

MyFirstMCP is a C# implementation of a Model Context Protocol (MCP) server built using .NET 9. It provides basic services such as fetching monkey data and managing selling records, accessible through MCP tools.

How to use MyFirstMCP?

To use MyFirstMCP, clone the repository, open the project in Visual Studio Code, restore NuGet packages, and run the project. Configure the server in your ./claude/claude_desktop_config.json file, updating the project path to match your local environment.

Key features of MyFirstMCP

  • MonkeyService: Fetches monkey data from an external API

  • SellingService: Manages selling records

  • MCP Tools: Provides command interfaces for the services

  • Uses .NET 9

Use cases of MyFirstMCP

  • Integrating with AI models that require context

  • Building conversational AI applications

  • Creating services that provide data to AI agents

  • Demonstrating MCP server implementation

FAQ from MyFirstMCP

What is MCP?

MCP stands for Model Context Protocol, a protocol for communication between AI models and external services.

What .NET version is required?

.NET 9.0 SDK is required to run this server.

Where can I find more information about MCP?

Refer to the provided links in the README for more information about Model Context Protocol.

What are the dependencies?

The project depends on Microsoft.Data.Sqlite, Microsoft.Extensions.Hosting, and ModelContextProtocol.

How do I configure the server?

Configure the server in your ./claude/claude_desktop_config.json file, updating the project path to match your local environment.