mcpdotnet 0.1.0-alpha1

This is a prerelease version of mcpdotnet.
There is a newer version of this package available.
See the version list below for details.
dotnet add package mcpdotnet --version 0.1.0-alpha1
                    
NuGet\Install-Package mcpdotnet -Version 0.1.0-alpha1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="mcpdotnet" Version="0.1.0-alpha1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="mcpdotnet" Version="0.1.0-alpha1" />
                    
Directory.Packages.props
<PackageReference Include="mcpdotnet" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add mcpdotnet --version 0.1.0-alpha1
                    
#r "nuget: mcpdotnet, 0.1.0-alpha1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=mcpdotnet&version=0.1.0-alpha1&prerelease
                    
Install mcpdotnet as a Cake Addin
#tool nuget:?package=mcpdotnet&version=0.1.0-alpha1&prerelease
                    
Install mcpdotnet as a Cake Tool

mcpdotnet

A .NET client implementation of the Model Context Protocol (MCP), enabling .NET applications to connect to and interact with MCP servers.

About MCP

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.

For more information about MCP:

Status

This project is in early development. While functional, it may undergo significant changes as the protocol and implementation evolve.

Current Limitations

  • Only supports the Tool capability (Resources, Prompts, Sampling, and Roots not yet implemented)
  • Only stdio transport is currently supported (HTTP/SSE transport coming soon)
  • Client library only - server implementation support may be added in the future
  • Provider-agnostic implementation focused purely on the MCP protocol
  • Applications using this library need to implement their own integration with LLM APIs/clients

The library's current focus is on implementing the core MCP protocol, with the main utility being the ability to launch and connect to MCP servers based on configuration objects.

Features

  • MCP client implementation for .NET applications
  • Support for stdio transport
  • Tool discovery and execution
  • Async/await pattern throughout
  • Compatible with .NET 8.0 and later

Getting Started

Documentation and examples are coming soon. For now, please refer to the test project for usage examples.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net8.0

    • No dependencies.

NuGet packages (4)

Showing the top 4 NuGet packages that depend on mcpdotnet:

Package Downloads
OllamaSharp.ModelContextProtocol

Use tools from model context protocol (MCP) servers with Ollama

McpDotNet.Extensions.AI

Microsoft.Extensions.AI integration for the Model Context Protocol (MCP). Enables seamless use of MCP tools as AI functions in any IChatClient implementation.

McpDotNet.Extensions.SemanticKernel

Microsoft SemanticKernel integration for the Model Context Protocol (MCP). Enables seamless use of MCP tools as AI functions.

Ivilson.McpDotNet.Webapi

Package Description

GitHub repositories (2)

Showing the top 2 popular GitHub repositories that depend on mcpdotnet:

Repository Stars
microsoft/semantic-kernel
Integrate cutting-edge LLM technology quickly and easily into your apps
awaescher/OllamaSharp
The easiest way to use the Ollama API in .NET
Version Downloads Last updated
1.2.0.1 386 15 days ago
1.1.0.1 835 24 days ago
1.0.1.3 9,770 a month ago
1.0.1.1 159 2 months ago
1.0.0.1 117 2 months ago
0.10.0.1 98 2 months ago
0.9.0.1 116 2 months ago
0.8.0.1 89 3 months ago
0.7.0.1 88 3 months ago
0.6.0.1 94 3 months ago
0.5.0.1 85 3 months ago
0.3.0.2 119 3 months ago
0.3.0.1 143 3 months ago
0.2.0-alpha1 96 3 months ago
0.1.0-alpha1 108 3 months ago