Swift implementation of time server
## Time Swift MCP Server: Time Zone and Date Utilities The **Time Swift MCP Server** provides comprehensive time zone handling and date manipulation capabilities directly within Google Antigravity, enabling AI assistants to convert, calculate, and format times programmatically. This integration brings robust time operations to your development workflow. ### Why Time Swift MCP? - **Time Zone Conversion**: Convert times between any of the world time zones - **Date Arithmetic**: Add, subtract, and calculate differences between dates - **Format Flexibility**: Parse and format dates in any locale and format - **Business Days**: Calculate business days accounting for holidays - **Recurring Events**: Handle recurring date patterns and schedules ### Key Features #### 1. Time Zone Conversion ```python from anthropic import Anthropic client = Anthropic() response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Convert 3pm EST to all major time zones for our global team meeting" }], tools=[{ "name": "timeswift_convert", "description": "Convert time zones" }] ) ``` #### 2. Date Calculations ```python # Calculate date differences response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Calculate business days between now and the project deadline" }], tools=[{"name": "timeswift_calculate", "description": "Date calculations"}] ) ``` #### 3. Format Conversion ```python # Format dates response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Format this timestamp as ISO 8601 and human-readable formats" }], tools=[{"name": "timeswift_format", "description": "Format dates"}] ) ``` #### 4. Schedule Generation ```python # Generate schedules response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Generate next 10 occurrences of our bi-weekly Monday standup" }], tools=[{"name": "timeswift_schedule", "description": "Generate schedules"}] ) ``` ### Configuration ```json { "mcpServers": { "time-swift": { "command": "npx", "args": ["-y", "@anthropic/mcp-time-swift"], "env": { "DEFAULT_TIMEZONE": "UTC" } } } } ``` ### Use Cases **Global Scheduling**: Coordinate meetings across multiple time zones. **Deadline Tracking**: Calculate business days and deadline dates accurately. **Event Planning**: Generate recurring event schedules with holiday awareness. **Data Processing**: Parse and format timestamps for data pipelines. The Time Swift MCP Server brings comprehensive time utilities directly into your development workflow, enabling robust date and time handling.
{
"mcpServers": {
"time-swift": {
"mcpServers": {
"time-swift": {
"command": "swift-mcp-time"
}
}
}
}
}