MCP.so
登录

simple_mcp_server

@natapone

关于 simple_mcp_server

Test Simple MCP server

基本信息

分类

其他

运行时

python

传输方式

stdio

发布者

natapone

配置

暂无标准配置

该服务器的 README 中没有可解析的 MCP 配置块,请前往代码仓库查看安装说明。

代码仓库

工具

未检测到工具

工具是从 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

FAQ from simple_mcp_server

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.

What dependencies are required?

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

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.

评论

其他 分类下的更多 MCP 服务器