MCP DateTime
MCP 日時
エージェント システムとチャット REPL に日時とタイムゾーン情報を提供するモデル コンテキスト プロトコル (MCP) サーバーの TypeScript 実装。
概要
MCP DateTimeは、モデルコンテキストプロトコルを実装したシンプルなサーバーで、AIエージェントとチャットインターフェースに日時とタイムゾーン情報を提供します。これにより、AIシステムは以下のことが可能になります。
ローカルシステムのタイムゾーンで現在の時刻を取得します
有効なタイムゾーンの現在の時刻を取得します
利用可能なすべてのタイムゾーンを一覧表示する
URIリソースを通じてタイムゾーン情報にアクセスする
Related MCP server: Time Tools MCP Server
インストール
npmから
npm install -g mcp-datetime出典
git clone https://github.com/odgrmi/mcp-datetime.git
cd mcp-datetime
npm install
npm run build使用法
コマンドライン
MCP DateTime は次の 2 つのモードで実行できます。
1. 標準I/Oモード(デフォルト)
このモードは、標準入出力を介して MCP プロトコルをサポートする AI システムとの統合に最適です。
mcp-datetime2. サーバー送信イベント(SSE)モード
このモードでは、MCP プロトコル用の SSE トランスポートを提供する HTTP サーバーが起動します。
mcp-datetime --sseカスタム ポートと URI プレフィックスを指定することもできます。
mcp-datetime --sse --port=8080 --prefix=/api/datetime環境変数
PORT: SSEモードのポートを設定します(デフォルト: 3000)URI_PREFIX: SSEモードのURIプレフィックスを設定します(デフォルト: なし)
利用可能なツール
MCP DateTime は次のツールを提供します。
get-current-time
システムのローカルタイムゾーンの現在の時刻を返します。
get-current-timezone
現在のシステムタイムゾーンを返します。
get-time-in-timezone
指定されたタイムゾーンの現在の時刻を返します。
パラメータ:
timezone: 現在の時刻を取得するタイムゾーン(例:"America/New_York")
list-timezones
利用可能なすべてのタイムゾーンのリストを返します。
リソースURI
MCP DateTime は、リソース URI を通じてタイムゾーン情報へのアクセスも提供します。
datetime://{timezone}
指定されたタイムゾーンの現在の時刻を返します。
例: datetime://America/New_York
datetime://list
利用可能なすべてのタイムゾーンのリストを返します。
一般的なタイムゾーン
次の一般的なタイムゾーンは常に利用可能です。
UTC
ヨーロッパ/ロンドン
ヨーロッパ/パリ
ヨーロッパ/ベルリン
アメリカ/ニューヨーク
アメリカ/シカゴ
アメリカ/デンバー
アメリカ/ロサンゼルス
アジア/東京
アジア/上海
アジア/コルカタ
オーストラリア/シドニー
パシフィック/オークランド
SSEエンドポイント
SSE モードで実行する場合、次のエンドポイントが利用できます。
/sse: SSE接続エンドポイント/message: クライアントとサーバー間の通信のメッセージエンドポイント/info: 基本的なサーバー情報
URI プレフィックスが指定されている場合は、すべてのエンドポイントの先頭に追加されます。
AIシステムとの統合
MCP DateTimeは、モデルコンテキストプロトコルをサポートするAIシステムと統合できます。これにより、AIエージェントは正確なタイムゾーンと日時情報にアクセスできます。
発達
前提条件
Node.js 14.16以上
npm
設定
git clone https://github.com/odgrim/mcp-datetime.git
cd mcp-datetime
npm install建てる
npm run build開発モードで実行
npm run dev # Standard I/O mode
npm run dev:sse # SSE modeライセンス
このプロジェクトは、Mozilla Public License 2.0 に基づいてライセンスされています。詳細については、 LICENSEファイルを参照してください。
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityDmaintenanceA TypeScript server that provides time-related tools through the Model Context Protocol, allowing users to get current time in various timezones and convert times between different IANA timezones.MIT
- AlicenseAqualityDmaintenanceA Model Context Protocol server for time manipulation tasks, enabling AI models to get the current date/time and calculate duration between timestamps.72MIT
- AlicenseBqualityDmaintenanceA Model Context Protocol server that provides time and timezone conversion capabilities, enabling LLMs to get current time information and perform timezone conversions using IANA timezone names.2MIT
- Alicense-qualityCmaintenanceThe Time MCP Server is a Model Context Protocol (MCP) server that provides AI assistants and other MCP clients with standardized tools to perform time and date-related operations. This server acts as a bridge between AI tools and a robust time-handling back12226MIT
Related MCP Connectors
A real clock for AI agents: current time, timezone conversion, and DST facts from the IANA tzdb.
A time server that keeps your AI honest about time. Real clock + drift guard, zero dependencies.
Timezone MCP — wraps WorldTimeAPI (free, no auth)
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/odgrim/mcp-datetime'
If you have feedback or need assistance with the MCP directory API, please join our Discord server