Skip to main content
Glama
stuck1a

terminal-mcp

by stuck1a

Terminal MCP

A secure Model Context Protocol (MCP) server providing controlled terminal access for AI assistants such as:

  • LM Studio

  • Claude Desktop

  • Cursor

  • Windsurf

  • Continue

  • Any MCP-compatible client


Features

  • Execute whitelisted commands

  • Configurable working directory

  • Configurable timeout

  • Output size limit

  • Windows support

  • Linux support

  • Asynchronous execution

  • MCP compliant


Related MCP server: cmd-line-mcp

Installation

Requirements

  • Python 3.11+

  • pip

Install:

pip install .

or

pip install -e .

Running

terminal-mcp

or

py -m terminal_mcp.server

Example MCP configuration

{
    "mcpServers": {
        "terminal": {
            "command": "terminal-mcp"
        }
    }
}

Example prompt

Run pytest.

or

Build the project.

or

Run black on the repository.

Security

The server intentionally restricts what can be executed.

Allowed commands are configurable.

Commands outside the whitelist are rejected.

Timeouts prevent hanging processes.

Output is truncated after a configurable limit.


License

MIT

A
license - permissive license
-
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    B
    quality
    D
    maintenance
    A secure MCP server for executing whitelisted shell commands with resource and timeout controls, designed for integration with Claude and other MCP-compatible LLMs.
    Last updated
    20
    377
    7
    MIT
  • A
    license
    B
    quality
    C
    maintenance
    A secure Model Context Protocol server that allows AI assistants to execute terminal commands with controlled directory access and command permissions. It features a robust security architecture including whitelisting, session IDs, and categorized command levels to ensure safe system interaction.
    Last updated
    8
    MIT
  • F
    license
    A
    quality
    D
    maintenance
    A lightweight MCP server that provides AI assistants with access to a system's terminal through a secure terminal tool. It enables users to execute shell commands and receive stdout, stderr, and exit codes directly within an MCP-compatible client.
    Last updated
    1

View all related MCP servers

Related MCP Connectors

  • MCP server for Gainium — manage trading bots, deals, and balances via AI assistants

  • Security scanner for MCP servers. Detect vulnerabilities, prompt injection, and tool poisoning.

  • MCP server for AI dialogue using various LLM models via AceDataCloud

View all MCP Connectors

Latest Blog Posts

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/stuck1a/terminal-mcp'

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