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(
    {
        "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.2.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.2-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mcp_agentic_terminal-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 0ff1f9e98a4fb5db22f36de1e288484b115d3e1802a681c4f0b7f9b620643696
MD5 df39aaa3424c6c5e288915a96d696ad3
BLAKE2b-256 5e986215de33a33ce677686a7e25746e0111b23439ccdab0a52f7fd816c946ef

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mcp_agentic_terminal-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 dcce8825599d8a378e6d95b9ac984c8c886e960930038c1a8038c94d2a6608d8
MD5 03f7b2ce6de408191f1a346fc4b9930b
BLAKE2b-256 7d28633753a3d68abd85762077d499533587e869610d53f9c4b98d262e9bf6bf

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