
simple_mcp_server
Test Simple MCP server
Repository Info
About This Server
Test Simple MCP server
Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.
Documentation
DateTime Tools for Langflow
A simple custom component for Langflow that provides datetime-related tools with timezone support.
Features
- Get current date and time with timezone support
- Get current week number with timezone support
- Simple error handling for invalid timezones
Installation
- Copy the contents of
langflow_component.py - Open Langflow
- Click "+ Custom Component"
- Paste the code into the editor
- Click "Check & Save"
Usage
Get Current DateTime
datetime_tools = DateTimeTools()
current_time = datetime_tools.get_current_datetime("America/New_York")
# Returns: "2024-03-20T10:30:00-04:00"
Get Week Number
datetime_tools = DateTimeTools()
week_num = datetime_tools.get_week_number("America/New_York")
# Returns: 12
Timezone Support
The component supports all timezones available in the IANA Time Zone Database. Common timezone identifiers include:
- UTC
- America/New_York
- America/Los_Angeles
- Europe/London
- Asia/Tokyo
- Australia/Sydney
For a complete list of supported timezones, refer to the IANA Time Zone Database.
Error Handling
- Invalid timezones will return an error message
- Week number will return -1 for invalid timezones or errors
Dependencies
The component requires the following Python packages:
- pytz
- datetime (built-in)
Make sure these are installed in your Langflow environment.
Quick Start
Clone the repository
git clone https://github.com/natapone/simple_mcp_serverInstall dependencies
cd simple_mcp_server
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.