GitHub
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
作者提供的说明(英文原文)
Cross-platform FastMCP server for authenticated remote Linux/macOS host administration
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
HOST, PORT, MCP_WORKSPACE_DIR, AUTH0_DOMAIN, AUTH0_CLIENT_ID, AUTH0_CLIENT_SECRET, AUTH0_AUDIENCE, ALLOW_INSECURE_NO_AUTH标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"universal-host-manager": {
"command": "uvx",
"args": [
"universal-host-manager-mcp"
],
"env": {
"HOST": "your-value",
"PORT": "your-value",
"MCP_WORKSPACE_DIR": "your-value",
"AUTH0_DOMAIN": "your-value",
"AUTH0_CLIENT_ID": "your-value",
"AUTH0_CLIENT_SECRET": "your-value",
"AUTH0_AUDIENCE": "your-value",
"ALLOW_INSECURE_NO_AUTH": "your-value"
}
}
}
}在终端中运行这条命令
claude mcp add universal-host-manager --env HOST=your-value --env PORT=your-value --env MCP_WORKSPACE_DIR=your-value --env AUTH0_DOMAIN=your-value --env AUTH0_CLIENT_ID=your-value --env AUTH0_CLIENT_SECRET=your-value --env AUTH0_AUDIENCE=your-value --env ALLOW_INSECURE_NO_AUTH=your-value -- uvx universal-host-manager-mcp运行前请先填写空着的值。
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"universal-host-manager": {
"command": "uvx",
"args": [
"universal-host-manager-mcp"
],
"env": {
"HOST": "your-value",
"PORT": "your-value",
"MCP_WORKSPACE_DIR": "your-value",
"AUTH0_DOMAIN": "your-value",
"AUTH0_CLIENT_ID": "your-value",
"AUTH0_CLIENT_SECRET": "your-value",
"AUTH0_AUDIENCE": "your-value",
"ALLOW_INSECURE_NO_AUTH": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"universal-host-manager": {
"type": "stdio",
"command": "uvx",
"args": [
"universal-host-manager-mcp"
],
"env": {
"HOST": "your-value",
"PORT": "your-value",
"MCP_WORKSPACE_DIR": "your-value",
"AUTH0_DOMAIN": "your-value",
"AUTH0_CLIENT_ID": "your-value",
"AUTH0_CLIENT_SECRET": "your-value",
"AUTH0_AUDIENCE": "your-value",
"ALLOW_INSECURE_NO_AUTH": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
HOST envPORT envALLOW_INSECURE_NO_AUTH env这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日
注册名称已通过 GitHub 账户 Abktya 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
你需要填写:MCP_WORKSPACE_DIR, AUTH0_DOMAIN, AUTH0_CLIENT_ID, AUTH0_CLIENT_SECRET, AUTH0_AUDIENCE
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(0.1.15)于39天前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Python (uv)。
同一分类中有:GitHub, Desktop Commander, Cloudflare MCP
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
MCP server for terminal commands, file operations, and process management
Cloudflare MCP servers
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
A cross-platform Model Context Protocol server for administering a Linux or macOS host through MCP clients such as ChatGPT and Claude.
It uses FastMCP Streamable HTTP transport, Auth0 OAuth, bounded file tools, output limits and command timeouts.
[!CAUTION]
This project exposes arbitrary shell execution. Authentication decides who may use it; it does not make commands harmless. Read SECURITY.md before deploying it.
MCP_WORKSPACE_DIR| Tool | Parameters | Purpose |
|---|---|---|
run_command | command: str, timeout: int | Runs an arbitrary shell command with the workspace as its working directory |
read_file | path: str | Reads a text file inside the workspace |
write_file | path: str, content: str | Writes UTF-8 text inside the workspace |
list_dir | path: str = "." | Lists a directory inside the workspace |
system_metrics | none | Reports disk, memory and top-process information |
The workspace boundary applies to the file tools. It does not sandbox run_command; commands retain all permissions of the service's OS user.
pip install universal-host-manager-mcp
Next: run uhm-setup to generate your .env — see Configure below.
Without polluting a project environment:
uvx --from universal-host-manager-mcp uhm-setup
This installs into a throwaway environment, runs the setup wizard, and writes .env in the current directory. From then on, run the server itself the same way: uvx universal-host-manager-mcp.
git clone https://github.com/Abktya/universal-host-manager-mcp.git
cd universal-host-manager-mcp python3 -m venv .venv source .venv/bin/activate pip install -e .
Next: run uhm-setup to generate your .env — see Configure below.
The easiest way is the interactive setup wizard, installed alongside the server:
uhm-setup
Run it from the directory where you want to keep the configuration. The server must later be started from that same directory so it can find .env.
For a first test, choose 1 — Local-only test. Press Enter to accept the port 8765; the port prompt expects a number, not y or n. This mode:
workspace directory by default;127.0.0.1, so other computers cannot connect;The wizard also offers Cloudflare Tunnel, an ngrok static domain, and an existing HTTPS URL for remote use. Remote modes require Auth0 and will not write a misleading, unusable configuration if Auth0 is skipped. It validates domains and URLs, then writes .env with 600 permissions—backing up an existing file to .env.bak first.
If a virtual environment is active, install and run both commands through that environment:
python -m pip install universal-host-manager-mcp
uhm-setup universal-host-manager-mcp
To verify that the command belongs to the active environment on macOS/Linux:
command -v uhm-setup
command -v universal-host-manager-mcp python -m pip show universal-host-manager-mcp
The first two paths should normally point inside .venv/bin. If they point to /opt/homebrew/bin while a virtual environment is active, reinstall with python -m pip install universal-host-manager-mcp.
Prefer to do it by hand? Create a .env file (copy .env.example if you installed from source) with an explicitly restricted workspace:
HOST=127.0.0.1
PORT=8765 MCP_BASE_URL=https://mcp.example.com MCP_WORKSPACE_DIR=/home/youruser/workspace
AUTH0_DOMAIN=your-tenant.eu.auth0.com AUTH0_CLIENT_ID=replace_me AUTH0_CLIENT_SECRET=replace_me AUTH0_AUDIENCE=https://mcp.example.com/
Never commit .env.
This project uses FastMCP's Auth0Provider fixed-client OAuth integration.
https://mcp.example.com/. Keep RS256 as the signing algorithm..env block. The wizard can import AUTH0_DOMAIN, AUTH0_CLIENT_ID, and AUTH0_CLIENT_SECRET from your clipboard or from a pasted block. If Auth0 displays MASKED, reveal and copy the real Client Secret from the application's Settings tab; masked secrets are rejected.AUTH0_AUDIENCE when the wizard asks for it. It is intentionally separate because Auth0's application .env block does not contain the API audience./mcp) as follows:| Auth0 field | Value |
|---|---|
| Application Ownership | First-party |
| Application Type | Regular Web Application |
| Application Login URI | Leave blank |
| Allowed Callback URLs | https://mcp.example.com/auth/callback |
| Allowed Logout URLs | https://mcp.example.com |
| Allowed Web Origins | https://mcp.example.com |
| Allowed Origins (CORS) | https://mcp.example.com |
| Allow Cross-Origin Authentication | Off / disabled |
| Cross-Origin Verification Fallback URL | Leave blank |
| API Identifier / Audience | https://mcp.example.com/ |
| Signing Algorithm | RS256 |
| Application > API Access | User-delegated Access enabled for the created API |
| MCP endpoint (entered in the AI client, not Auth0) | https://mcp.example.com/mcp |
.env to Git.The callback above is FastMCP's fixed upstream callback. Do not put Claude, ChatGPT, or Grok callback URLs into Auth0: those products are downstream MCP clients and FastMCP validates their redirect URIs separately during MCP client registration. Connect each product to https://mcp.example.com/mcp.
Auth0's Python quickstart also shows AUTH0_SECRET, APP_BASE_URL, PORT, and sample Flask code. They belong to Auth0's standalone sample web application and are not used by this MCP server; the wizard safely ignores them when importing the copied block.
Client notes:
https://chatgpt.com/connector_platform_oauth_redirect; add the public /mcp endpoint in ChatGPT developer mode./mcp endpoint and start OAuth when you connect.FastMCP also supports an Auth0 MCP-native/DCR path through Auth0MCPProvider. This repository currently uses the manually managed, fixed-client Auth0Provider path.
universal-host-manager-mcp
(Running from a source checkout with the .venv activated works the same way — the console script is installed by pip install -e ..)
With the default port, the Streamable HTTP endpoint is:
http://127.0.0.1:8765/mcp
For an intentional local-only test without Auth0:
ALLOW_INSECURE_NO_AUTH=true universal-host-manager-mcp
Do not use insecure mode on a publicly reachable endpoint.
After starting the server (and the tunnel for remote mode), verify it:
curl -i https://mcp.example.com/mcp
curl -i https://mcp.example.com/.well-known/oauth-authorization-server
The server and tunnel must remain running; closing either makes a tunneled endpoint unavailable.
Install cloudflared, authenticate it and create a named tunnel:
cloudflared tunnel login
cloudflared tunnel create universal-host-manager-mcp cloudflared tunnel route dns universal-host-manager-mcp mcp.example.com
Create ~/.cloudflared/config.yml:
tunnel: YOUR_TUNNEL_ID
credentials-file: /home/youruser/.cloudflared/YOUR_TUNNEL_ID.json
ingress:
Validate and run it:
cloudflared tunnel ingress validate
cloudflared tunnel run universal-host-manager-mcp
Keep both universal-host-manager-mcp and cloudflared running. Closing either process takes the public endpoint offline. The setup wizard can create an executable uhm-enable-autostart.sh installer. It writes Linux systemd-user services or macOS LaunchAgents for both processes and shows one command to run.
Your remote MCP URL will be:
https://mcp.example.com/mcp
Set MCP_BASE_URL=https://mcp.example.com; do not include /mcp in MCP_BASE_URL.
Auth0 OAuth needs a stable HTTPS URL, but you don't need to own a domain to get one. Unlike ngrok's old random URLs (which changed every restart) or Cloudflare's login-free quick tunnels (same problem), ngrok's free tier includes one static subdomain per account that never changes, at no cost.
brew install ngrok/ngrok/ngrok; on Ubuntu use sudo snap install ngrok. Other Linux distributions can use ngrok's official download instructions. ngrok config add-authtoken YOUR_NGROK_TOKEN
Use the authtoken, not the domain ID. Never share it; reset it in the dashboard if it is exposed.
your-name.ngrok-free.dev.universal-host-manager-mcp from the directory containing .env. ngrok http --url=your-name.ngrok-free.dev 8765
Both processes must remain running. Closing either one takes the public endpoint offline. The wizard can create uhm-enable-autostart.sh, which installs Linux systemd-user services or macOS LaunchAgents for both processes.
MCP_BASE_URL=https://your-name.ngrok-free.dev in .env (keep HOST=127.0.0.1; ngrok forwards to the local port while the server listen只显示了开头部分;其余内容请在仓库中阅读