1. Conduid
  2. Data
  3. bunqueue
MCP server · Data

bunqueue

⚡ 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.

64Good

Scored 20 hours ago · breakdown

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

Install
npx bunqueue
Claude Code
claude mcp add bunqueue -- npx -y bunqueue
npx
npx -y bunqueue
From source
git clone git+https://github.com/egeominotti/bunqueue

Tools (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.
ParameterTypeDescription
jobId *stringJob ID to acknowledge
resultanyOptional 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.
ParameterTypeDescription
jobIds *arrayArray 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.
ParameterTypeDescription
data *objectPayload of every job the schedule adds
name *stringUnique schedule name
repeatEverynumberAlternative to schedule: run every N milliseconds
schedulestringCron 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.
ParameterTypeDescription
childrenarrayChild jobs (processed BEFORE this job)
dataobjectRoot job payload
bunqueue_add_flow_bulk_thenFan-out/fan-in: run parallel jobs, then execute a final job when ALL parallel jobs complete.
ParameterTypeDescription
parallel *arrayJobs 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.
ParameterTypeDescription
steps *arraySteps 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).
ParameterTypeDescription
data *objectJob payload data
bunqueue_add_job_logAdd a log entry to a job.
ParameterTypeDescription
jobId *stringJob ID
levelstringLog level (default: info)
message *stringLog 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.
ParameterTypeDescription
jobs *arrayArray of jobs to add
bunqueue_add_webhookAdd a webhook to receive notifications for job events.
ParameterTypeDescription
events *arrayEvents to subscribe to
url *stringWebhook 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.
ParameterTypeDescription
argumentsobjectTool arguments
name *stringTool 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.
ParameterTypeDescription
jobId *stringJob 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").
ParameterTypeDescription
jobId *stringJob ID
bunqueue_change_job_priorityChange the priority of a waiting job. Higher priority = processed first.
ParameterTypeDescription
jobId *stringJob ID
bunqueue_clean_queueRemove old completed and/or failed jobs from a queue. Waiting, delayed and active jobs are never touched.
ParameterTypeDescription
graceMs *numberGrace period in ms - only remove jobs older than this
limitnumberMaximum number of jobs to remove in total (default: 1000 per state)
statestringState 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.
ParameterTypeDescription
jobId *stringJob ID
keepLogsnumberNumber 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.
ParameterTypeDescription
name *stringCron 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.
ParameterTypeDescription
jobId *stringJob 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)}
ParameterTypeDescription
toolsets *arrayToolsets 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.
ParameterTypeDescription
jobId *stringJob 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.
ParameterTypeDescription
errorstringError message
jobId *stringJob ID to fail
unrecoverablebooleanSkip 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.
ParameterTypeDescription
request *stringWhat 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.
ParameterTypeDescription
parentJobId *stringParent 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.
ParameterTypeDescription
name *stringCron 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.
ParameterTypeDescription
limitnumberMax entries to return (default: 20, max ${MAX_DLQ_PAGE})
offsetnumberMatching entries to skip first (default: 0)
reasonstringOnly 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.
ParameterTypeDescription
depthnumberMax traversal depth (default: 10)
jobId *stringJob ID to get flow tree for
maxChildrennumberMax 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).
ParameterTypeDescription
jobId *stringJob 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.
ParameterTypeDescription
customId *stringCustom 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.
ParameterTypeDescription
jobId *stringJob ID
bunqueue_get_job_resultGet the result of a completed job.
ParameterTypeDescription
jobId *stringJob 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).
ParameterTypeDescription
jobId *stringJob 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.
ParameterTypeDescription
endnumberEnd index for pagination (default: 20)
startnumberStart index for pagination (default: 0)
statestringFilter 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).
ParameterTypeDescription
jobId *stringJob 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).
ParameterTypeDescription
executionId *stringWorkflow 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.
ParameterTypeDescription
jobId *stringJob 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.
ParameterTypeDescription
jobIds *arrayArray 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.
ParameterTypeDescription
includeDataboolean
limitnumber
offsetnumber
statestring
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.
ParameterTypeDescription
limitnumberPage size (default ${DEFAULT_LIST_LIMIT}, max ${MAX_LIST_LIMIT})
offsetnumberRows to skip (default 0)
statestringOnly executions in this state
workflowNamestringOnly 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.
ParameterTypeDescription
jobId *stringJob 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.
ParameterTypeDescription
jobId *string
pollIntervalMsnumber
timeoutMsnumber
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.
ParameterTypeDescription
jobId *stringJob 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).
ParameterTypeDescription
count *numberNumber 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.
ParameterTypeDescription
bodyanyRequest body template for POST/PUT (defaults to job data)
headersobjectCustom HTTP headers
method *stringHTTP method (GET, POST, PUT, DELETE)
timeoutMsnumberRequest timeout in ms (default: 30000)
url *stringHTTP endpoint URL to call when a job is processed
bunqueue_register_workerRegister a new worker to process jobs from specified queues.
ParameterTypeDescription
name *stringWorker name/identifier
queues *arrayQueues this worker will process
bunqueue_remove_webhookRemove a webhook by ID.
ParameterTypeDescription
id *stringWebhook 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.
ParameterTypeDescription
durationnumberWindow length in ms (default: 1000; e.g. 60000 = limit per minute)
bunqueue_set_webhook_enabledEnable or disable a webhook without removing it.
ParameterTypeDescription
enabled *booleanWhether the webhook should be enabled
id *stringWebhook 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 }.
ParameterTypeDescription
event *stringEvent name of the waitFor gate, e.g. "approval"
executionId *stringWorkflow execution id
payloadanyAny 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.
ParameterTypeDescription
workerId *stringWorker ID to unregister
bunqueue_update_job_dataUpdate the payload data of a job.
ParameterTypeDescription
data *objectNew job payload data
jobId *stringJob ID
bunqueue_update_progressUpdate job progress (0-100).
ParameterTypeDescription
jobId *stringJob ID
messagestringOptional progress message
progress *numberProgress 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.
ParameterTypeDescription
jobId *stringJob ID to wait for
timeoutMs *numberMaximum wait time in milliseconds
bunqueue_worker_heartbeatSend a heartbeat to keep a registered worker alive.
ParameterTypeDescription
workerId *stringWorker 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
Questions

About bunqueue

How do I install bunqueue?

Run npx bunqueue, then add the server to your MCP client's configuration.

Is bunqueue safe to use with an AI agent?

Its trust score is 64 out of 100 (good). It passes 1 of the 2 static checks Conduid ran on the repository; it does not pass Scoped permissions. It has no ConduID identity yet, so agent calls to it are not receipted.

Is bunqueue still maintained?

Conduid hasn't recorded a commit date for this repository yet. Check the repository directly for recent activity.

What tools does bunqueue provide?

Conduid read 85 tools from the source: bunqueue_ack_job, bunqueue_ack_job_batch, bunqueue_add_cron, bunqueue_add_flow, bunqueue_add_flow_bulk_then, bunqueue_add_flow_chain, bunqueue_add_job, bunqueue_add_job_log and 77 more. 53 of them publish their parameters, listed under Tools above.