1. Conduid
  2. AI
  3. Dotnet MCP Datetime Server
MCP server · AI

Dotnet MCP Datetime Server

Model Context Protocol (MCP) Server for date/time operations - production-ready C# script for Visual Studio 2026 Copilot Chat.

Unclaimed last commit 11 months ago ai
34Low

Scored 6 months ago · breakdown

About Dotnet MCP Datetime Server

Dotnet MCP Datetime Server is an MCP server published by eyjolfurgudnivatne in the AI category: model Context Protocol (MCP) Server for date/time operations - production-ready C# script for Visual Studio 2026 Copilot Chat.

The repository has 1 stars and 0 forks, with the last commit 11 months ago. Six months or more without a commit doesn't mean the server is broken, but check the open issues before depending on it in production.

Install

From source
git clone https://github.com/eyjolfurgudnivatne/dotnet-mcp-datetime-server

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

✦

Ask AI about Dotnet MCP Datetime Server

Powered by Claude · Grounded in docs

I know everything about Dotnet MCP Datetime Server. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

  • ✓README presentThe repository ships documentation.

5 checks have not been run yet.

README

DateTime MCP Server

Model Context Protocol (MCP) Server for date/time operations - production-ready C# script for Visual Studio 2026 Copilot Chat.


🎯 Features

Provides 5 datetime tools via JSON-RPC 2.0:

  • get_current_datetime - Get current date/time in any timezone
  • get_iso8601_timestamp - Get UTC timestamp in ISO 8601 format
  • add_days - Add or subtract days from a date
  • is_weekend - Check if a date is a weekend
  • get_week_number - Get ISO 8601 week number

🚀 Quick Start

1. Download

# Clone the repository
git clone https://github.com/eyjolfurgudnivatne/dotnet-mcp-datetime-server.git
cd dotnet-mcp-datetime-server

2. Configure

Create .mcp.json in your workspace root:

{
  "inputs": [],
  "servers": {
    "datetime": {
      "type": "stdio",
      "command": "dotnet",
      "args": ["DateTimeMcpServer.cs"],
      "env": {}
    }
  }
}

3. Activate in VS 2026

  1. Open Copilot Chat in Visual Studio
  2. Click the tool icon (⚙️ bottom of chat)
  3. Expand "datetime" under "Added"
  4. Check the tools you want to use
  5. Start asking datetime questions!

📖 Example Usage

You: What's today's date?
Copilot: Today is Saturday, November 29, 2025 (week 48)

You: Is it weekend?
Copilot: Yes! It's Saturday, November 29, 2025

You: What day was 2 days ago?
Copilot: 2 days ago was Thursday, November 27, 2025

🔧 Requirements

  • .NET 10 or later
  • Visual Studio 2026 (November 2025 Feature Update or later)
  • GitHub Copilot subscription

📝 Technical Highlights

  • ✅ Zero warnings - IL2026/IL3050 eliminated with JSON Source Generation
  • ✅ AOT-friendly - Full ahead-of-time compilation support
  • ✅ No build required - Runs directly as C# script
  • ✅ Production-ready - MCP-compliant with proper error handling
  • ✅ Stdout-safe - No console logging pollution

🏗️ Extending

Add new tools in 4 steps:

  1. Add method to DateTimeTools class
  2. Add tool definition in ListTools()
  3. Add case in CallTool() switch
  4. Register return types in McpJsonContext

🐛 Troubleshooting

Tools not appearing?

  • Restart Visual Studio
  • Check .mcp.json path is relative to workspace root

"Failed" when calling tools?

  • Ensure all return types registered in McpJsonContext
  • Verify no console output (logging disabled)

Server shows "Cached"?

  • Normal! Server starts on-demand when you call tools

📚 Resources

🤝 Contributing

Contributions welcome! Please open an issue or PR.

📄 License

MIT License - free for any use, commercial or personal.

🎉 Acknowledgments

Built with ☕ and persistence during a Saturday research session.
Special thanks to the debugging journey that made this possible!


Author: ARKo AS - AHelse Development Team
Date: November 29, 2025
Status: Production-ready ✅

README copy captured when this server was indexed; it may lag the repository. The original is authoritative.

Questions

About Dotnet MCP Datetime Server

How do I install Dotnet MCP Datetime Server?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Dotnet MCP Datetime Server safe to use with an AI agent?

Its trust score is 34 out of 100 (low). It passes 1 of the 1 static security checks run so far. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Dotnet MCP Datetime Server still maintained?

The last commit was 11 months ago. That's long enough that you should check whether the maintainer is responding to issues before depending on it.