• MATH
  • ACCURACY
  • SPEED
  • HUMAN

How to set Redis TTL values with your AI

Connect the Time MS Converter to your AI client to turn natural language timeframes into precise Redis-ready integers.

Ask AI about this page

Short answer

How do I convert human time to Redis milliseconds?

Just tell your AI how long a key should live, such as '45 minutes' or '2 weeks'. The AI uses the converter tool to output the exact millisecond integer required for your Redis SET or EXPIRE commands. You get the math done instantly without manual calculation.

The outcomes

What you get from this task.

The AI handles the math so you can focus on your logic.

MATH

Instant integer conversion

The AI uses convert_time to turn phrases into numbers. You get the exact millisecond value for your code.

ACCURACY

Zero calculation errors

Manual math for '3 weeks' is easy to mess up. The AI provides the correct integer every time.

SPEED

Faster command writing

Stop reaching for a calculator or a website. Just type the duration in your chat and keep moving.

HUMAN

Review the final value

The AI gives you the number, but you decide if that's the expiration you actually intended for your database.

The workflow

What your AI does when the duration arrives.

The AI acts as a bridge between your intent and the Redis protocol.

  1. Parse duration

    Your AI reads your natural language input, like 'two days', and identifies the time unit.

    convert_time
  2. Calculate milliseconds

    The AI runs the duration through the converter to find the millisecond equivalent.

    convert_time
  3. Format for Redis

    The AI prepares the integer so it's ready to be dropped directly into a command.

    convert_time
  4. Deliver result

    The AI presents the final number to you in the chat interface.

    convert_time

Try it

Copy these to start.

Use these prompts to get immediate results.

Starting points

Swap out the durations in these examples for whatever you need to calculate.

Vercel MS Connector

You're all set. Choose your MCP client and follow the setup instructions.

Connector linkhttps://edge.vinkius.com/vk_preview_S7PQwqoHoVj0JZh3xtk4XHF7cuf1vKFM4kk7YbdT/mcp

Claude Desktop

Follow the steps below to connect in seconds.

  1. 1In Claude Desktop, open Settings → Connectors.
  2. 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
  3. 3Click Add and start a new chat — Vercel MS capabilities are ready to use.
Configuration · claude_desktop_config.jsonCopy
{
  "mcpServers": {
    "time-ms-converter-mcp": {
      "url": "https://edge.vinkius.com/vk_preview_S7PQwqoHoVj0JZh3xtk4XHF7cuf1vKFM4kk7YbdT/mcp"
    }
  }
}
Copy into chat04
  • Convert '4 hours' to milliseconds for a Redis TTL.

  • How many milliseconds is '3 days' for my key expiration?

  • I need a Redis TTL for '15 minutes'. Give me the integer.

  • Calculate the millisecond value for '1 month' to use in my database.

  • Claude
  • ChatGPT
  • Cursor
  • VS Code
  • Windsurf
  • Claude Code
  • JetBrains
  • Cline

Start here

Connect Time MS Converter once, then ask.

One click connects this MCP to your client. Your credentials stay encrypted and the setup is handled on our end.

Connect Time MS Converter to your AI

FAQ

Common questions

  • 01

    Can the AI update my Redis database directly?

    No. The AI only provides the millisecond integer. You must take that number and run the command in your own environment.

  • 02

    Does it handle complex durations like '2 days and 4 hours'?

    Yes. The AI can parse combined time durations into a single millisecond total.

  • 03

    Can the AI change my existing Redis keys?

    No. This MCP is strictly for time conversion. It has no access to your database or your keys.

  • 04

    Will it work with any AI client?

    Yes, as long as you are using an MCP-compatible client like Claude, Cursor, or Windsurf.

  • 05

    Does it support seconds or just milliseconds?

    The tool specifically converts any duration into milliseconds, which is what Redis requires for many operations.

  • More questions about Time MS Converter? The Connector page answers them. See everything the Time MS Converter Connector can do

Connect Vercel MS to Claude, Cursor, ChatGPT & more