Skip to main content
Glama

Windows Command Line MCP Server

execute_command

Run approved Windows commands and retrieve output securely using the Windows Command Line MCP Server. Supports basic commands like 'dir' and 'echo' with configurable working directory and timeout settings.

Instructions

Execute a Windows command and return its output. Only commands in the allowed list can be executed. This tool should be used for running simple commands like 'dir', 'echo', etc.

Input Schema

NameRequiredDescriptionDefault
commandYesThe command to execute
timeoutNoTimeout in milliseconds
workingDirNoWorking directory for the command

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "command": { "description": "The command to execute", "type": "string" }, "timeout": { "default": 30000, "description": "Timeout in milliseconds", "type": "number" }, "workingDir": { "description": "Working directory for the command", "type": "string" } }, "required": [ "command" ], "type": "object" }

Other Tools from Windows Command Line MCP Server

Related Tools

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/alxspiker/Windows-Command-Line-MCP-Server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server