Skip to main content

An MCP which adds terminal capabilities to an agent

Project description

MCP Agentic Terminal

MCP Agentic Terminal is a lightweight terminal automation server built with FastMCP that exposes powerful local system tools through the Model Context Protocol (MCP).

It enables AI agents and MCP-compatible clients to safely interact with the local operating system by executing shell commands, running Python code, managing files, and performing filesystem operations programmatically.

Features

  • Execute bash commands
  • Run inline Python code
  • Execute Python files
  • Read and write files
  • Create and delete directories
  • List directory contents
  • Search files using glob patterns
  • Search text patterns inside files
  • Delete files and folders
  • STDIO-based MCP transport support

Included Tools

Terminal Execution

  • bash(command)

    • Execute shell commands and return stdout/stderr.

Python Execution

  • python_code(code)

    • Execute inline Python code.
  • python_file(file)

    • Execute Python scripts directly.

File Operations

  • read_file(file)

    • Read file contents.
  • write_file(file, content)

    • Create or overwrite files.
  • delete_file(file)

    • Remove files.

Directory Operations

  • create_directory(directory)

    • Create directories recursively.
  • list_directory(directory)

    • List files and folders.
  • delete_folder(folder)

    • Delete folders recursively.

Search Utilities

  • glob(pattern)

    • Match filesystem patterns.
  • grep(pattern, file)

    • Search for text patterns inside files.

Usage

Run the MCP server:

python main.py

Or:

uv run main.py

The server uses STDIO transport by default and can be connected to any MCP-compatible client.

Example MCP Client Configuration

from langchain_mcp_adapters.client import MultiServerMCPClient

client = MultiServerMCPClient(
    {
        "mcp_agentic_terminal": {
            "transport": "stdio",
            "command": "uvx",
            "args": ["mcp_agentic_terminal"],
        }
    }
)

Use Cases

  • AI coding assistants
  • Autonomous development agents
  • Local task automation
  • File system orchestration
  • AI-powered DevOps workflows
  • Secure local execution environments

Tech Stack

  • FastMCP
  • Python
  • MCP (Model Context Protocol)

License

MIT License

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcp_agentic_terminal-0.1.3.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcp_agentic_terminal-0.1.3-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file mcp_agentic_terminal-0.1.3.tar.gz.

File metadata

  • Download URL: mcp_agentic_terminal-0.1.3.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"25.10","id":"questing","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for mcp_agentic_terminal-0.1.3.tar.gz
Algorithm Hash digest
SHA256 babffaa824430fdd1a88ffbfdae731ecf163141ca85b589ac6338d260024d7b5
MD5 03562e0ea0234a21b069c63b2fac3491
BLAKE2b-256 efb71961b299249b14783ad137159186fe46103253f958db98c74e981ee422f8

See more details on using hashes here.

File details

Details for the file mcp_agentic_terminal-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: mcp_agentic_terminal-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"25.10","id":"questing","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for mcp_agentic_terminal-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 bb62a3284392549b7b9c35841d4ec5023204189e7378dfbc1976a1c639d774bc
MD5 c19794e64e4d0a092548cf7f73796210
BLAKE2b-256 fa040e68b2413ec389172c6baf146b2ffb0b7215a961afbca6166ae2d10b3fa7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page