Skip to main content

Termigent

A universal Model Context Protocol (MCP) server that exposes a system terminal over Server-Sent Events (SSE).

Who it is for

Termigent is for people who prefer to stay in a graphical MCP client such as the Claude Desktop app and still want the assistant to run real shell commands, either on the local machine or on a remote server.

  • Local execution — run termigent next to Claude Desktop and let Claude inspect files, run tools, and automate tasks on that machine.
  • Remote execution — install termigent on a remote host, start it with --host 0.0.0.0, and let Claude operate that server through the same GUI.

Any GUI MCP client that supports remote SSE, or a stdio bridge such as mcp-remote, can use it.

Requirements

  • Python 3.10+

Install

pip install termigent

Usage

termigent                      # http://127.0.0.1:8000
termigent --port 3000
termigent --host 0.0.0.0 --port 8000
Flag Default Description
--host 127.0.0.1 Interface to bind
--port 8000 Port to listen on
--version Print version

The MCP endpoint is http://<host>:<port>/sse.

Tool

run_command(command: str) executes the command with the shell and returns its combined stdout/stderr. A non-zero exit status is appended as [exit code: N].

In the server terminal, each call is shown as a green agent@termigent:~$ prompt, a white command, and light-gray output:

agent@termigent:~$ pwd
/home/user

Connect Claude Desktop

Claude Desktop brokers remote connectors through Anthropic's cloud, so a connector URL cannot reach your loopback address. Bridge the SSE endpoint through mcp-remote in the Desktop config instead. This requires Node.js, which provides npx.

On the local machine — start termigent, then add this to claude_desktop_config.json:

{
  "mcpServers": {
    "termigent": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "http://127.0.0.1:8000/sse"]
    }
  }
}

On a remote server — install termigent there and bind it to all interfaces:

termigent --host 0.0.0.0 --port 8000

Then, on the machine running Claude Desktop, point the bridge at the server:

{
  "mcpServers": {
    "termigent": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "http://SERVER_IP:8000/sse"]
    }
  }
}

Restart Claude Desktop after changing its config so it initializes a new MCP session.

Security

termigent has no authentication and runs commands with the privileges of the user that started it. Anyone who can reach the endpoint can execute arbitrary shell commands.

  • Keep the default loopback bind for local use. When using --host 0.0.0.0 so another machine can connect, firewall the port to the client's address only.
  • Do not expose the endpoint to untrusted networks without an authenticating reverse proxy.
  • Termigent is not a sandbox; commands can read, modify, and delete anything the host user can.

Only run it on systems you control and with clients you trust.

License

MIT

Metadata

Release files for termigent 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for termigent 0.1.0
File Size Uploaded Provenance
termigent-0.1.0.tar.gz 5.7 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for termigent 0.1.0
File Interpreter ABI Platform
termigent-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 11.7 kB

Release files / termigent-0.1.0.tar.gz

Download URL termigent-0.1.0.tar.gz
Size 5.7 kB
Tags Source
SHA-256 checksum
How to use checksums
3d004b9663653a91d96c0204ee16e05f19f5b09788059401b3e7604d07c64500
BLAKE2b-256 checksum
How to use checksums
8fb78204d912adb70d4123ca76ad2dde41d80545a26fe30aeb330ef387f419b8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.4

Release files / termigent-0.1.0-py3-none-any.whl

Download URL termigent-0.1.0-py3-none-any.whl
Size 6.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ac882ac6bc2b8f80e6d0834b354982f985f38ce528d5003ee089a37383faa083
BLAKE2b-256 checksum
How to use checksums
0c1eccf0bb8d7314e6f0051ac495eb39fabe4a755e03060f11af786fdf27f3cb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.4

Security for termigent 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page