🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

tradetime-mcp

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tradetime-mcp

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.

latest
npmnpm
Version
0.1.2
Version published
Weekly downloads
62
63.16%
Maintainers
1
Weekly downloads
 
Created
Source

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.

ToolAnswers
is_market_openIs <exchange> open now (or at a given at time)? Open flag + status + time-to-close.
get_exchange_statusFull live status (status enum, session type, hours-to-next, why-closed).
markets_open_nowWhich of the world's exchanges are open right now?
time_until_next_openHours until <exchange> next opens (weekends & holidays skipped), or until it closes if open.
list_exchangesList exchanges (optionally by region) — discover valid ids.
get_exchangeFull record: sessions, holidays, early closes, sources.
get_holidaysClosure calendar (holidays + early closes).
get_trading_sessionsPre / 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.

Keywords

mcp

FAQs

Package last updated on 06 Jul 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts