OS Agent MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@OS Agent MCP Server Find all Python files in my project and open a terminal in that directory."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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.ps1Limit the server to the current project directory:
$env:MCP_ALLOWED_ROOTS = (Get-Location).PathThen start the server:
os-agent-mcpThe 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 pytestThe tests cover the file search, file writing, and path permission behavior.
Available Tools
8 toolsdelete_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
Scored across 8 tools
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.
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.
Eight tools is well-scoped for an OS agent covering filesystem operations and terminal launching. Each tool earns its place without redundancy or bloat.
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
Related MCP Connectors
Use your Mac, Windows or Linux computer from ChatGPT, Claude or Codex: files, commands, documents.
Safe folder access for ChatGPT and Claude: read, write and search files, risky tools opt-in.
Use your own Windows, Mac or Linux computer from ChatGPT, Claude, Cursor or Gemini CLI: run commands, read, write and search files, run long processes. Your computer only makes an outgoing connection (no open ports or VPN). Read-only mode, allowed folders, blocked commands and an action log keep you in control. Free plan available.
Operate Linux, macOS and Windows from your LLM. Every action runs through an auditable allowlist.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables 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 npmMIT
- FlicenseBqualityCmaintenanceEnables AI agents to execute terminal commands and Python scripts, search and manage files, and create or delete folders through the Model Context Protocol.9-
- AlicenseNot gradedqualityDmaintenanceEnables 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.2MIT
- AlicenseCqualityBmaintenanceEnables 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.6MIT