MCP CLI Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP CLI Serverstart a process to ping google.com"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP CLI Server
An MCP server that provides tools to interact with CLI applications.
@author: Claudio Alarcon clalarco@gmail.com
Requirements
uvfor execution. Check https://docs.astral.sh/uv/ for installation instructions.npm(optional) to use the MCP inspector. Check https://docs.npmjs.com/ for installation instructions.
Related MCP server: mcpdeployment
MCP Tools
start_process(command: str): Start a new process.stop_process(pid: str): Stop a running process.is_alive(pid: str): Check if a process is running.write_input(pid: str, text: str): Send input to a process.read_output(pid: str): Read output from a process.get_processes(): Get a list of all processes.
MCP Configuration
Local repository configuration:
{
"mcpServers": {
"cli": {
"command": "uv",
"args": ["--directory", "/path/to/mcp-cli", "run", "mcp-cli"]
}
}
}Using it from Github:
{
"mcpServers": {
"cli": {
"command": "uvx",
"args": ["--from", "git+https://github.com/clalarco/mcp-cli", "mcp-cli"]
}
}
}Using MCP inspector
Having npm installed, run:
Local repository:
npx -y @modelcontextprotocol/inspector uv run mcp-cliFrom github:
npx -y @modelcontextprotocol/inspector uvx --from git+https://github.com/clalarco/mcp-cli mcp-cliMaintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/clalarco/mcp-server-for-cli'
If you have feedback or need assistance with the MCP directory API, please join our Discord server