
A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

An MCP server that lets coding agents execute long-running shell commands asynchronously and manage their full process lifecycle.
MCP Background Job Server is cataloged as an MCP server attributed to dylan-gluck. An MCP server that lets coding agents execute long-running shell commands asynchronously and manage their full process lifecycle. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.
能力定义尚未审核。未核验的采集内容不会作为可信接口展示。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for MCP Background Job Server are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
Jobs can be running, completed, failed, or killed.
Yes, the maximum number of concurrent jobs is configurable via MCP_BG_MAX_JOBS, defaulting to 10.
It supports stdio as the default local transport and HTTP for remote access requiring additional setup.
README.md · abd2b4a5e6c9 · 采集于 2026-11-13 09:09:18 UTC
保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。
当前显示最后一次成功采集的文档快照,请以来源页面为准。
An MCP (Model Context Protocol) server that enables coding agents to execute long-running shell commands asynchronously with full process management capabilities.
The MCP Background Job Server provides a robust solution for running shell commands in the background, allowing agents to start processes, monitor their status, interact with them, and manage their lifecycle. This is particularly useful for development workflows involving build processes, test suites, servers, or any long-running operations.
Install directly from PyPI using uvx:
# Install and run the MCP server
uvx mcp-background-job
Add the server to your Claude Code configuration:
Option A: Using Claude Code Desktop
background-jobuvx["mcp-background-job"]Option B: Configuration File Add to your Claude Code configuration file:
{
"mcpServers": {
"background-job": {
"command": "uvx",
"args": ["mcp-background-job"]
}
}
}
Restart Claude Code to load the new MCP server.
For local development or contributing:
Clone and navigate to the project directory:
git clone https://github.com/dylan-gluck/mcp-background-job.git
cd mcp-background-job
Install dependencies:
uv sync
Install in development mode:
uv add -e .
Once configured, ask Claude to help you with background tasks:
You: "Start my development server in the background and monitor it"
Claude: I'll start your development server using the background job server.
[Uses the execute tool to run your dev server]
[Shows job ID and monitors startup progress]
[Provides status updates]
Claude: "Your development server is now running on http://localhost:3000.
The job ID is abc123-def456 if you need to control it later."
For development or direct usage:
# Run with stdio transport (most common)
uvx mcp-background-job
# Or for development:
uv run python -m mcp_background_job
# 1. Execute a long-running command
execute_result = await execute_command("npm run dev")
job_id = execute_result.job_id
# 2. Check job status
status = await get_job_status(job_id)
print(f"Job status: {status.status}")
# 3. Get recent output
output = await tail_job_output(job_id, lines=20)
print("Recent output:", output.stdout)
# 4. Interact with the process
interaction = await interact_with_job(job_id, "some input\n")
print("Process response:", interaction.stdout)
# 5. Kill the job when done
result = await kill_job(job_id)
print(f"Kill result: {result.status}")
The server exposes 7 MCP tools for process management:
| Tool | Description | Parameters | Returns |
|---|---|---|---|
list | List all background jobs | None | {jobs: [JobSummary]} |
status | Get job status | job_id: str | {status: JobStatus} |
output | Get complete job output | job_id: str | {stdout: str, stderr: str} |
tail | Get recent output lines | job_id: str, lines: int | {stdout: str, stderr: str} |
| Tool | Description | Parameters | Returns |
|---|---|---|---|
execute | Start new background job | command: str | {job_id: str} |
interact | Send input to job stdin | job_id: str, input: str | {stdout: str, stderr: str} |
kill | Terminate running job | job_id: str | {status: str} |
running - Process is currently executingcompleted - Process finished successfullyfailed - Process terminated with errorkilled - Process was terminated by userConfigure the server behavior using these environment variables:
# Maximum concurrent jobs (default: 10)
export MCP_BG_MAX_JOBS=20
# Maximum output buffer per job (default: 10MB)
export MCP_BG_MAX_OUTPUT_SIZE=20MB
# or in bytes:
export MCP_BG_MAX_OUTPUT_SIZE=20971520
# Default job timeout in seconds (default: no timeout)
export MCP_BG_JOB_TIMEOUT=3600
# Cleanup interval for completed jobs in seconds (default: 300)
export MCP_BG_CLEANUP_INTERVAL=600
# Working directory for jobs (default: current directory)
export MCP_BG_WORKING_DIR=/path/to/project
# Allowed command patterns (optional security restriction)
export MCP_BG_ALLOWED_COMMANDS="^npm ,^python ,^echo ,^ls"
{
"mcpServers": {
"background-job": {
"command": "uvx",
"args": ["mcp-background-job"],
"env": {
"MCP_BG_MAX_JOBS": "20",
"MCP_BG_MAX_OUTPUT_SIZE": "20MB"
}
}
}
}
from mcp_background_job.config import BackgroundJobConfig
config = BackgroundJobConfig(
max_concurrent_jobs=20,
max_output_size_bytes=20 * 1024 * 1024, # 20MB
default_job_timeout=7200, # 2 hours
cleanup_interval_seconds=600 # 10 minutes
)
The server is built with a modular architecture:
src/mcp_background_job/
├── server.py # FastMCP server and tool definitions
├── service.py # JobManager service implementation
├── process.py # ProcessWrapper for subprocess management
├── models.py # Pydantic data models
├── config.py # Configuration management
└── logging_config.py # Logging setup
# Run all tests
uv run pytest tests/
# Run unit tests only
uv run pytest tests/unit/ -v
# Run integration tests only
uv run pytest tests/integration/ -v
# Format code with ruff
uv run ruff format
# Run type checking
uv run mypy src/
uv run pytest tests/uv run ruff format# Start a development server
job_id=$(echo '{"command": "npm run dev"}' | mcp-tool execute)
# Monitor the startup
mcp-tool tail --job_id "$job_id" --lines 10
# Check if server is ready
mcp-tool status --job_id "$job_id"
# Stop the server
mcp-tool kill --job_id "$job_id"
# Start a build process
job_id=$(echo '{"command": "docker build -t myapp ."}' | mcp-tool execute)
# Monitor build progress
while true; do
status=$(mcp-tool status --job_id "$job_id")
if [[ "$status" != "running" ]]; then break; fi
mcp-tool tail --job_id "$job_id" --lines 5
sleep 10
done
# Get final build output
mcp-tool output --job_id "$job_id"
# Start Python REPL
job_id=$(echo '{"command": "python -i"}' | mcp-tool execute)
# Send Python code
mcp-tool interact --job_id "$job_id" --input "print('Hello, World!')\n"
# Send more commands
mcp-tool interact --job_id "$job_id" --input "import sys; print(sys.version)\n"
# Exit REPL
mcp-tool interact --job_id "$job_id" --input "exit()\n"
The server supports multiple MCP transports:
For stdio transport, ensure logging goes to stderr only to avoid protocol conflicts.
Import Errors: Ensure the package is installed in development mode:
uv add -e .
Tests Not Running: Install the package first, then run tests:
uv sync
uv add -e .
uv run pytest tests/
Permission Errors: Ensure proper permissions for the commands you're trying to execute.
Memory Issues: Adjust MCP_BG_MAX_OUTPUT_SIZE if dealing with processes that generate large amounts of output.
This project is licensed under the MIT License - see the LICENSE file for details.
uvxmcp-background-job)Built with ❤️ using FastMCP and Python 3.12+
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for MCP Background Job Server from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/background-job)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。
尚无已审核的包 / 镜像标识,暂不展示下载统计。
Alternative and complementary servers in the same category

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.