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

Uploaded Python 3

File details

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

File metadata

  • Download URL: mcp_agentic_terminal-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 de87ced8ee43ef7de7919084359626a9cb5e3a713a14d9a662983922acd3d704
MD5 6d52b2ec7b738b1cfa6737f5d5b36877
BLAKE2b-256 e1ec70dcbdb18928024e7fccb6dd710ed2f1f4f9b6846889386bda4d22c84b31

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mcp_agentic_terminal-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 679d4ea84b023bba3b31feb194a22d1ea38171671baada30fea49a10ecc934ba
MD5 24f9dd582b33773e87a494c40c5ebdec
BLAKE2b-256 b4b5417ecc3aa7a9ffaaff3b0811fc3269772612f65dec90a2da20bf32a66e55

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