Get the FREE Ultimate OpenClaw Setup Guide →

microservices s

MCP server in .NET C#

Installation
Run this command in your terminal to add the MCP server to Claude Code.
Run in terminal:
Command
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:

  1. Clone the repository: git clone <repository-url> cd <repository-directory>

  2. Restore and build the project: dotnet restore dotnet build

  3. Run the MCP server: dotnet run

  4. Ensure the server is listening on the expected URL (default http://localhost:5278).

  5. 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

OpenClaw setup in under 5 minutes

Deploy your agent in 1 click. Use KILOPARTNERSMAY for 50% off your first month.