process-mcp
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., "@process-mcpstart npm run dev in ./current-project"
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.
process-mcp
A local MCP (Model Context Protocol) server for managing background processes.
process-mcp lets AI assistants and other MCP clients start, stop, monitor, and query long-running shell commands without blocking the conversation. Instead of waiting for a command to finish, clients can start it in the background and receive a notification when it exits.
Features
Start background processes with custom arguments, working directory, and environment variables
Stop processes gracefully with SIGTERM or forcefully with SIGKILL
Query real-time status and retrieve recent log output
List all managed processes and resolve their system PIDs
Receive
process/exitnotifications when a background process terminatesShort, friendly process IDs via
nanoid(6 characters)Strict input validation with
zodRuns over stdio — no HTTP or SSE ports required
Related MCP server: interactive-process-mcp
Installation
Requires Bun.
bun install
bun run buildTo run the server directly during development:
bun run devTo run the compiled server:
bun run startConfiguration
Add process-mcp to your MCP client configuration. For opencode, edit ~/.config/opencode/opencode.json:
{
"mcpServers": {
"process-mcp": {
"command": "bun",
"args": [
"run",
"/path/to/process-mcp/dist/index.js"
]
}
}
}Adjust the absolute path to match your local clone location.
Tools Reference
start
Start a background process.
Parameters:
Name | Type | Required | Description |
| string | yes | Executable or command to run |
| string[] | no | Arguments passed to the command |
| string | no | Working directory for the process |
| record | no | Extra environment variables |
| boolean | no | Send a |
Example response:
{
"id": "a1b2c3",
"pid": 12345,
"status": "running"
}stop
Stop a managed process.
Parameters:
Name | Type | Required | Description |
| string | yes | Process ID returned by |
| boolean | no | Use SIGKILL instead of SIGTERM (default: |
Example response:
{
"id": "a1b2c3",
"pid": 12345,
"status": "stopped"
}get-status
Get the current status of a process.
Parameters:
Name | Type | Required | Description |
| string | yes | Process ID |
Returns: "running" | "stopped" | "exited" | "crashed" | "not-exists"
get-log
Retrieve the stdout/stderr log of a process.
Parameters:
Name | Type | Required | Description |
| string | yes | Process ID |
| number | no | Number of recent log lines to return |
Example response:
{
"lines": [
"Build started...",
"Compiled 42 files",
"Build finished"
]
}list
List all managed processes.
Parameters: none
Example response:
{
"processes": [
{ "id": "a1b2c3", "pid": 12345, "status": "running" },
{ "id": "d4e5f6", "pid": null, "status": "exited" }
]
}get-pid
Get the system PID of a managed process.
Parameters:
Name | Type | Required | Description |
| string | yes | Process ID |
Returns: PID number or null
Notification
When a process is started with notifyOnExit: true, the server sends a process/exit notification once the process terminates. The notification payload includes the process ID and final status.
This allows clients such as opencode to resume a conversation after a long-running task completes, without polling for status.
Development
Run the test suite:
bun testBuild the project:
bun run buildRun the server from source:
bun run devLicense
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
MCP server for building and testing AI agents with multi-model experimentation and insights.
Remote MCP server for supportsheep: run AI interviews and manage support content for your blog.
MCP server for Gainium — manage trading bots, deals, and balances via AI assistants
Related MCP Servers
- AlicenseAqualityDmaintenanceAn MCP server that enables coding agents to execute and manage long-running shell commands asynchronously with capabilities for process monitoring, interaction, and lifecycle management.737 PyPI13MIT
- AlicenseAqualityCmaintenanceMCP server for managing interactive processes, enabling AI agents to start, interact with, and terminate long-running programs like SSH sessions, REPLs, and installers via read/write operations.88MIT
- AlicenseBqualityAmaintenanceA secure MCP server for shell operations, terminal management, and process control, enabling AI assistants to safely execute commands and manage interactive sessions.13172 npm6MIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server that bridges AI assistants to real terminal sessions, enabling creation, management, and interaction with persistent PTY processes for running commands, monitoring output, and debugging.1MIT