Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Env Info MCP ServerNew to Visual Studio Code? Get it now.
Env Info MCP Server

Env Info MCP Server

Asfalan

|
3 installs
| (0) | Free
Model Context Protocol server providing environment information to AI assistants
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Env Info MCP Server

A VS Code extension that provides a Model Context Protocol (MCP) server with environment information tools.

Make your AI assistant aware of the current date, time, and time zone, in order to incorporate such context into its responses and actions, e.g. let your AI assistant look at the clock in order to document when tasks have been done.

Features

GetCurrentDateTime

Returns the current date and time in ISO 8601 format with both local and UTC timestamps.

{
  "local": "2025-10-26T00:00:47.162+02:00",
  "utc": "2025-10-25T22:00:47.162Z",
  "weekOfYear": 43,
  "dayOfWeek": 7,
  "ui": { "lang": "de-DE", "dayOfWeek": "Sonntag" },
  "en": { "lang": "en", "dayOfWeek": "Sunday" }
}
  • The weekOfYear follows ISO 8601, i.e. weeks start on Monday, week 1 is the week with Jan 4th.

  • The dayOfWeek follows ISO 8601, i.e. the field represents the day of the week as a numeric value, from 1 = Monday to 7 = Sunday.

  • weekOfYear and dayOfWeek correspond to the local date.

GetCurrentTimeZone

Returns the current time zone with display names and UTC offset.

{
  "offset": "+02:00",
  "iana": "Europe/Berlin",
  "ui": {
    "lang": "de-DE",
    "abbreviation": "MESZ",
    "displayName": "Mitteleuropäische Sommerzeit"
  },
  "en": {
    "lang": "en",
    "abbreviation": "CEST",
    "displayName": "Central European Summer Time"
  }
}

A Note On All Tools

The ui key provides information in the UI language, and en provides it in English. If the UI language is English, the en key will be absent.

The server returns tool outputs in the MCP structuredContent field. Use .result.structuredContent when querying the server over stdio manually, see example below.

The name of this MCP server leaves room for extension. However, providing structured information about date, time, and time zone in a controllable/controlled manner is this far its only purpose.

Installation And Verification

After installation, check that the "Env Info MCP Server" is listed among available MCP servers by Ctrl-. and MCP: List Servers commands.

Ask your AI assistant, what is the time? VS Code should automatically start the MCP server and provide it to your AI assistant.

If the AI assistant does not seem to use the MCP server's tools, explicitly name the tools to do so. They should run without further approval.

Development

Install dependencies:

npm install

Compile the extension:

npm run compile

Run tests:

npm test

Press F5 in VS Code to run the extension in a development host. Run npm run watch to watch for changes.

List available tools manually:

echo '{"jsonrpc":"2.0","id":1,"method":"tools/list"}' \
  | node dist/mcp-server.js \
  | jq '.result.tools'

Call a tool manually, e.g., GetCurrentDateTime:

echo '{"jsonrpc":"2.0","id":10,"method":"tools/call","params":{"name":"GetCurrentDateTime","arguments":{}}}' \
  | node dist/mcp-server.js \
  | jq '.result.structuredContent'

License

Licensed under the European Union Public License (EUPL) version 1.2.

DE | EN | in 23 official languages

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft