Time-MCP
時間-MCP
ツール拡張 LLM パイプラインを使用して、時間関連および一般的な質問に答える最小限のエージェント AI システム。
特徴
Flask API : 現在のタイムスタンプを提供します。
MCP エージェント サーバー: ユーザーの意図を検出し、ツール (時間 API など) を呼び出し、エンジニアがプロンプトを表示し、OpenRouter (OpenAI 互換 API) を介して LLM と対話する推論エージェント。
Streamlit UI : AI エージェントと会話するためのシンプルなチャット インターフェイス。
Related MCP server: MCP: Multi-Agent Control Point
設定
1. 依存関係のクローンとインストール
pip install -r requirements.txt2. 環境変数
OpenRouter API キーを設定します ( https://openrouter.aiから取得します)。
export OPENROUTER_API_KEY=sk-...your-key...3. サーバーを実行する
3 つのターミナルを開きます (またはバックグラウンド プロセスを使用します)。
ターミナル1: Flask Time API
python flask_api.pyターミナル2: MCPエージェントサーバー
python mcp_server.pyターミナル3: Streamlit UI
streamlit run streamlit_ui.pyStreamlit UI がブラウザで開きます (デフォルト: http://localhost:8501 )
使用法
Streamlit UI でエージェントに質問してください。
時間について質問すると(例:「何時ですか?」)、エージェントは Flask API を呼び出して現在の時刻を取得し、LLM を使用して美しく自然な応答を作成します。
その他の質問については、エージェントは LLM のみを使用して回答します。
建築
[Streamlit UI] → [MCP Agent Server] → [Tools (e.g., Time API)]
↓
[LLM via OpenRouter]MCP エージェントは意図を検出し、必要に応じてツールを呼び出し、エンジニアにプロンプトを出して、LLM に送信します。
簡単に拡張してツールを追加できます (MCPAgent クラスに追加するだけです)。
カスタマイズ
ツールの追加:
MCPAgentに新しいメソッドを実装し、self.toolsを更新します。インテント検出の改善:
MCPAgentのdetect_intent()を拡張します。LLM モデルの変更:
call_llm()のmodelフィールドを更新します。
要件
Python 3.7以上
依存関係については
requirements.txt参照してください。
クレジット
Flask、Streamlit、OpenRouter、Python を使用して構築されています。
エージェント LLM 設計パターンにインスピレーションを受けています。
This server cannot be installed
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
- AlicenseBqualityDmaintenanceGiving LLMs Time Awareness Capabilities. Empower your LLMs with time awareness capabilities. Access current time, convert between timezones, and get timestamps effortlessly. Enhance your applications with precise time-related functionalities.61,01469MIT
- Flicense-qualityDmaintenanceA server that routes user questions to specialized agents (date, location, weather) or an LLM expert, with a simple Streamlit web interface for easy interaction.
- Alicense-quality-maintenanceProvides AI agents with precise, locale-aware date and time data across multiple timezones through a Model Context Protocol API built with TypeScript/Node.js.1
- AlicenseBqualityDmaintenanceProvides current time information and timezone conversion capabilities using IANA timezone names with automatic system detection. It enables LLMs to fetch local or global times and convert specific timestamps between different regions.22MIT
Related MCP Connectors
Wall-clock awareness for LLM agents. Two tools: elapsed-time-between-turns + day rollover detection.
A real clock for AI agents: current time, timezone conversion, and DST facts from the IANA tzdb.
Persistent memory and knowledge management for AI agents with semantic search and 50+ tools.
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/suryawanshishantanu6/time-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server