New:Microsoft Teams Notifications Are Now Available in Socket.Learn more
Get Started

TimeMcpServer

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

TimeMcpServer

A Model Context Protocol (MCP) server that provides current UTC time in RFC 3339 format

Source
nugetNuGet
Version
1.0.7
Version published
Total downloads
2.5K
Maintainers
1
Created
Source

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:

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

  • Tag the release with a version number prefixed with 'v':

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

    git push --tags
    

Then the CI/CD pipeline will automatically publish the package.

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 and creates GitHub releases on version tags

Keywords

mcp

FAQs

Package last updated on 12 Sep 2025

Related posts