Skip to main content
Glama
OS Agent MCP Server

OS Agent MCP Server

OS Agent MCP Server

Small local MCP server for OS tasks. It gives an agent tools for finding files, reading and writing text, moving and deleting paths, checking terminal processes, and opening a terminal in a directory.

The tools return ordinary paths and short results, so an agent can use one result as the input for the next call. For example, it can find a project and open a terminal in that project directory.

Requirements

  • Python 3.10 or newer

  • The dependencies installed in the existing .venv

Related MCP server: vighnesh-agentic-terminal-mcp

Run it

From the project directory, activate the virtual environment:

.\.venv\Scripts\Activate.ps1

Limit the server to the current project directory:

$env:MCP_ALLOWED_ROOTS = (Get-Location).Path

Then start the server:

os-agent-mcp

The server uses stdio, so it waits for an MCP client and does not print a normal command prompt message. It is configured for VS Code in .vscode/mcp.json.

To install or repair the project dependencies in the existing environment:

python -m pip install -e ".[dev]"

Development

python -m pytest

The tests cover the file search, file writing, and path permission behavior.

Available Tools

8 tools
delete_pathA

Delete a file, or an empty directory unless recursive=true is provided.

Inputs: path (required), recursive. Returns: result

launch_terminalB

Open a new terminal in a directory and optionally run one command.

Inputs: path, command. Returns: result

list_directoryA

List immediate children with their type and size.

Inputs: path, include_hidden. Returns: result

list_open_terminalsA

List likely terminal processes currently running on this machine.

Inputs: no named parameters. Returns: result

move_pathB

Move a file or directory within the configured local roots.

Inputs: source (required), destination (required). Returns: result

read_text_fileB

Read a UTF-8 text file, capped to keep tool responses manageable.

Inputs: path (required), max_chars. Returns: result

search_filesA

Find files below a directory using a glob such as '.py' or 'README'.

Inputs: path (required), pattern. Returns: result

write_text_fileB

Create a UTF-8 text file, refusing to overwrite unless asked explicitly.

Inputs: path (required), content (required), overwrite. Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.8/5.0

    Scored across 8 tools

    Disambiguation5/5

    Each tool targets a distinct operation: file search, directory listing, read/write, move/delete, and terminal listing/launch. There is no meaningful overlap, and the search/list distinction is clear.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun snake_case pattern, such as search_files, read_text_file, and launch_terminal. The style is uniform and predictable.

    Tool Count5/5

    Eight tools is well-scoped for an OS agent covering filesystem operations and terminal launching. Each tool earns its place without redundancy or bloat.

    Completeness4/5

    The filesystem surface covers search, list, read, write, move, and delete well, and terminal launch is covered. Minor gaps exist such as no explicit directory creation, copy operation, or terminal process termination, but core workflows are supported.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables secure local filesystem operations and interactive terminal sessions for AI assistants. Provides 12 tools for file management, directory operations, code searching, and running interactive REPLs with security protections.
      34 npm
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI clients to search, read, edit, and manage files and directories, execute and control terminal commands and processes, and perform code or text searches and replacements. It also supports in-memory code execution and interactive process sessions for tasks like data analysis and long-running command management.
      2
      MIT
    • A
      license
      C
      quality
      B
      maintenance
      Enables AI agents to list, read, inspect, write, and precisely edit files and to regex-search a workspace, with every path confined to a sandboxed root directory. Token-saving output such as line-range reads and match locations without line content keeps context use low while guarded writes and ambiguous edits prevent accidental data loss.
      6
      MIT