Cover image
Try Now
2025-03-12

MCP服务器 - 让Claude告诉时间!高度可靠和一致。

3 years

Works with Finder

1

Github Watches

0

Github Forks

0

Github Stars

time-mcp

A Claude Model Configuration Protocol (MCP) server that provides real-time timezone-aware date and time information.

Features

  • Get current time in any IANA timezone
  • Easy integration with Claude AI through MCP
  • Comprehensive timezone support using Python's zoneinfo module
  • Simple JSON responses in ISO format

Installation

# Clone the repository
git clone https://github.com/yourusername/time-mcp.git
cd time-mcp

# Set up virtual environment (using uv)
uv venv
source .venv/bin/activate

# Install the package
pip install -e .

Usage

Running the Server

python -m src.time_mcp.server

This starts the MCP server locally, making the time tool available to Claude.

Available Tools

  • get_current_time: Returns the current time in the specified timezone
    • Parameter: timezone (string) - Any valid IANA timezone (e.g., "America/New_York", "Europe/London", "Asia/Tokyo")
    • Default: "UTC" if no timezone is specified

Development

# Run tests
pytest tests/

# Lint code
ruff check .

# Format code
ruff format .

Requirements

  • Python 3.10+
  • MCP library

License

MIT

相关推荐

  • NiKole Maxwell
  • I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

  • Bora Yalcin
  • Evaluator for marketplace product descriptions, checks for relevancy and keyword stuffing.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Alexandru Strujac
  • Efficient thumbnail creator for YouTube videos

  • Callycode Limited
  • A geek-themed horoscope generator blending Bitcoin prices, tech jargon, and astrological whimsy.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Khalid kalib
  • Write professional emails

  • Beniyam Berhanu
  • Therapist adept at identifying core issues and offering practical advice with images.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • apappascs
  • 发现市场上最全面,最新的MCP服务器集合。该存储库充当集中式枢纽,提供了广泛的开源和专有MCP服务器目录,并提供功能,文档链接和贡献者。

  • ShrimpingIt
  • MCP系列GPIO Expander的基于Micropython I2C的操作,源自ADAFRUIT_MCP230XX

  • OffchainLabs
  • 进行以太坊的实施

  • huahuayu
  • 统一的API网关,用于将多个Etherscan样区块链Explorer API与对AI助手的模型上下文协议(MCP)支持。

  • deemkeen
  • 用电源组合控制您的MBOT2:MQTT+MCP+LLM

    Reviews

    3 (1)
    Avatar
    user_zCYXEMZj
    2025-04-16

    As a dedicated user of the time-mcp application, I can confidently say it's an indispensable tool for time management. The user-friendly interface combined with seamless performance makes it a must-have. Created by samay58, this product is not only reliable but also open-source, allowing for ongoing improvements by the community. Ideal for anyone looking to optimize their time efficiently, I highly recommend checking it out at https://github.com/samay58/time-mcp.