Skip to main content

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

Project description

Time MCP Server

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

The server provides one simple tool:

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

Quick start

Prerequisites:

  • Python 3.8 or later
  • Claude Desktop or another MCP-compatible client

Install and run with:

pip install time-mcp-pypi  # or from a local clone: pip install -e .
time-mcp-pypi

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": "time-mcp-pypi"
    }
  }
}

macOS

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

{
  "mcpServers": {
    "time-server": {
      "command": "time-mcp-pypi"
    }
  }
}

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 pyproject.toml, and commit as Relase version x.y.z:

    [project]
    version = "1.0.1"
    
  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
    

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

CI/CD

The project includes GitHub Actions workflows for:

  • Build & Test - Builds and tests the Python package
  • Publish - Automatically publishes to PyPI and creates GitHub releases on version tags

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

time_mcp_pypi-1.0.4.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

time_mcp_pypi-1.0.4-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file time_mcp_pypi-1.0.4.tar.gz.

File metadata

  • Download URL: time_mcp_pypi-1.0.4.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for time_mcp_pypi-1.0.4.tar.gz
Algorithm Hash digest
SHA256 3903205ef840314e665e9704fc1a44719e1b83ed9136751775097163a6cd54a8
MD5 eddd55026c521f7d392903bf2631f43b
BLAKE2b-256 5e3ce2f59b70a3d8a37988f006bdee91689dcf8ec7357d15aa822733828ceee9

See more details on using hashes here.

File details

Details for the file time_mcp_pypi-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: time_mcp_pypi-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for time_mcp_pypi-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 a0a951c7099c0c2252563b8dff5a9ce911dedf9ce47c57ce61e1088f9e917847
MD5 4e92a2399cd0cd3bc5014ccac3ef5b89
BLAKE2b-256 9c244d994da4bb3a093f9c62ff3d48271934fc803f8a3ea78d2d2036a590ae8d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page