npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

flashq-mcp

v0.5.0

Published

MCP (Model Context Protocol) server for flashQ job queue - enables AI assistants like Claude to manage job queues

Readme

flashQ MCP Server

npm version

MCP (Model Context Protocol) server that enables AI assistants like Claude to manage flashQ job queues.

Installation

npm install -g flashq-mcp

Or use directly with npx:

npx flashq-mcp

Quick Start

  1. Start flashQ server with HTTP API enabled:
cd engine
HTTP=1 cargo run --release
  1. Configure Claude Desktop (~/.config/claude/claude_desktop_config.json):
{
  "mcpServers": {
    "flashq": {
      "command": "npx",
      "args": ["flashq-mcp"],
      "env": {
        "FLASHQ_HOST": "localhost",
        "FLASHQ_HTTP_PORT": "6790"
      }
    }
  }
}
  1. Restart Claude Desktop and start managing queues!

Configuration

Environment variables:

| Variable | Default | Description | |----------|---------|-------------| | FLASHQ_HOST | localhost | flashQ server host | | FLASHQ_HTTP_PORT | 6790 | HTTP API port | | FLASHQ_TOKEN | - | Auth token (optional) | | FLASHQ_TIMEOUT | 30000 | Request timeout (ms) |

Available Tools (55)

Job Operations (15 tools)

| Tool | Description | |------|-------------| | push_job | Create a new job with priority, delay, retry options | | push_batch_jobs | Create multiple jobs at once (max 1000) | | get_job | Get job details with current state | | get_job_state | Get only the job state | | get_job_result | Get completed job result | | get_job_by_custom_id | Find job by custom ID | | list_jobs | List jobs with filtering and pagination | | get_job_counts | Get job counts by state for a queue | | cancel_job | Cancel a pending job | | get_job_progress | Get progress for active job | | get_job_logs | Get log entries for a job | | change_priority | Change priority of a waiting job | | move_to_delayed | Move active job back to delayed state | | promote_job | Promote delayed job to waiting immediately | | discard_job | Move job directly to DLQ |

Worker Operations (6 tools)

| Tool | Description | |------|-------------| | pull_job | Pull a job from queue for processing | | ack_job | Acknowledge successful job completion | | fail_job | Mark job as failed (retry or DLQ) | | update_progress | Update job progress (0-100%) | | add_job_log | Add log entry during processing | | heartbeat | Send heartbeat for long-running jobs |

Queue Management (11 tools)

| Tool | Description | |------|-------------| | list_queues | List all queues with status | | pause_queue | Pause queue processing | | resume_queue | Resume paused queue | | is_queue_paused | Check if queue is paused | | drain_queue | Remove all waiting jobs | | count_jobs | Count waiting + delayed jobs | | set_rate_limit | Set jobs/sec limit | | clear_rate_limit | Remove rate limit | | set_concurrency | Set max concurrent jobs | | clear_concurrency | Remove concurrency limit | | obliterate_queue | DESTRUCTIVE: Delete queue and all data |

Dead Letter Queue (3 tools)

| Tool | Description | |------|-------------| | get_dlq | Get failed jobs from DLQ | | retry_dlq | Retry DLQ jobs | | purge_dlq | Remove all DLQ jobs |

Monitoring (7 tools)

| Tool | Description | |------|-------------| | get_stats | Get overall queue statistics | | get_metrics | Get detailed performance metrics | | get_metrics_history | Get historical metrics for trends | | health_check | Check server health and uptime | | list_workers | List active workers connected to server | | get_prometheus_metrics | Get metrics in Prometheus format | | get_system_metrics | Get CPU/memory system metrics |

Admin (4 tools)

| Tool | Description | |------|-------------| | list_crons | List scheduled cron jobs | | add_cron | Add a new cron job | | delete_cron | Delete a cron job | | clean_jobs | Clean old jobs by age/state |

Webhooks (3 tools)

| Tool | Description | |------|-------------| | list_webhooks | List registered webhooks | | create_webhook | Create webhook for job events | | delete_webhook | Delete a webhook |

Advanced (6 tools)

| Tool | Description | |------|-------------| | wait_job | Wait for job completion (sync workflows) | | update_job | Update job data while waiting | | push_flow | Push workflow with parent/children | | get_children | Get child jobs for a flow | | ack_batch | Batch acknowledge multiple jobs | | send_partial | Send partial/streaming result |

Example Conversations

Once configured, you can ask Claude:

Job Management:

  • "Push a job to the orders queue with priority 10"
  • "How many jobs are waiting in the emails queue?"
  • "Show me the failed jobs in the payments queue"
  • "Change the priority of job 123 to 100"

Worker Mode (Claude processes jobs!):

  • "Pull a job from the tasks queue and process it"
  • "Acknowledge job 456 with result success"
  • "Update progress on job 789 to 50%"

Queue Control:

  • "Pause the sync queue"
  • "Set rate limit of 10 jobs/sec on the api queue"
  • "Limit concurrency to 5 on the heavy-tasks queue"

Monitoring:

  • "What's the current throughput?"
  • "Show me the health status"
  • "Retry all DLQ jobs for the notifications queue"

Scheduling:

  • "Add a cron job that runs every 5 minutes on cleanup queue"
  • "List all scheduled cron jobs"

Architecture

┌─────────────┐     MCP (stdio)     ┌─────────────────┐     HTTP     ┌─────────────┐
│   Claude    │ ◄─────────────────► │  flashQ MCP     │ ◄──────────► │  flashQ     │
│             │                     │  Server (TS)    │   :6790      │  Engine     │
└─────────────┘                     └─────────────────┘              └─────────────┘

Development

# Clone and install
git clone https://github.com/flashq/flashq.git
cd flashq/mcp
bun install

# Development
bun run dev

# Type check
bun run typecheck

# Lint
bun run lint

# Format
bun run format

# Build
bun run build

# Test
bun run test

License

MIT