About local-command-server MCP Server
A TypeScript MCP server for executing commands and returning structured output. It is intended for MCP clients that need to run a command through a single tool.
Key features
- 01Execute a command through `execute_command`
- 02Return structured command output
Use cases
- 01Run a command from an MCP client
- 02Read structured output from a command
MCP support
Exposes the `execute_command` tool to MCP clients. The tool accepts a command and returns structured output.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMElocal-command-server MCP Server
This is a TypeScript-based MCP server that executes commands and returns structured outputs.
Features
Tools
execute_command- Execute a command and return structured output- Takes a
commandas a required parameter - Returns structured output from the command
- Takes a
Development
Install dependencies:
npm install
Build the server:
npm run build
For development with auto-rebuild:
npm run watch
Installation
To use with Claude Desktop, add the server config:
On MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
On Windows: %APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"local-command-server": {
"command": "/path/to/mcp-local-command-server/build/index.js"
}
}
}
Debugging
Since MCP servers communicate over stdio, debugging can be challenging. We recommend using the MCP Inspector, which is available as a package script:
npm run inspector
The Inspector will provide a URL to access debugging tools in your browser.
License
MIT
Author
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.