HostGate MCP
Click on "Install 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., "@HostGate MCPShow me the audit log for process executions in the last 24 hours"
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.
HostGate MCP
A Windows-first local capability control plane for MCP clients.
HostGate MCP gives an MCP client explicitly authorized access to selected local files and trusted command-line programs, with a desktop Control Center for policy, audit, rollback, diagnostics, and service lifecycle management.
The execution model is intentionally narrower than a general-purpose terminal: top-level cmd.exe, Windows PowerShell, and pwsh are not exposed as trusted execution tools. Allowed executables are resolved to fixed paths and launched directly.
Why HostGate exists
Reading local files through MCP is straightforward. Safely exposing write and process execution capabilities to a remote AI client is harder.
HostGate focuses on that control plane:
explicit read / write / deny roots;
transactional policy edits with diff review and rollback;
permissions hot reload without restarting the MCP service;
trusted executable allowlist with exact-path resolution;
audited direct-process execution without a general-purpose shell;
Windows Job Object process-tree containment;
local audit history, configuration revisions, policy simulation, and diagnostics;
a bilingual Windows Control Center (
zh-CN/en-US);Scheduled Task lifecycle management;
local stdio and OAuth-protected Streamable HTTP modes;
PyInstaller
onedirand portableonefileControl Center builds.
Related MCP server: MCP Local Filesystem Server
Security model
MCP client
|
| OAuth / stdio
v
HostGate MCP
|
+-- Filesystem policy
| read roots
| write roots
| deny paths
|
+-- Direct execution policy
| trusted executable allowlist
| exact path resolution
| no general-purpose shell
| stdin disabled / bounded output
| Windows Job Object lifetime
|
+-- Control plane
GUI / audit / revisions
diagnostics / rollbackImportant boundary
HostGate MCP is not an operating-system filesystem sandbox.
The filesystem policy controls HostGate's own file tools and the working directory accepted by exec_command. Once an authorized executable starts, that program and its descendants run with the OS privileges of the MCP service account and may access resources that account can access.
The executable allowlist constrains the top-level process. It does not sandbox descendants spawned by an authorized program.
Read SECURITY.md and docs/THREAT_MODEL.md before exposing the service beyond localhost.
Control Center
The Windows Control Center provides six pages:
Service — status, PID, Scheduled Task start/stop/restart.
Permissions — browse and manage read/write/deny roots.
Execution — manage trusted CLI programs.
Policy — simulate effective permissions and restore configuration revisions.
Diagnostics — validate service/config/audit/revision state and export a redacted report.
Audit — review recent file mutation and process execution events.
Policy changes use a transaction flow rather than editing TOML directly:
candidate
-> validate
-> review diff
-> stale SHA256 check
-> save previous revision
-> atomic replace
-> hot reload or controlled restart
-> health check / rollbackSafe public defaults
The repository starts fail-closed:
no read roots;
no write roots;
no user-defined deny paths (control-plane paths are denied automatically);
only the Windows
where.exeutility is trusted initially;OAuth URLs point to
127.0.0.1:8000;no real password hash, token database, audit data, or user policy is included.
Grant only the directories and executables you actually need from the Control Center.
Installation
Requirements:
Windows 10/11;
Python 3.10+;
uvrecommended.
Core server + GUI installation:
cd C:\path\to\hostgate-mcp
uv sync --no-dev
Copy-Item config\secrets.example.toml config\secrets.tomlThe default installation includes filesystem/text/CSV/mutation/exec tools, OAuth HTTP support, and the Control Center. Format-specific readers are optional:
uv sync --extra excel # Excel tools
uv sync --extra pdf # PDF tools
uv sync --extra image # image tools
uv sync --extra pytorch # PyTorch checkpoint tools
uv sync --extra all # all optional tool familiesFor development and the complete test suite:
uv sync --all-extras
.venv\Scripts\python.exe -m pytest -qSet a real Argon2id owner password hash in config\secrets.toml, then configure roots and trusted executables before exposing the HTTP service.
Run the Control Center:
scripts\start_control_center.ps1Install the Windows Scheduled Task when you are ready to run HostGate at logon:
scripts\install_server_task.ps1Windows Control Center builds
Recommended onedir build:
scripts\build_control_center.ps1Portable onefile build:
scripts\build_control_center.ps1 -OneFileBuild artifacts are intentionally excluded from source control.
Optional tool families
With every optional extra installed, HostGate exposes the full reader set developed for the private 1.4 line, including Excel, PDF, image, and PyTorch inspection tools. Without an extra, that tool family is simply not registered; the rest of the MCP server remains usable.
This keeps the default install focused on the RWX/control-plane use case instead of forcing every user to install large scientific dependencies such as PyTorch.
Project status
Current public-preparation version: 1.4.0rc1.
The public repository is created from a clean, history-free export of the tested private development line. Private Git history, production policy, OAuth state, logs, secrets, and build output are intentionally excluded.
Non-goals
HostGate is not trying to become:
a full terminal emulator;
a shell orchestration framework;
an MCP marketplace or router;
a cross-platform coding-agent replacement;
a complete OS sandbox.
New capabilities should be added only when they solve a demonstrated operational or security problem.
Documentation
SECURITY.md— security boundaries and vulnerability reporting.docs/THREAT_MODEL.md— assumptions, protected assets, and out-of-scope guarantees.docs/control_center.md— Control Center architecture and policy transactions.docs/architecture.md— server architecture.docs/tools.md— MCP tool reference.CHANGELOG.md— release history.
License
Licensed under the Apache License 2.0. See NOTICE for attribution information.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables remote PC control and system management through MCP, including hardware info, process and file operations, with security features like blocklists and audit logging.
- FlicenseNot gradedqualityDmaintenanceAn MCP server that provides secure access to local file system operations.
- AlicenseNot gradedqualityCmaintenanceEnables remote filesystem and CLI access to a Windows machine over LAN through MCP, with file read/write and command execution capabilities.MIT
- AlicenseNot gradedqualityCmaintenanceEnables remote execution of commands, file operations, screenshots, and clipboard access on Windows machines through MCP tools.1MIT
Related MCP Connectors
Remote MCP for A2A dependency inspector MCP, structured receipts, audit logs, and reviewer-ready evi
Remote MCP for A2A failure replay MCP, structured receipts, audit logs, and reviewer-ready evidence.
Remote MCP for Copilot CLI switch gate MCP, structured receipts, audit logs, and reviewer-ready evid
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Taffy-1/hostgate-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server