About bunqueue
bunqueue is an MCP server published by git+egeominotti in the Data category: ⚡ High-performance job queue for Bun. SQLite by default, PostgreSQL multi-broker when you scale. DLQ, cron, SQLite S3 backups, and native MCP. No Redis. Conduid read 85 tools from its source: bunqueue_ack_job, bunqueue_ack_job_batch, bunqueue_add_cron, bunqueue_add_flow, bunqueue_add_flow_bulk_then, bunqueue_add_flow_chain and 79 more. It is published to npm as bunqueue and starts with npx.
The repository has 583 stars and 0 forks. It passes 1 of the 2 static checks Conduid ran on the repository; it does not pass Scoped permissions. Its topics include ai-scheduler, background-jobs, bullmq-alternative, bun, bun-queue and cron-scheduler.
Install
npx bunqueueclaude mcp add bunqueue -- npx -y bunqueuenpx -y bunqueuegit clone git+https://github.com/egeominotti/bunqueueTools (85)
bunqueue_ack_jobAcknowledge an active job as completed with an optional result. A locked job (pulled with an owner) needs its token; a missing or wrong token is an error and the job stays active. An already finalized execution returns success false with its reason.| Parameter | Type | Description |
|---|---|---|
| jobId * | string | Job ID to acknowledge |
| result | any | Optional result data |
bunqueue_ack_job_batchAcknowledge multiple active jobs as completed in one operation. Locked jobs need their tokens; if any token is missing or wrong, nothing is acknowledged. count reports applied input positions; any already finalized executions are listed in ignoredIds and ignoredIndices and make success false, even when other items were completed.| Parameter | Type | Description |
|---|---|---|
| jobIds * | array | Array of job IDs to acknowledge |
bunqueue_add_cronAdd a recurring schedule that adds a job to a queue on a cron pattern (schedule, optionally in a time zone) or every repeatEvery ms. Adding an existing name replaces that schedule and keeps its run count. By default (preventOverlap) at most one job of the schedule is pending: a run adds nothing while the previous job is still waiting, delayed or active. Returns the schedule with its next run time.| Parameter | Type | Description |
|---|---|---|
| data * | object | Payload of every job the schedule adds |
| name * | string | Unique schedule name |
| repeatEvery | number | Alternative to schedule: run every N milliseconds |
| schedule | string | Cron pattern: 5 fields (minute hour day-of-month month day-of-week, e.g. "0 9 * * 1-5"), 6 with leading seconds, or a shortcut such as "@hourly" |
bunqueue_add_flowCreate a job flow tree (BullMQ v5 compatible). Children are processed BEFORE their parent. Use for complex dependency graphs.| Parameter | Type | Description |
|---|---|---|
| children | array | Child jobs (processed BEFORE this job) |
| data | object | Root job payload |
bunqueue_add_flow_bulk_thenFan-out/fan-in: run parallel jobs, then execute a final job when ALL parallel jobs complete.| Parameter | Type | Description |
|---|---|---|
| parallel * | array | Jobs that run in parallel |
bunqueue_add_flow_chainCreate a sequential job pipeline: step[0] → step[1] → step[2]. Each step depends on the previous one completing first.| Parameter | Type | Description |
|---|---|---|
| steps * | array | Steps executed in order, each depending on the previous |
bunqueue_add_jobAdd a job to a queue. Returns the job ID (with jobId set: the custom id, or the existing job when that id is still unfinished; with deduplication: the existing job when the key is taken).| Parameter | Type | Description |
|---|---|---|
| data * | object | Job payload data |
bunqueue_add_job_logAdd a log entry to a job.| Parameter | Type | Description |
|---|---|---|
| jobId * | string | Job ID |
| level | string | Log level (default: info) |
| message * | string | Log message |
bunqueue_add_jobs_bulkAdd multiple jobs to a queue in a single operation; each job accepts the same options as bunqueue_add_job. Returns one id per job, in order (an existing id for a job suppressed by jobId or deduplication). The batch is ordered, not atomic: invalid options reject the whole call, but a job the broker refuses while admitting leaves the jobs before it added.| Parameter | Type | Description |
|---|---|---|
| jobs * | array | Array of jobs to add |
bunqueue_add_webhookAdd a webhook to receive notifications for job events.| Parameter | Type | Description |
|---|---|---|
| events * | array | Events to subscribe to |
| url * | string | Webhook URL to receive POST requests |
bunqueue_call_toolCall a loaded bunqueue tool by name, for clients that do not refresh their tool list after bunqueue_enable_toolsets.| Parameter | Type | Description |
|---|---|---|
| arguments | object | Tool arguments |
| name * | string | Tool name, e.g. bunqueue_get_job_counts |
bunqueue_cancel_jobRemove a waiting, delayed, prioritized, waiting-children or completed job (a completed job loses its data and result). Active and failed jobs are not removed.| Parameter | Type | Description |
|---|---|---|
| jobId * | string | Job ID to cancel |
bunqueue_change_delayChange the delay of a delayed job. A job locked by a pull with an owner is rejected (error "Lock token required").| Parameter | Type | Description |
|---|---|---|
| jobId * | string | Job ID |
bunqueue_change_job_priorityChange the priority of a waiting job. Higher priority = processed first.| Parameter | Type | Description |
|---|---|---|
| jobId * | string | Job ID |
bunqueue_clean_queueRemove old completed and/or failed jobs from a queue. Waiting, delayed and active jobs are never touched.| Parameter | Type | Description |
|---|---|---|
| graceMs * | number | Grace period in ms - only remove jobs older than this |
| limit | number | Maximum number of jobs to remove in total (default: 1000 per state) |
| state | string | State to clean (default: both completed and failed) |
bunqueue_clear_concurrencyRemove concurrency limit from a queue.bunqueue_clear_job_logsClear log entries for a specific job, optionally keeping the last N entries.| Parameter | Type | Description |
|---|---|---|
| jobId * | string | Job ID |
| keepLogs | number | Number of recent log entries to keep (default: 0 = clear all) |
bunqueue_clear_rate_limitRemove rate limit from a queue, allowing unlimited throughput.bunqueue_compact_memoryForce memory compaction to free unused memory.bunqueue_count_jobsCount every job of a queue across all states: waiting, prioritized, delayed, active, completed, failed (DLQ), paused and waiting-children. Use bunqueue_get_job_counts for the per-state breakdown.bunqueue_delete_cronDelete a cron job by name.| Parameter | Type | Description |
|---|---|---|
| name * | string | Cron job name to delete |
bunqueue_diagnose_queueRead a queue snapshot with every state count, current limits and bounded safe samples. Reports observed constraints, not inferred root causes.bunqueue_discard_jobDiscard a job: it is moved to the dead letter queue (state failed) without being processed. It is not deleted: inspect it with bunqueue_get_dlq and run it again with bunqueue_retry_dlq. A job locked by a pull with an owner cannot be discarded here (error "Lock token required"): use bunqueue_fail_job with its token and unrecoverable: true.| Parameter | Type | Description |
|---|---|---|
| jobId * | string | Job ID to discard |
bunqueue_drain_queueRemove every job still waiting to run from a queue: waiting, prioritized and delayed jobs. Active jobs keep running; completed and failed jobs are kept.bunqueue_enable_toolsetsLoad groups of bunqueue tools before using them. Pick every toolset the task needs, then call the listed tools. Toolsets: ${catalog(available)}| Parameter | Type | Description |
|---|---|---|
| toolsets * | array | Toolsets to load |
bunqueue_extend_lockExtend the lock on a locked active job so it is not reclaimed: the lock then expires duration ms from now. success is false when the token is wrong or the lock has already expired.| Parameter | Type | Description |
|---|---|---|
| jobId * | string | Job ID |
bunqueue_fail_jobMark an active job as failed with an optional error message. It is retried after its backoff while attempts remain, otherwise it moves to the DLQ (or is deleted with removeOnFail). A locked job needs its token.| Parameter | Type | Description |
|---|---|---|
| error | string | Error message |
| jobId * | string | Job ID to fail |
| unrecoverable | boolean | Skip the remaining attempts: the job goes straight to the DLQ (default: false) |
bunqueue_find_toolsDescribe what you need in plain language; a decision model picks and loads the matching bunqueue toolset.| Parameter | Type | Description |
|---|---|---|
| request * | string | What you want to do, in plain language |
bunqueue_get_capabilitiesInspect effective MCP mode, profile, discovery, confirmation and configured workflow capabilities without changing queue state.bunqueue_get_children_valuesGet return values from all child jobs of a parent job. Used with FlowProducer workflows.| Parameter | Type | Description |
|---|---|---|
| parentJobId * | string | Parent job ID |
bunqueue_get_counts_per_priorityGet job count breakdown by priority level for a queue. Counts only waiting/delayed (queued) jobs — active, completed and failed jobs are not included.bunqueue_get_cronGet one schedule by name: queue, schedule or repeatEvery, time zone, job name, priority, run limit (maxLimit), runs so far (executions) and next run time.| Parameter | Type | Description |
|---|---|---|
| name * | string | Cron job name |
bunqueue_get_dlqGet Dead Letter Queue entries of a queue (jobs that permanently failed), oldest first. Each entry has the job plus why it failed: reason, last error, attempt history (the last ${MAX_DLQ_ATTEMPTS_SHOWN} attempts; attemptCount is the total), retryCount, enteredAt, lastRetryAt, nextRetryAt and expiresAt. Page with offset/limit while hasMore is true.| Parameter | Type | Description |
|---|---|---|
| limit | number | Max entries to return (default: 20, max ${MAX_DLQ_PAGE}) |
| offset | number | Matching entries to skip first (default: 0) |
| reason | string | Only entries whose last failure has this reason |
bunqueue_get_dlq_statsSummarize the Dead Letter Queue of a queue: total entries, entries per failure reason, entries due for automatic retry (pendingRetry), entries past their expiry awaiting purge (expired), and the oldest and newest entry times.bunqueue_get_flowRetrieve a flow tree starting from a job. Shows the full dependency graph with children.| Parameter | Type | Description |
|---|---|---|
| depth | number | Max traversal depth (default: 10) |
| jobId * | string | Job ID to get flow tree for |
| maxChildren | number | Max children per level |
bunqueue_get_jobGet a job by ID: name, queue, data, state, priority, progress, attempts, timestamps, its backoff, and the add options it carries when set (timeout, stallTimeout, lifo, removeOnComplete, removeOnFail, tags, deduplicationId).| Parameter | Type | Description |
|---|---|---|
| jobId * | string | Job ID |
bunqueue_get_job_by_custom_idLook up an unfinished job by the custom ID it was added with (the jobId option of bunqueue_add_job, bunqueue_add_jobs_bulk, the flow tools, the client SDK or the HTTP API). The custom ID is released when the job completes or fails for good, so this lookup then reports not found; a custom ID is also the job ID, so bunqueue_get_job still finds the finished job.| Parameter | Type | Description |
|---|---|---|
| customId * | string | Custom job ID |
bunqueue_get_job_countsGet job counts per state for a queue: waiting, prioritized, delayed, active, completed, failed (DLQ), paused and waiting-children. When the queue is paused its ready jobs are counted only under paused.bunqueue_get_job_logsGet log entries for a specific job.| Parameter | Type | Description |
|---|---|---|
| jobId * | string | Job ID |
bunqueue_get_job_resultGet the result of a completed job.| Parameter | Type | Description |
|---|---|---|
| jobId * | string | Job ID |
bunqueue_get_job_stateGet the current state of a job: waiting, prioritized (waiting with a priority), delayed, active, completed, failed (in the DLQ), waiting-children (a flow parent waiting for its children), or unknown (no such job).| Parameter | Type | Description |
|---|---|---|
| jobId * | string | Job ID |
bunqueue_get_jobsList jobs in a queue with optional state filter and pagination. Waiting jobs that have a priority are in the prioritized state; the ready jobs of a paused queue are in the paused state.| Parameter | Type | Description |
|---|---|---|
| end | number | End index for pagination (default: 20) |
| start | number | Start index for pagination (default: 0) |
| state | string | Filter by job state |
bunqueue_get_memory_statsGet memory usage statistics (jobIndex, completedJobs, cache sizes, etc.).bunqueue_get_per_queue_statsGet current job counts for every known queue: waiting, prioritized, delayed, active and dlq per queue. No throughput or latency data.bunqueue_get_progressGet the progress and progress message of a job in any state (the last value reported while it was active).| Parameter | Type | Description |
|---|---|---|
| jobId * | string | Job ID |
bunqueue_get_prometheus_metricsGet metrics in Prometheus exposition format for monitoring.bunqueue_get_queue_limitsRead the limits of a queue and whether they are holding jobs back: rateLimit ({ max, durationMs } or null), rateLimitTtlMs (ms until the rate limit admits the next job, or until a temporary limit set by a client expires; null without a rate limit), rateLimited, concurrencyLimit (or null), active (jobs running now), concurrencyMaxed (no free slot: the next pull gets nothing) and paused.bunqueue_get_queue_statsGet job counts per state for one queue (same data as bunqueue_get_job_counts): waiting, prioritized, delayed, active, completed, failed (DLQ), paused and waiting-children.bunqueue_get_statsGet server-wide statistics summed over all queues: current job counts (waiting, delayed, active, completed, dlq), failed-job total, lifetime push/pull/completion totals and uptime. Embedded mode also reports prioritized, waiting-children and cron counts; TCP mode also reports push/pull rates, average latency and processing time, and process memory in MB. Collection sizes are in bunqueue_get_memory_stats.bunqueue_get_storage_statusGet storage health status. Reports if disk is full or has errors.bunqueue_get_workflow_executionGet one workflow engine execution by id: state, workflow name, current node index, the event a waiting run waits for (known only for waitFor gates with a timeout), every step record (status, attempts, error, result, start/end time, compensation outcome; engine bookkeeping records start with "__" or "sub:"), the signals received with their payloads, input, failure reason, rollback status and timestamps. Values the JSON format cannot carry are converted (BigInt to string, Date to ISO string, Map/Set/bytes/Error to tagged objects).| Parameter | Type | Description |
|---|---|---|
| executionId * | string | Workflow execution id (engine.start() result) |
bunqueue_is_pausedCheck if a queue is currently paused.bunqueue_job_heartbeatSend a heartbeat for an active job to prevent stall detection. For a locked job pass its token: that also renews the lock for its lockTtl (without the token the lock is not renewed). success is false when the job is not active or the token is wrong or expired.| Parameter | Type | Description |
|---|---|---|
| jobId * | string | Job ID |
bunqueue_job_heartbeat_batchSend heartbeats for multiple active jobs at once; with tokens, locked jobs also get their locks renewed. Returns how many heartbeats were accepted.| Parameter | Type | Description |
|---|---|---|
| jobIds * | array | Array of job IDs |
bunqueue_list_cronsList all schedules: name, queue, schedule or repeatEvery, time zone, job name, priority, run limit, runs so far and next run time.bunqueue_list_handlersList all active HTTP handlers and their workers.bunqueue_list_jobs_pageRead a bounded queue page (limit 1..100). Payloads are omitted unless includeData is true; hasMore probes one extra row. Offsets are live, not a stable snapshot.| Parameter | Type | Description |
|---|---|---|
| includeData | boolean | |
| limit | number | |
| offset | number | |
| state | string |
bunqueue_list_queuesList all queues.bunqueue_list_webhooksList all registered webhooks.bunqueue_list_workersList all registered workers with their status, queues, and processing stats.bunqueue_list_workflow_executionsList workflow engine executions from the Engine's workflow database (BUNQUEUE_MCP_WORKFLOW_DB), newest first. Filter by workflow name and state; page with limit/offset (nextOffset is null once a page comes back short). Each row: id, workflow name, state, current node index, the event a waiting run waits for (known only for waitFor gates with a timeout, otherwise null), names of the signals received, failure reason, rollback status, parent execution, timestamps. Node names are not available: step definitions live in the application.| Parameter | Type | Description |
|---|---|---|
| limit | number | Page size (default ${DEFAULT_LIST_LIMIT}, max ${MAX_LIST_LIMIT}) |
| offset | number | Rows to skip (default 0) |
| state | string | Only executions in this state |
| workflowName | string | Only executions of this workflow |
bunqueue_move_to_delayedMove a job to the delayed state so it runs again after the given delay: an active job is released by its worker and rescheduled, a waiting/prioritized/delayed job is rescheduled. Completed and failed jobs cannot be moved (success: false). A job locked by a pull with an owner cannot be moved here (error "Lock token required"): finish it with bunqueue_ack_job / bunqueue_fail_job and its token, or let the lock expire.| Parameter | Type | Description |
|---|---|---|
| jobId * | string | Job ID |
bunqueue_obliterate_queueRemove ALL data from a queue (waiting, active, completed, failed). Destructive operation.bunqueue_observe_jobObserve completion or permanent failure using read-only polling. Unknown/removed jobs never imply success. timeoutMs 0 is a snapshot; cancellation stops polling. Legacy wait_for_job is unchanged.| Parameter | Type | Description |
|---|---|---|
| jobId * | string | |
| pollIntervalMs | number | |
| timeoutMs | number |
bunqueue_pause_queuePause job processing on a queue. No new jobs will be processed until resumed.bunqueue_promote_jobPromote a delayed job to waiting state for immediate processing.| Parameter | Type | Description |
|---|---|---|
| jobId * | string | Job ID to promote |
bunqueue_pull_jobPull a single job from a queue for processing (it becomes active). Returns null if no jobs available. With owner, the job is locked and carries a token field: ack, fail and heartbeat must pass it, and a lock not renewed within lockTtl (bunqueue_job_heartbeat with the token, or bunqueue_extend_lock) expires: the job counts an attempt and is requeued (or moved to the DLQ when none remain). Without owner no lock is taken and no token is returned.bunqueue_pull_job_batchPull multiple jobs from a queue in one operation. With owner, every job is locked and carries its own token (see bunqueue_pull_job).| Parameter | Type | Description |
|---|---|---|
| count * | number | Number of jobs to pull |
bunqueue_purge_dlqRemove all entries from the Dead Letter Queue permanently.bunqueue_register_handlerRegister an HTTP handler on a queue. Spawns a worker that auto-processes jobs by making HTTP requests. Combine with bunqueue_add_cron for recurring tasks.| Parameter | Type | Description |
|---|---|---|
| body | any | Request body template for POST/PUT (defaults to job data) |
| headers | object | Custom HTTP headers |
| method * | string | HTTP method (GET, POST, PUT, DELETE) |
| timeoutMs | number | Request timeout in ms (default: 30000) |
| url * | string | HTTP endpoint URL to call when a job is processed |
bunqueue_register_workerRegister a new worker to process jobs from specified queues.| Parameter | Type | Description |
|---|---|---|
| name * | string | Worker name/identifier |
| queues * | array | Queues this worker will process |
bunqueue_remove_webhookRemove a webhook by ID.| Parameter | Type | Description |
|---|---|---|
| id * | string | Webhook ID to remove |
bunqueue_resume_queueResume job processing on a paused queue.bunqueue_retry_completedRetry completed jobs - move them back to waiting state for reprocessing.bunqueue_retry_dlqRetry jobs from the Dead Letter Queue. Moves them back to waiting state.bunqueue_set_concurrencySet the concurrency limit of a queue: at most `limit` of its jobs are active at once across all workers; a pull beyond it gets nothing until a job finishes.bunqueue_set_rate_limitSet the rate limit of a queue: at most `limit` jobs start per `duration` ms (default 1000 ms, i.e. per second). It is a token bucket that refills continuously, so an idle queue can start up to `limit` jobs at once. Replaces any previous rate limit; read it back with bunqueue_get_queue_limits.| Parameter | Type | Description |
|---|---|---|
| duration | number | Window length in ms (default: 1000; e.g. 60000 = limit per minute) |
bunqueue_set_webhook_enabledEnable or disable a webhook without removing it.| Parameter | Type | Description |
|---|---|---|
| enabled * | boolean | Whether the webhook should be enabled |
| id * | string | Webhook ID |
bunqueue_signal_workflowDeliver a human-in-the-loop signal (for example an approval) to a workflow execution, like engine.signal(executionId, event, payload) in the application. The first signal for an event wins and can never be changed or withdrawn; signals are kept by name, so it also opens a later waitFor with the same event. A run parked at a waitFor resumes: this tool enqueues its next step job on queue "${ctx.queue}", and the application's Engine, connected to this same bunqueue server, runs it (this MCP server never runs workflow steps). A run that is still running keeps the signal until it reaches the gate. Fails, recording nothing, for an unknown execution, a run that already finished or failed, a duplicate signal, or an event other than the one a timed gate is waiting for. Returns { recorded, resumed }.| Parameter | Type | Description |
|---|---|---|
| event * | string | Event name of the waitFor gate, e.g. "approval" |
| executionId * | string | Workflow execution id |
| payload | any | Any JSON value; the run reads it as ctx.signals[event] |
bunqueue_unregister_handlerRemove an HTTP handler from a queue and stop its worker.bunqueue_unregister_workerUnregister a worker, removing it from the active workers list.| Parameter | Type | Description |
|---|---|---|
| workerId * | string | Worker ID to unregister |
bunqueue_update_job_dataUpdate the payload data of a job.| Parameter | Type | Description |
|---|---|---|
| data * | object | New job payload data |
| jobId * | string | Job ID |
bunqueue_update_progressUpdate job progress (0-100).| Parameter | Type | Description |
|---|---|---|
| jobId * | string | Job ID |
| message | string | Optional progress message |
| progress * | number | Progress value (0-100) |
bunqueue_wait_for_jobWait for a job to complete within a timeout. Returns completed: true as soon as the job has completed (at once if it already had), false if the timeout expires first.| Parameter | Type | Description |
|---|---|---|
| jobId * | string | Job ID to wait for |
| timeoutMs * | number | Maximum wait time in milliseconds |
bunqueue_worker_heartbeatSend a heartbeat to keep a registered worker alive.| Parameter | Type | Description |
|---|---|---|
| workerId * | string | Worker ID |
Security checks
- ✓README presentThe repository's README runs to about 3.4K words.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
4 checks have not been run yet.
README
The repository's README runs to about 3.4K words. The original in the repository is authoritative.
Read full README