MCP ExplorerExplorer

Mcpexperiments

@hallloon 10 months ago
1 MIT
FreeCommunity
AI Systems
MCP Experiments

Overview

What is Mcpexperiments

McpExperiments is a set of experiments based on the Model Context Protocol (MCP), designed to demonstrate the capabilities of an MCP server and client using .NET technology. It includes a server that provides the current time and a client that interacts with local language models.

Use cases

Use cases for McpExperiments include developing applications that need to fetch the current time dynamically, integrating with AI assistants, and experimenting with the Model Context Protocol in various programming scenarios.

How to use

To use McpExperiments, configure the MCP server in the ‘claude_desktop_config.json’ file of Claude Desktop by specifying the command to run the server executable. Ensure that the server is running before invoking it from the client.

Key features

Key features of McpExperiments include a .NET-based MCP server that communicates via standard input/output, the ability to return the current time, and integration with local language models through a client interface.

Where to use

McpExperiments can be used in applications that require real-time data retrieval from a server, particularly in AI and machine learning environments where local language models are utilized.

Content

MCP Experiments

These MCP experiments are based on Laurent Kempé’s tutorial.

There is a dotnet MCP server over stdio that provides a function to return the current time.

There is a dotnet MCP client that makes it available to a local LLM which invokes it.

It uses the official mcp-csharp-sdk.

Claude Desktop

To add it to Claude Desktop, change the claude_desktop_config.json like this:

{
  "mcpServers": {
    "getTime": {
      "command": "D:\\McpExperiments\\MyMCPServer.Stdio\\bin\\Debug\\net9.0\\MyMCPServer.Stdio.exe"
    },
    "getVibe": {
      "command": "npx",
      "args": [
        "[email protected]",
        "http://localhost:5253/sse"
      ]
    }
  }
}

Claude Desktop seems to not yet natively support SSE transport.

Authorization

Web-based MCP servers using SSE should require authorization. According to the specification the MCP server should also be an OAuth server.

Microsoft plans to implement all specified authentication protocols described in the MCP spec, but there is no roadmap yet.

In this repository I am attempting to build an OAuth server middleware for MCP servers.

OAuth server build based on https://youtu.be/EBVKlm0wyTE.

npx @modelcontextprotocol/inspector

Resources

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers