npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

tradetime-mcp

v0.1.2

Published

MCP server for global stock-exchange trading hours — is a market open right now, when it next opens, holidays, sessions. Powered by TradeTi.me. No API key.

Readme

tradetime-mcp

npmjs.com/package/tradetime-mcp · v0.1.2 · MIT · npx -y tradetime-mcp

An MCP server for global stock-exchange trading hours. Ask any LLM agent (Claude, Cursor, …) "is the NYSE open right now?", "which markets are trading?", "when does Tokyo next open?" — plus holidays and session times. Read-only, no API key. Powered by TradeTi.me; the same engine behind api.tradeti.me.

Install

npx-run over stdio — nothing to install globally. Add the server to your MCP client, restart it, and the tradetime tools appear. No key, no account.

Claude Desktop — add to claude_desktop_config.json:

{
  "mcpServers": {
    "tradetime": {
      "command": "npx",
      "args": ["-y", "tradetime-mcp"]
    }
  }
}

Claude Code (CLI):

claude mcp add tradetime -- npx -y tradetime-mcp

VS Code:

code --add-mcp '{"name":"tradetime","command":"npx","args":["-y","tradetime-mcp"]}'

Cursor · Cline · Windsurf · any stdio client — paste the same mcpServers block into the client's MCP config.

Hosted remote server: a URL-based endpoint at https://mcp.tradeti.me/mcp (Streamable HTTP) — the same 8 tools for clients that connect to a URL instead of spawning npx. Keyless.

Tools

All eight tools are read-only and idempotent (annotated readOnlyHint / idempotentHint, openWorldHint:false) — a client can safely auto-approve them; the worst any call does is answer a question.

| Tool | Answers | |------|---------| | is_market_open | Is <exchange> open now (or at a given at time)? Open flag + status + time-to-close. | | get_exchange_status | Full live status (status enum, session type, hours-to-next, why-closed). | | markets_open_now | Which of the world's exchanges are open right now? | | time_until_next_open | Hours until <exchange> next opens (weekends & holidays skipped), or until it closes if open. | | list_exchanges | List exchanges (optionally by region) — discover valid ids. | | get_exchange | Full record: sessions, holidays, early closes, sources. | | get_holidays | Closure calendar (holidays + early closes). | | get_trading_sessions | Pre / main / post session hours in exchange-local time. |

exchange accepts an id (nyse, nasdaq, lse, nikkei, hkex, …) or a name/city ("New York Stock Exchange", "Tokyo"), case-insensitive. Pass at (ISO 8601, e.g. 2026-07-06T14:30:00Z) to any time-based tool to evaluate a specific moment — great for "will X be open at Y?".

Example call → response

is_market_open({ "exchange": "nyse" }) returns:

{
  "exchange": "nyse",
  "name": "NYSE",
  "open": true,
  "status": "main_open",
  "timeToNextHours": 0,
  "timeToCloseHours": 5.5,
  "closedReason": null,
  "asOf": "2026-07-06T14:30:00.000Z"
}

When closed, open is false, closedReason is "weekend" / "holiday" (or null after-hours on a trading day), and timeToNextHours counts to the next open with weekends and holidays already skipped.

Example conversation

You: Is the London Stock Exchange open right now, and if not when does it open? Agent (calls is_market_opentime_until_next_open): The LSE is currently closed; it next opens in about 12 hours (weekends and holidays skipped).

Notes

  • Times are exchange-LOCAL facts — an exchange's open/close/holidays don't shift with your timezone.
  • The data is a convenience, not an authoritative or real-time feed. It follows published trading calendars and doesn't know about unscheduled halts. Verify with the exchange before any time-sensitive or financial decision.
  • License: MIT. Docs + REST API + a runnable playground: https://tradeti.me/developers/mcp.