microservices s
MCP server in .NET C#
claude mcp add --transport stdio akilliraza-microservices-mcp-servers dotnet run \ --env ASPNETCORE_URLS="http://localhost:5278"
How to use
This MCP server is implemented in .NET C# and exposes an MCP-compatible interface for local testing and tool execution. After starting the server, it serves MCP endpoints under /mcp (e.g., http://localhost:5278/mcp). You can connect a client such as Postman using the MCP protocol to load and run available tools. In this project, you will typically see a UserTool among the loaded tools; selecting a method within UserTool and providing the required parameters will execute the tool and return results in the response. Use the base URL /mcp as the entry point to discover and invoke the available MCP tools exposed by the server.
How to install
Prerequisites:
- .NET SDK (version compatible with the project, e.g., .NET 6+)
- Basic knowledge of running command-line applications
Steps:
-
Clone the repository: git clone <repository-url> cd <repository-directory>
-
Restore and build the project: dotnet restore dotnet build
-
Run the MCP server: dotnet run
-
Ensure the server is listening on the expected URL (default http://localhost:5278).
-
Open your MCP client (e.g., Postman) and connect to http://localhost:5278/mcp.
Additional notes
Tips and common considerations:
- The MCP endpoint is exposed at /mcp; ensure firewall rules allow local HTTP access on port 5278 or adjust the port in your launch settings.
- If you modify launch settings or environment, update the ASPNETCORE_URLS variable accordingly to reflect the accessible URL.
- In Postman, MCP support enables automatic loading of tools (like UserTool) once connected; you can choose a method and supply required parameters to execute it.
- If you encounter issues connecting from a client, verify that the server is running and listening on the correct URL, and confirm there are no conflicting services on port 5278.
Related MCP Servers
mssql
MSSQL Server MCP implementation written in C#
McpDotNet.Extensions.SemanticKernel
Microsoft SemanticKernel integration for the Model Context Protocol (MCP). Enables seamless use of MCP tools as AI functions.
DatabaseMcpServer
MCP server from ttcc666/DatabaseMcpServer
mcp-dataverse
MCP Server for querying Dataverse using SQL
xperience-community
ASP.NET Core MCP server for Xperience by Kentico projects
console-to-http
Example of converting a stdio MCP server to HTTP using ModelContextProtocol.AspNetCore