Process
FreeNot checkedAn MCP server that allows AI assistants to manage background processes, enabling start, stop, monitoring, and querying of long-running shell commands without bl
About
An MCP server that allows AI assistants to manage background processes, enabling start, stop, monitoring, and querying of long-running shell commands without blocking the conversation.
README
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 terminates - Short, friendly process IDs via
nanoid(6 characters) - Strict input validation with
zod - Runs over stdio — no HTTP or SSE ports required
Installation
Requires Bun.
bun install
bun run build
To run the server directly during development:
bun run dev
To run the compiled server:
bun run start
Configuration
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 |
|---|---|---|---|
command |
string | yes | Executable or command to run |
args |
string[] | no | Arguments passed to the command |
cwd |
string | no | Working directory for the process |
env |
record | no | Extra environment variables |
notifyOnExit |
boolean | no | Send a process/exit notification when the process ends |
Example response:
{
"id": "a1b2c3",
"pid": 12345,
"status": "running"
}
stop
Stop a managed process.
Parameters:
| Name | Type | Required | Description |
|---|---|---|---|
id |
string | yes | Process ID returned by start |
force |
boolean | no | Use SIGKILL instead of SIGTERM (default: false) |
Example response:
{
"id": "a1b2c3",
"pid": 12345,
"status": "stopped"
}
get-status
Get the current status of a process.
Parameters:
| Name | Type | Required | Description |
|---|---|---|---|
id |
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 |
|---|---|---|---|
id |
string | yes | Process ID |
lastLines |
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 |
|---|---|---|---|
id |
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 test
Build the project:
bun run build
Run the server from source:
bun run dev
License
MIT
Installing Process
This server has no published package — it is built from source. Open the repository and follow its README.
▸ github.com/Kruceo/process-mcpFAQ
Is Process MCP free?
Yes, Process MCP is free — one-click install via Unyly at no cost.
Does Process need an API key?
No, Process runs without API keys or environment variables.
Is Process hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install Process in Claude Desktop, Claude Code or Cursor?
Open Process on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
Fetch
Web content fetching and conversion for efficient LLM usage.
AWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
by modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
by xuzexin-hzCompare Process with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All ai MCPs
