Skip to main content
Glama
thekk1

time-mcp-http

by thekk1

time-mcp-http

Официальный time-сервер из репозитория modelcontextprotocol/servers (get_current_time, convert_time) переведён на потоковый HTTP вместо stdio, чтобы вписываться в тот же MCP-парк, полностью построенный на Docker и HTTP, что и остальная часть стека BOS (см. bos-chat-stack.md), и не требовать, чтобы LibreChat поднимал локальный подпроцесс.

Логика инструментов (расчёт часовых поясов, схемы) импортируется напрямую из установленного пакета mcp-server-time (TimeServer/TimeTools) — меняется только транспорт, поэтому pip install --upgrade mcp-server-time по-прежнему подхватывает исправления из апстрима.

Зачем это нужно

У ассистента, вызывающего инструменты, нет встроенного понимания «сейчас» — он может неверно прочитать UTC-смещение в ISO-метке времени или просто не знать, какой сегодня день. Дать ему явный, вызываемый по требованию инструмент надёжнее, чем пытаться вставлять текущие дату и время в каждый системный промпт (endpoint Agents в LibreChat не поддерживает это нативно по состоянию на 2026-08 — см. bos-chat-stack.md).

Related MCP server: Now MCP

Запуск

docker build -t time-mcp-http .
docker run --rm -p 8080:8080 -e LOCAL_TIMEZONE=Europe/Berlin time-mcp-http

LOCAL_TIMEZONE (IANA-имя, например Europe/Berlin) используется только для заполнения текста описания инструмента («используйте этот часовой пояс как локальный, если пользователь не указал другой») — каждый вызов по-прежнему принимает явный аргумент timezone. Если переменная не задана или невалидна, сервис откатывается к UTC, а не падает при старте.

Никаких учётных данных, никакого состояния на пользователя, никакого MCP_API_KEY — намеренно, по той же логике, что и multi-user режим в ews-mcp: если какой-то шлюз вернёт 401, не-OAuth MCP-клиент LibreChat попробует OAuth (и застрянет на нём). Границы здесь — изоляция Docker-сети, а не API-ключ.

Тест

pip install -e '.[dev]'
LOCAL_TIMEZONE=Europe/Berlin pytest
F
license - not found
Not graded
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    Provides current time and timezone conversion using IANA timezone names, enabling LLMs to get system time or convert times between timezones.
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Provides time-related tools including current time retrieval, timezone conversion, time formatting, and timezone info via MCP.
    15
    MIT
  • F
    license
    Not graded
    quality
    C
    maintenance
    Provides real-time time awareness to Hermes Agent by exposing date, time, and timezone tools through MCP, enabling on-demand temporal queries.
  • A
    license
    Not graded
    quality
    C
    maintenance
    A remote MCP server exposing date/time tools over Streamable HTTP, enabling retrieval of current time for IANA timezones and listing available timezones, designed for use with web clients like Claude.ai.
    MIT

View all related MCP servers

Related MCP Connectors

  • Timezone MCP — wraps WorldTimeAPI (free, no auth)

  • A real clock for AI agents: current time, timezone conversion, and DST facts from the IANA tzdb.

  • Timezone tools for agents: convert, world clock, offset, lookup, date math, holidays, slots. x402

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/thekk1/time-mcp-http'

If you have feedback or need assistance with the MCP directory API, please join our Discord server