@findtime/mcp-server
@findtime/mcp-server
@findtime/mcp-server 是生产环境 findtime.io Time API(位于 https://time-api.findtime.io)之上的一个轻量级 stdio MCP 包装器。
该包有意代理生产 API,而不是在本地重新实现时间逻辑。当前时间、DST、转换、重叠、会议搜索和位置解析应与实时 API 保持一致。
已发布的入口:
npm:
@findtime/mcp-serverGitHub:
https://github.com/hkchao/findtime-mcp-serverOfficial MCP Registry:
https://registry.modelcontextprotocol.io/?q=io.github.hkchao%2Ffindtime-mcp-serverMCP Registry name:
io.github.hkchao/findtime-mcp-server
工具接口
answer_time_questionget_findtime_helptime_snapshotget_current_timeget_dst_scheduleconvert_timeget_overlap_hoursfind_meeting_timesearch_timezonesget_location_by_id
对于杂乱的自然语言提示,如“3pm PST to London”、“what is the IANA timezone for San Francisco?”、“working hours overlap for SF, Berlin, and Tokyo”或“what does CST mean?”,请优先使用 answer_time_question。该工具通过 findtime.io 的领域逻辑对提示进行分类,分派到确定性的 Time API 行为,并在世界确实存在歧义时返回结构化的歧义或澄清信息。
Related MCP server: Time MCP Server
在 MCP 客户端中安装
通过 npx 使用已发布的包:
npx -y @findtime/mcp-server对于 agent 作者,请在 MCP 配置旁边包含 SKILL.md。它为 Claude、Codex、Cursor、Cline、Windsurf、自定义公司机器人以及其他 LLM agent 提供了操作规则,说明何时优先使用 findtime.io MCP、调用哪些工具,以及如何处理歧义或回退。
所需运行时:
Node 20+
FINDTIME_TIME_API_KEY:来自https://findtime.io/developers/keys/的有效findtime.io开发者密钥
可选环境变量:
FINDTIME_TIME_API_BASE_URLTIME_API_BASE_URLTIME_API_TIMEOUT_MSFINDTIME_BINDING_TYPE:用于可选的安装/工作区绑定上下文。支持的值:slack_team、workspace_id、install_id。FINDTIME_BINDING_VALUE:用于与所选绑定类型匹配的安装/工作区标识符。FINDTIME_BINDING_HEADER:用于直接为自定义企业环境覆盖标头名称。FINDTIME_MCP_CLIENT_ID或FINDTIME_MCP_INSTALL_ID:用于提供稳定的客户端标识符。如果省略,服务器会在用户的状态目录下本地创建一个。如果存在,MCP 包装器会将其作为X-Findtime-User-ID转发给time-api,用于企业使用归属。FINDTIME_MCP_CLIENT_TYPEFINDTIME_MCP_TOOL_MODE=answer-only:仅公开answer_time_question、get_findtime_help和get_api_diagnostics,适用于应通过 answer API 路由每个自然语言请求的企业机器人。FINDTIME_MCP_INSTRUMENTATION_ENABLED=false:用于选择退出匿名使用遥测。FINDTIME_MCP_USAGE_TELEMETRY_URL:用于覆盖默认的遥测端点。
每次调用的最终用户归属
多用户 MCP 主机(如 Slack、Discord 和 Teams 机器人)可以运行一个长期存在的 @findtime/mcp-server 子进程,同时仍将每次 Time API 调用归属于触发该调用的最终用户。在 MCP 工具调用的 arguments 对象中添加一个可选的 _endUserId 字段。服务器会从工具参数中剥离 _endUserId,并仅将其作为上游的 X-Findtime-End-User-ID HTTP 标头转发。
await client.callTool({
name: "get_current_time",
arguments: {
city: "Tokyo",
_endUserId: "a3f2c1d4e5b6c7d8"
}
});该字段是可选的,并且向后兼容。如果 _endUserId 缺失、为 null 或空字符串,则省略该标头,归属将回退到安装级别的 FINDTIME_MCP_CLIENT_ID 或 FINDTIME_MCP_INSTALL_ID 行为。
隐私约定:_endUserId 必须是 MCP 主机提供的不透明令牌,通常是平台用户 ID 的 SHA-256 哈希,截断为 16-32 个十六进制字符。请勿发送原始电子邮件地址、姓名、Slack/Discord/Teams ID 或其他 PII。避免此字段中出现 PII 是主机应用程序的责任。
服务器会防御性地验证 _endUserId:它必须是字符串,最多 256 个字符,并且不得包含 CR、LF 或其他控制字符。服务器绝不会记录原始值。
Cursor
{
"mcpServers": {
"findtime": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@findtime/mcp-server"],
"env": {
"FINDTIME_MCP_CLIENT_TYPE": "cursor",
"FINDTIME_TIME_API_BASE_URL": "https://time-api.findtime.io",
"FINDTIME_TIME_API_KEY": "YOUR_FINDTIME_SECRET_KEY"
}
}
}
}Codex
[mcp_servers.findtime]
command = "npx"
args = ["-y", "@findtime/mcp-server"]
enabled = true
[mcp_servers.findtime.env]
FINDTIME_MCP_CLIENT_TYPE = "codex"
FINDTIME_TIME_API_BASE_URL = "https://time-api.findtime.io"
FINDTIME_TIME_API_KEY = "YOUR_FINDTIME_SECRET_KEY"
# Optional enterprise install binding:
# FINDTIME_BINDING_TYPE = "workspace_id"
# FINDTIME_BINDING_VALUE = "YOUR_WORKSPACE_ID"Claude Desktop
{
"preferences": {
"...": "keep your existing preferences here"
},
"mcpServers": {
"findtime": {
"command": "npx",
"args": ["-y", "@findtime/mcp-server"],
"env": {
"FINDTIME_TIME_API_BASE_URL": "https://time-api.findtime.io",
"FINDTIME_TIME_API_KEY": "YOUR_FINDTIME_SECRET_KEY"
}
}
}
}Claude CLI / Claude Code
使用以下命令添加 findtime.io:
claude mcp add --transport stdio \
--env FINDTIME_TIME_API_BASE_URL=https://time-api.findtime.io \
--env FINDTIME_TIME_API_KEY=YOUR_FINDTIME_SECRET_KEY \
--env FINDTIME_MCP_CLIENT_TYPE=claude-cli \
findtime -- npx -y @findtime/mcp-server如果您的 Claude CLI 改用 JSON 配置,请添加:
{
"mcpServers": {
"findtime": {
"command": "npx",
"args": ["-y", "@findtime/mcp-server"],
"env": {
"FINDTIME_TIME_API_BASE_URL": "https://time-api.findtime.io",
"FINDTIME_TIME_API_KEY": "YOUR_FINDTIME_SECRET_KEY",
"FINDTIME_MCP_CLIENT_TYPE": "claude-cli"
}
}
}
}对于企业安装,最低凭据始终是 API 密钥。如果安装环境具有稳定的工作区或安装标识符,可以选择添加:
FINDTIME_BINDING_TYPE=workspace_id
FINDTIME_BINDING_VALUE=YOUR_WORKSPACE_ID对于特定于 Slack 的安装:
FINDTIME_BINDING_TYPE=slack_team
FINDTIME_BINDING_VALUE=T01ABC123验证安装
首先使用显式的工具调用提示:
Use the findtime.io MCP tool get_api_diagnostics.然后:
Use the findtime.io MCP tool get_current_time for city "Tokyo" with countryCode "JP".成功后,切换回正常的自然语言提示:
Best meeting time between New York, Sydney, and Mumbai?本地开发
直接运行工作区版本:
npm run mcp:start服务器会尝试从以下位置加载 .env.development.local、.env.development、.env.local 和 .env:
当前工作目录
services/mcp-server仓库根目录
测试
协议和传输测试:
npm run test:mcp-server实时生产一致性冒烟测试:
npm run test:mcp-server:smoke冒烟测试套件检查:
search_timezonesanswer_time_questionget_current_timeget_dst_scheduleconvert_timeget_overlap_hoursfind_meeting_timeget_location_by_id
维护者发布流程
此包的规范公共源现在位于:
GitHub:
https://github.com/hkchao/findtime-mcp-servernpm:
@findtime/mcp-serverOfficial MCP Registry:
https://registry.modelcontextprotocol.io/?q=io.github.hkchao%2Ffindtime-mcp-server
发布和版本更新应来自该公共仓库,而不是此私有应用仓库。
公共仓库中的标准发布流程:
npm test
npm pack --dry-run
npm publish --access public此仓库中相应的本地验证检查是:
npm run test:mcp-server
npm run mcp:pack请将此仓库视为最初生成 MCP 包的实现源,而不是规范的公共发布源。
Available Tools
15 toolsanswer_time_questionARead-onlyIdempotentInspect
PREFERRED entry point for vague, messy, or mixed time/timezone/scheduling questions. findtime.io classifies intent and dispatches internally. Use this when the user gives a raw natural-language prompt with a day or date qualifier, such as "Tuesday", "next Friday", "tomorrow", "tonight", "this weekend", "in 3 weeks", or "last Monday". Do not use this to dump structured from/to/time fields; call convert_time, get_current_time, or find_meeting_time when those arguments are already known. If a city is unknown or ambiguous, read candidates and call search_timezones rather than guessing.
Inputs: query (required), now, date, locale, +2 more.
are_they_awakeARead-onlyIdempotentInspect
Say whether people in other cities are in work, awake, or sleep at a moment. Use for "3pm for me — can I ping Bangalore?". myTime defaults to now. Pass myTimezone as an IANA id or myCity as a place. Paste shareText. A rough window includes a plannerUrl with better aiSlots.
Inputs: date, myCity, myTime, workEnd, +7 more.
check_proposed_timeARead-onlyIdempotentInspect
Judge a proposed meeting instant for each city. Use when the user already has a clock time, such as "Tuesday 9am PT with London and Tokyo — is that bad?". Pass start as an ISO instant, or as a floating local time with home set to an IANA timezone. Paste shareText. Time API computes the UTC instant, local lines, verdicts, and up to three better aiSlots. Do not invent wall-clock times. If context is set, tell the user that sentence. It says whether daylight saving skipped the local time or made it happen twice.
Inputs: start (required), date, home, workEnd, +5 more.
convert_timeARead-onlyIdempotentInspect
Convert a source timezone local time into one or more target locations. Requires structured from, to, and time. Do not pass a whole sentence as from or to; use answer_time_question for vague prompts. If a city is unknown or ambiguous, call search_timezones and retry with a candidate suggestedQuery or countryCode instead of guessing. date may be ISO YYYY-MM-DD, or time may include a simple human date phrase such as "3pm Tuesday". When presenting results, copy localTime.weekday, localTime.date, localTime.time12h/time24h, timezone abbreviation, and UTC offset exactly from the tool output; do not recompute or shift day names during synthesis. Route vague or mixed-intent raw prompts to answer_time_question.
Inputs: to (required), from (required), time (required), date, +3 more.
find_meeting_timeARead-onlyIdempotentInspect
Return ranked meeting suggestions from the production meeting search endpoint. Use when you have structured locations and, optionally, a date. date may be ISO YYYY-MM-DD or a simple human day/date value such as "Thursday", "tomorrow", or "next Friday"; findtime.io resolves it relative to the first location timezone. Paste shareText to the user. plannerUrl carries aiCities, up to three UTC aiSlots, legacy aiTime, and ref=mcp-bot. Do not invent wall-clock times. Route vague or mixed-intent raw prompts to answer_time_question.
Inputs: date, locations, _endUserId, countryCodes, +1 more.
get_api_diagnosticsARead-onlyIdempotentInspect
Return MCP and findtime Time API diagnostics: running MCP version, latest published version, API base URL, auth configuration, and live health. Call this after auth or connectivity failures. It does not answer time questions.
Inputs: _endUserId.
get_current_timeARead-onlyIdempotentInspect
Return the production current time payload for a single already-identified city, query, or IANA timezone. Do not use this for conversions, overlaps, or meeting search. If the city is unknown or could be more than one place, call search_timezones and retry with suggestedQuery or countryCode; do not guess. Exact country-name queries may be retried through a canonical city when the resolver can do so deterministically. For relative-date inputs ("Tuesday", "next Friday", "tomorrow", "tonight"), route to answer_time_question.
Inputs: city, query, timezone, _endUserId, +3 more.
get_dst_scheduleARead-onlyIdempotentInspect
Return the production DST schedule payload, including current abbreviation and transition details. For relative-date inputs ("this week", "next Friday", "tomorrow"), route to answer_time_question, which resolves the relative date and dispatches internally.
Inputs: at, city, year, query, +3 more.
get_findtime_helpARead-onlyIdempotentInspect
Return enterprise-friendly findtime.io MCP usage help, including supported time-intelligence intents, answer API examples, ambiguity handling examples, and recommended answer-only deployment guidance.
Inputs: _endUserId.
get_location_by_idARead-onlyIdempotentInspect
Hydrate an exact production location record by stable findtime id returned from search_timezones. Do not invent ids. If search_timezones has not been called, call it first.
Inputs: id (required), _endUserId.
get_overlap_hoursARead-onlyIdempotentInspect
Return shared business-hours overlap across multiple locations using the production overlap endpoint. Use when you have structured locations and, optionally, a date. date may be ISO YYYY-MM-DD or a simple human day/date value such as "Thursday", "tomorrow", or "next Friday"; findtime.io resolves it relative to the first location timezone. Route vague or mixed-intent raw prompts to answer_time_question.
Inputs: locations (required), date, _endUserId, countryCodes.
rank_recurring_slotARead-onlyIdempotentInspect
Score who a weekly wall-clock time punishes, including a daylight-saving week when one falls in the next 26 weeks. Use for "Monday 9am PT standup for San Francisco, London, and Bangalore". weekday is a day name. time is a clock such as 9am. home is the IANA timezone of that clock. Paste shareText. The kinder slot and plannerUrl come from the meeting engine. If a week has context, tell the user that sentence. It says whether daylight saving skipped that local time or made it happen twice.
Inputs: home (required), time (required), weekday (required), now, +7 more.
search_timezonesARead-onlyIdempotentInspect
Disambiguate a city, country, abbreviation, or timezone before calling other tools. Use this when a lookup is unknown or ambiguous, then retry get_current_time, convert_time, or find_meeting_time with candidate.suggestedQuery, candidate.suggestedId, or countryCode. This does not return the current time.
Inputs: query (required), limit, _endUserId, countryCode, +2 more.
send_feedbackAInspect
Report a wrong, incomplete, or unhelpful findtime.io MCP answer. Call this after a tool result that you or the user judged incorrect. Required: tool, query, and whatWasWrong. Optional: expectedAnswer. Only the tool name is sent to findtime.io; the query, expected answer, and other free text stay local and are discarded. Never send names, emails, phone numbers, IP addresses, or raw user ids.
Inputs: tool (required), query (required), whatWasWrong (required), _endUserId, +1 more.
time_snapshotCRead-onlyIdempotentInspect
Return the production time snapshot payload for one location or a list of locations.
Inputs: query, locations, _endUserId, countryCode, +2 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 15 tools
Most tools target clearly distinct time-intelligence operations, and descriptions explicitly route vague prompts to answer_time_question versus structured inputs to specific tools. However, time_snapshot versus get_current_time, and are_they_awake versus check_proposed_time, require careful reading to distinguish. The umbrella answer_time_question also intentionally overlaps many tools, which is helpful but adds some selection ambiguity.
Names are predominantly snake_case and verb-led, such as get_current_time, convert_time, find_meeting_time, and search_timezones. Minor deviations include the noun-only time_snapshot and the question-style are_they_awake. Overall the convention is predictable despite a few exceptions.
The 15 tools are well matched to the server's broad time and scheduling domain, covering lookup, conversion, DST, overlap, meeting search, proposed-time checks, recurring slots, diagnostics, help, and feedback. No obvious filler tools appear, and the count stays within a reasonable range for the scope.
The surface covers the full lifecycle of timezone and meeting questions: disambiguation, location hydration, current time, conversion, DST schedules, overlap hours, meeting finding, proposed-time judging, recurring-slot ranking, awake checks, natural-language Q&A, diagnostics, and feedback. There are no obvious dead ends for the stated domain.
Maintenance
Related MCP Connectors
A real clock for AI agents: current time, timezone conversion, and DST facts from the IANA tzdb.
Current time, timezone conversion & date math for AI agents. On Cloudflare Workers.
Deterministic time tools for AI agents: timezone conversion, business-day math, cron interpretation.
Convert times across timezones with DST, and find meeting slots across working hours and holidays.
Related MCP Servers
- AlicenseBqualityDmaintenanceGives large language models time awareness capabilities through various time-related functions including current time retrieval, timezone conversion, and relative time calculations.6MIT
- AlicenseBqualityDmaintenanceProvides time and timezone functionality for LLMs, enabling them to get current time information across different timezones and convert times between zones.2MIT
- FlicenseNot gradedqualityDmaintenanceEnables LLMs to get current time information for any timezone worldwide, including available regions, cities, and ISO 8601 formatted timestamps with timezone offsets.8-
- AlicenseBqualityDmaintenanceProvides current time information and timezone conversion capabilities using IANA timezone names with automatic system detection. It enables LLMs to fetch local or global times and convert specific timestamps between different regions.22MIT