TimeMcpServer 1.1.1


                    
dotnet tool install --global TimeMcpServer --version 1.1.1
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local TimeMcpServer --version 1.1.1
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=TimeMcpServer&version=1.1.1
                    
nuke :add-package TimeMcpServer --version 1.1.1
                    

Time MCP Server

A minimal Model Context Protocol (MCP) server built with .NET.

The server provides one simple tool:

  • GetCurrentUtcTime - Gets the current UTC date and time in RFC 3339 format

Quick start

Prerequisites:

  • .NET 9.0 or later
  • Claude Desktop or another MCP-compatible client

Run with:

dotnet run

Configuration

To use this server with Claude Desktop, add the following to your MCP configuration file:

Windows

Add to %APPDATA%\Claude\claude_desktop_config.json:

{
  "mcpServers": {
    "time-server": {
      "command": "dotnet",
      "args": [
        "run", 
        "--project", 
        "C:\\path\\to\\TimeMcpServer.csproj"
      ]
    }
  }
}

macOS

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "time-server": {
      "command": "dotnet",
      "args": [
        "run", 
        "--project", 
        "/path/to/TimeMcpServer.csproj"
      ]
    }
  }
}

Usage

Once configured, you can use the time tool in Claude Desktop:

  • "What's the current UTC time?"
  • "Give me an RFC 3339 timestamp"

Publishing New Versions

To publish a new version of the package:

  1. Update the version in TimeMcpServer.csproj, and commit as Release x.y.z

  2. Tag the release with a version number prefixed with 'v':

    git tag v1.0.1
    
  3. Push the tag to trigger the publishing pipeline:

    git push --tags
    

The CI/CD pipeline will automatically:

  • Publish the NuGet package to nuget.org
  • Publish the server to the MCP Registry
  • Create a GitHub release

CI/CD

The project includes GitHub Actions workflows for:

  • Build & Test - Builds and tests on multiple platforms (Windows, macOS, Linux)
  • Publish - Automatically publishes to NuGet, MCP Registry, and creates GitHub releases on version tags

MCP Registry

This server is published to the Model Context Protocol Registry. The publishing process uses the server.json configuration file which follows the MCP Registry specification.

Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  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.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last Updated
1.1.1 159 10/26/2025
1.1.0 157 10/26/2025
1.0.8 182 9/12/2025
1.0.7 180 9/12/2025
1.0.5 183 9/12/2025
1.0.4 182 9/12/2025
1.0.3 182 9/12/2025
1.0.2 219 9/4/2025
1.0.1 201 9/4/2025
1.0.0 201 9/4/2025