home / mcp / global time mcp server
MCP Server generated by mcp.ag2.ai
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.
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.
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 stdioYou 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).
Launch the MCP server in stdio mode using the runtime command shown.
Check and format code with ruff to maintain style and quality.
Run static analysis including mypy, bandit, and semgrep using the provided script.
Execute tests with pytest and generate a coverage report.