drio
Open app

local-command-server MCP Server

Source

A TypeScript-based MCP server that executes commands and returns structured outputs.

Catalog onlyCatalog onlySTDIO

Overview

This project is a TypeScript-based MCP (Model Context Protocol) server that executes commands and returns structured outputs, allowing seamless integration with compatible applications.

To utilize the local-command-server, first, install the necessary dependencies, build the server, and then configure it in your application (e.g., Claude Desktop) using the provided configuration JSON.

  • Command execution with structured output. - Integrated debugging tools using MCP Inspector. - Easy configuration for desktop applications.
  1. Automating command execution in local environments.
  2. Integrating with applications for executing backend scripts.
  3. Providing structured output for data processing tasks.

Add to your AI client

Use these steps to connect local-command-server MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "mcp-local-command-server-kentaro": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-local-command-server-kentaro"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "mcp-local-command-server-kentaro": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-local-command-server-kentaro"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "mcp-local-command-server-kentaro": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-local-command-server-kentaro"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "mcp-local-command-server-kentaro": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-local-command-server-kentaro"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "mcp-local-command-server-kentaro": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-local-command-server-kentaro"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "mcp-local-command-server-kentaro": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-local-command-server-kentaro"
      ]
    }
  }
}

FAQ

What commands can be executed?

Any command that can be executed through the command line can be used, provided it follows the required format.

How do I set up debugging?

Use the MCP Inspector for debugging, which you can start with `npm run inspector` to access browser tools.

Is there a licensing requirement?

The project is licensed under the MIT license, making it free for use and modification.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":351,"uuid":"f2c4f7f2-27d3-4086-a625-923c755ce779","name":"mcp-local-command-server","title":"local-command-server MCP Server","description":"A TypeScript-based MCP server that executes commands and returns structured outputs.","avatar_url":"https://avatars.githubusercontent.com/u/3458?v=4","created_at":"$D2024-12-13T13:20:55.438Z","updated_at":"$D2024-12-13T15:09:08.924Z","status":"created","author_name":"kentaro","author_avatar_url":"https://avatars.githubusercontent.com/u/3458?v=4","tags":"[]","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/kentaro/mcp-local-command-server","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":null,"user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]