MCP.so
登录

MyFirstMCP - MCP Server Example

@iamgauravn

基本信息

分类

其他

传输方式

stdio

作者

iamgauravn

关于 MyFirstMCP - MCP Server Example

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

MyFirstMCP - MCP Server Example 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "weather": {
      "command": "dotnet",
      "args": [
        "run",
        "--project",
        "F:\\MyFirstMCP\\MyFirstMCP.csproj",
        "--no-build"
      ]
    }
  }
}

MyFirstMCP - MCP Server Example 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is MyFirstMCP?

MyFirstMCP is a simple C# implementation of a Model Context Protocol (MCP) server using .NET 9. It demonstrates basic MCP functionality including monkey data fetching and selling record management.

How to use MyFirstMCP?

Install the .NET 9.0 SDK, clone the repository, and open it in Visual Studio Code. Restore NuGet packages and run the project. For integration with VS Code, add the provided configuration to your claude_desktop_config.json, updating the project path to match your local environment.

Key features of MyFirstMCP

  • Fetches monkey data from an external API
  • Manages selling records
  • Provides MCP command interfaces via tools
  • Built with .NET 9 and the ModelContextProtocol package

Use cases of MyFirstMCP

  • Learning how to build an MCP server in C#
  • Prototyping services that retrieve external monkey data
  • Managing a simple selling record system through MCP tools
  • Demonstrating the Model Context Protocol with a concrete example

常见问题

1

What .NET version is required?

.NET 9.0 SDK must be installed to build and run the server.

2

How do I configure the server with Visual Studio Code?

Add an entry to your `claude_desktop_config.json` with `command`: `"dotnet"`, `args`: `["run", "--project", "<path>", "--no-build"]`, replacing `<path>` with your local project file location.

3

What are the main dependencies?

The project uses `Microsoft.Data.Sqlite` (9.0.4), `Microsoft.Extensions.Hosting` (9.0.4), and `ModelContextProtocol` (0.1.0-preview.4).

4

What services does the server provide?

A `MonkeyService` that fetches monkey data from an external API, a `SellingService` that manages selling records, and MCP tools that expose command interfaces for these services.

5

Where can I learn more about MCP servers?

Refer to the Microsoft blog post "Building an MCP Server in C#" and the official MCP Server Quick Start Guide, both linked in the README.

评论

其他 分类下的更多 MCP 服务器