Skip to main content
Glama

Windows Command Line MCP Server

execute_command

Run permitted Windows commands like 'dir' or 'echo' and retrieve output securely via the Windows Command Line MCP Server. Specify command, directory, and timeout for controlled execution.

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" }

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