MCP.so
ログイン

Simple MCP Server

@natapone

基本情報

カテゴリ

その他

トランスポート

stdio

作者

natapone

Simple MCP Server について

Test Simple MCP server

Simple MCP Server の設定

標準の設定はありません

このサーバーの README には解析可能な MCP 設定ブロックが含まれていません。インストール手順はリポジトリをご確認ください。

リポジトリ

Simple MCP Server のツール

ツール一覧はまだありません

この掲載には表示できるツール一覧がまだありません。サーバーにツールがないという意味ではありません。対応機能はプロジェクトのドキュメントをご確認ください。

ツールは README から自動的に抽出されます。メンテナーは ## Tools という見出しの下に記載することで、このタブに反映できます。

概要

What is simple_mcp_server?

simple_mcp_server is a simple custom component for Langflow that provides datetime-related tools with timezone support. It allows users to get the current date, time, and week number in any IANA timezone.

How to use simple_mcp_server?

Copy the contents of langflow_component.py, open Langflow, click "+ Custom Component", paste the code into the editor, and click "Check & Save". Then instantiate DateTimeTools() and call get_current_datetime(timezone) or get_week_number(timezone) with a valid timezone identifier.

Key features of simple_mcp_server

  • Get current date and time with timezone support
  • Get current week number with timezone support
  • Simple error handling for invalid timezones
  • Supports all IANA Time Zone Database timezones
  • Minimal dependencies (pytz and built-in datetime)

Use cases of simple_mcp_server

  • Retrieve the current date and time in a specific timezone, e.g., "America/New_York"
  • Obtain the current week number for a given timezone for reporting or scheduling

よくある質問

1

What timezones are supported?

All timezones available in the IANA Time Zone Database are supported, including UTC, America/New_York, Europe/London, and many others.

2

What dependencies are required?

The component requires the Python packages `pytz` and `datetime` (built-in). Ensure they are installed in your Langflow environment.

3

How does the component handle invalid timezones?

Invalid timezones will return an error message; for the week number function, it will return -1 on error.

コメント

「その他」の他のコンテンツ