home / mcp / global time mcp server

Global Time MCP Server

MCP Server generated by mcp.ag2.ai

Installation
Add the following to your MCP client configuration file.

Configuration

View docs
{
  "mcpServers": {
    "ag2-mcp-servers-interzoid-get-global-time-api": {
      "command": "python",
      "args": [
        "mcp_server/main.py",
        "stdio"
      ],
      "env": {
        "CONFIG": "{\"transport\":\"stdio\"}",
        "SECURITY": "MY_API_KEY",
        "CONFIG_PATH": "mcp_server/mcp_config.json"
      }
    }
  }
}

This MCP server provides a dedicated runtime for the Interzoid Get Global Time API, enabling you to run an MCP endpoint that interfaces with the external API and delivers model-context aware responses to your MCP clients. It is useful for simplifying client integration, centralizing configuration, and enabling consistent behavior across your applications.

How to use

You run the MCP server in stdio mode and connect to it from your MCP client. Start it once, then send your MCP requests through your chosen transport. The server reads its configuration from environment variables or a JSON file when you launch it, and it will expose a stable MCP interface for the Interzoid Get Global Time API.

How to install

Prerequisites include Python 3.9 or later. You also need pip and uv to manage dependencies and serve the MCP locally.

Step by step install and run flow:

# 1. Prepare your environment
python3 --version
pip --version
uv --version

# 2. Install dependencies (editable in dev mode if you have a dev container)
pip install -e ".[dev]"

# 3. Start the MCP server in stdio mode
python mcp_server/main.py stdio

Configuration and security notes

You can control the server configuration using environment variables. The key variables shown are:

- CONFIG_PATH: Path to a JSON configuration file (for example, mcp_server/mcp_config.json). - CONFIG: A JSON string containing the configuration. - SECURITY: Environment variables for security parameters (for example, API keys).

Available tools

start_server

Launch the MCP server in stdio mode using the runtime command shown.

lint

Check and format code with ruff to maintain style and quality.

static_analysis

Run static analysis including mypy, bandit, and semgrep using the provided script.

run_tests

Execute tests with pytest and generate a coverage report.