Date MCP Server

Date MCP Server

Provides current date and time information in multiple formats, timezone conversion, date/time differences, and date calculations.

Category
Visit Server

README

Date MCP Server

現在時刻を提供するMCP (Model Context Protocol) サーバーです。AIエージェントが「最近の」「今の」などの時制を正しく理解できるよう、詳細な時刻情報を提供します。

機能

  • 現在の日時を複数のフォーマットで提供
  • タイムゾーンの変換をサポート
  • 指定された日時と現在時刻の差を計算
  • 詳細な時刻コンポーネント(年、月、日、時、分、秒など)を提供

インストール

npm install
npm run build

使用方法

開発モード

npm run dev

ビルド済みバージョンの実行

npm start

利用可能なツール

get_current_time

現在の日時を取得します。

パラメータ:

  • timezone (オプション): タイムゾーン(例: "Asia/Tokyo", "America/New_York")
  • locale (オプション): ロケール(例: "ja-JP", "en-US"、デフォルト: "ja-JP")

戻り値の例:

{
  "current": {
    "iso": "2025-07-09T10:30:00.000Z",
    "unix": 1741685400,
    "human": "2025年7月9日水曜日 19:30:00 日本標準時",
    "milliseconds": 1741685400000
  },
  "timezone": {
    "system": "Asia/Tokyo",
    "requested": "Asia/Tokyo",
    "offset": -540
  },
  "components": {
    "year": 2025,
    "month": 7,
    "day": 9,
    "hour": 19,
    "minute": 30,
    "second": 0,
    "dayOfWeek": 3,
    "weekOfYear": 28
  },
  "context": {
    "isWeekend": false,
    "quarter": 3,
    "dayOfYear": 190,
    "daysInMonth": 31
  }
}

calculate_date

現在または指定された日時から、指定された期間だけ前後の日時を計算します。

パラメータ:

  • amount (必須): 加算・減算する数値(正の値で未来、負の値で過去)
  • unit (必須): 時間の単位("seconds", "minutes", "hours", "days", "weeks", "months", "years")
  • base_date (オプション): 基準となる日時(ISO 8601形式)。指定しない場合は現在時刻を使用
  • locale (オプション): ロケール(例: "ja-JP", "en-US"、デフォルト: "ja-JP")

使用例:

  • 1日後: {"amount": 1, "unit": "days"}
  • 3日前: {"amount": -3, "unit": "days"}
  • 6時間後: {"amount": 6, "unit": "hours"}
  • 2週後: {"amount": 2, "unit": "weeks"}
  • 8年前: {"amount": -8, "unit": "years"}

get_time_difference

指定された日時と現在時刻の差を計算します。

パラメータ:

  • target_date (必須): 比較対象の日時(ISO 8601形式)
  • unit (オプション): 表示する単位("seconds", "minutes", "hours", "days", "all"、デフォルト: "all")

Claude Codeでの設定

Claude Codeの設定ファイルに以下を追加します:

{
  "mcpServers": {
    "date-mcp": {
      "command": "node",
      "args": ["/path/to/date-mcp/dist/index.js"]
    }
  }
}

ライセンス

MIT

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured