- MCPSharp
created by
afrise15 days ago
MCPSharp is a .NET library that helps you build Model Context Protocol (MCP) servers and clients - the standardized API protocol used by AI assistants and models.
Information
What is MCPSharp?
MCPSharp is a .NET library designed to help developers build Model Context Protocol (MCP) servers, which are standardized API protocols used by AI assistants and models.
How to use MCPSharp?
To use MCPSharp, install the library via NuGet and define your tools and functions using specific attributes. Start the server to expose your .NET methods as MCP endpoints.
Key features of MCPSharp?
- Easy-to-use attribute-based API for defining tools and functions.
- Built-in JSON-RPC support for automatic request/response handling.
- Automatic parameter validation and type conversion.
- Rich documentation support through XML comments.
- Zero configuration required for basic usage.
Use cases of MCPSharp?
- Creating tools for AI assistants like Anthropic's Claude Desktop.
- Building MCP-compliant APIs without dealing with protocol complexities.
- Exposing existing .NET code as MCP endpoints.
- Adding AI capabilities to applications through standardized interfaces.
FAQ from MCPSharp?
- What is the minimum .NET version required?
.NET Framework 4.6 or higher is required.
- How do I install MCPSharp?
You can install it using the command:
dotnet add package MCPSharp
.
- Can I contribute to MCPSharp?
Yes! Contributions are welcome, and you can submit a Pull Request.
Recommended Servers

ChatSumQuery and Summarize your chat messages.

Mcp TimeplusMCP timeplus for Apache Kafka, ClickHouse and Timeplus. Able to list Kafka topics, poll Kafka messages, save Kafka data locally and query with SQL via Timeplus

Mcp Server RagdocsAn MCP server that provides tools for retrieving and processing documentation through vector search, both locally or hosted. Enabling AI assistants to augment their responses with relevant documentation context.
Most Popular Model Context Protocol (MCP) ServersA curated list of the most popular Model Context Protocol (MCP) servers based on usage data from Smithery.ai
Template for MCP Server

GithubMCP Server for the GitHub API, enabling file operations, repository management, search functionality, and more.
Nuanced MCP ServerA Model Context Protocol (MCP) server that provides call graph analysis capabilities to LLMs through the nuanced library
Perplexity Web Search MCP ServerA perplexity MCP server

MongoDB LensFull featured MCP Server for MongoDB database analysis.

Microsoft SQL Server MCP Server (MSSQL)MS SQL MCP Server
An easy-to-use bridge that lets AI assistants like Claude directly query and explore Microsoft SQL Server databases. No coding experience required!
What Does This Tool Do?
This tool allows AI assistants to:
Discover tables in your SQL Server database
View table structures (columns, data types, etc.)
Execute read-only SQL queries safely
Generate SQL queries from natural language requests