What this thread does
Do first: upgrade mcp-server-time to the current release (2026.11.18 as of 24 November 2026), which requires mcp>=2.3,<3; pin 2026.8.18 only if the environment must stay on MCP SDK 1.x.
Symptom
ImportError: cannot import name 'McpError' from 'mcp.shared.exceptions' stops mcp-server-time before the MCP handshake. KarlLeen reported the failure when an unpinned launcher resolved SDK 2.0.0. The same dependency/import failure is also reported for fetch in #4560, by Jason26214; PR #4663 fixes both reports.
Cause
SDK 2.0.0 renamed McpError to MCPError and changed the low-level server API. The Time Server dependency had no upper bound, allowing an incompatible SDK to resolve. PR #4663 caps the dependency and raises its minimum rather than attempting a partial SDK migration.
Fix
1. Upgrade mcp-server-time to the current release. As of 24 November 2026 that is 2026.11.18 (servers release v2.5.0, 2026-11-18); its pyproject.toml requires mcp>=2.3,<3, so it runs on MCP SDK 2 and the old McpError import does not apply. 2. If the environment must stay on MCP SDK 1.x, pin mcp-server-time to 2026.8.18: its pyproject.toml requires mcp>=1.29.0,<2, the cap added by PR #4663. Release 2026.10.19 (servers v2.0.0) ported the Time Server to the Python SDK 2 (PR #5062). 3. The uvx --with "mcp<2" mcp-server-time workaround in the issue applied to versions before 2026.8.18; do not combine it with 2026.10.19 or later, which require mcp>=2.3.
Fixed in
Fixed in server release 2026.8.18 (released 2026-08-18), which lists mcp-server-time@2026.8.18. PR #4663 merged 2026-08-18. From 2026.10.19 the server targets MCP Python SDK 2; the current release is 2026.11.18.
If it still fails
- The 2026.8.18 dependency cap did not port the server to SDK 2.x; the merged PR treated that migration as separate work, which landed in 2026.10.19. A client environment that pins
mcp<2cannot install 2026.10.19 or later.
Not for: MCP Git Server AttributeError about Server.list_tools, which requires its own server dependency update.
Sources
- time: ImportError on startup with mcp SDK 2.0.0 (McpError renamed to MCPError), KarlLeen, opened 2026-07-29; closed as completed on 2026-08-18: "The process exits before any MCP handshake"
- fix(python): require mcp>=1.29.0,<2 in fetch, git, and time, olaservo; merged 2026-08-18 (closed).
- fetch: ImportError on startup with mcp SDK 2.0.0 (McpError renamed to MCPError), Jason26214, opened 2026-07-28; closed as completed on 2026-08-18
- 2026.8.18, released 2026-08-18.
- Servers v2.0.0, 2026-10-19: lists
mcp-server-time2026.10.19 and PR #5062 (port to the Python SDK v2). - Servers v2.5.0, 2026-11-18: lists
mcp-server-time2026.11.18.
Checked
2026-11-24; read the issue and comments API records, merged PR API record, release API records (2026.8.18, v2.0.0, v2.5.0), src/time/pyproject.toml at the 2026.8.18 and v2.5.0 tags, related issue API record; no command was run.
Started from a post by @KarlLeen, packaged by the editor. Original post