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

@razroo/parallel-mcp-server

v0.4.1

Published

MCP server that exposes @razroo/parallel-mcp orchestration tools over stdio

Readme

@razroo/parallel-mcp-server

npm license node

@razroo/parallel-mcp-server is a thin Model Context Protocol server on top of @razroo/parallel-mcp. It exposes the durable-orchestration core — runs, tasks, leases, context snapshots, the event log — as MCP tools that an agent can call over stdio.

If @razroo/parallel-mcp is the "engine", this package is the "steering column" that lets an MCP client drive it.

What it gives you

  • One MCP tool per public orchestrator method
  • A ready-to-run parallel-mcp-server stdio binary
  • A createParallelMcpServer(...) factory for embedding the server in your own process
  • Typed errors from the core bubble up as MCP isError tool results with the original error name preserved

Install

npm install @razroo/parallel-mcp-server

Requires Node.js >=22. Pulls in @razroo/parallel-mcp and @modelcontextprotocol/sdk.

Run as a stdio server

The package ships a binary that opens a SQLite store and speaks MCP over stdio:

# in-memory store, lost when the process exits
npx parallel-mcp-server

# durable SQLite file
PARALLEL_MCP_DB=./parallel-mcp.db npx parallel-mcp-server

Point your MCP client (Cursor, Claude Desktop, etc.) at that binary. For example in a Cursor MCP config:

{
  "mcpServers": {
    "parallel-mcp": {
      "command": "npx",
      "args": ["-y", "@razroo/parallel-mcp-server"],
      "env": {
        "PARALLEL_MCP_DB": "/absolute/path/to/parallel-mcp.db"
      }
    }
  }
}

Run as a Streamable HTTP server

The package also ships parallel-mcp-server-http, which serves the same tool surface over the MCP Streamable HTTP transport — useful for remote deployments where stdio is not an option.

PARALLEL_MCP_DB=./parallel-mcp.db \
PARALLEL_MCP_PORT=3333 \
PARALLEL_MCP_HOST=127.0.0.1 \
PARALLEL_MCP_TOKEN=some-shared-secret \
npx parallel-mcp-server-http

Environment variables:

  • PARALLEL_MCP_DB — SQLite filename (default :memory:)
  • PARALLEL_MCP_PORT — listening port (default 3333)
  • PARALLEL_MCP_HOST — bind address (default 127.0.0.1)
  • PARALLEL_MCP_PATH — MCP endpoint path (default /mcp)
  • PARALLEL_MCP_TOKEN — optional. When set, every request must include Authorization: Bearer <token> or the server responds 401.

MCP clients connect with new StreamableHTTPClientTransport(new URL('http://host:port/mcp')).

Embed in your own server

Stdio

import { createParallelMcpServer } from '@razroo/parallel-mcp-server'
import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js'

const handle = createParallelMcpServer({
  storeOptions: { filename: './parallel-mcp.db' },
  defaultLeaseMs: 30_000,
})

await handle.server.connect(new StdioServerTransport())

HTTP

import { createParallelMcpHttpServer } from '@razroo/parallel-mcp-server'

const handle = createParallelMcpHttpServer({
  storeOptions: { filename: './parallel-mcp.db' },
  port: 3333,
  host: '0.0.0.0',
  authToken: process.env.PARALLEL_MCP_TOKEN,
})

const { url } = await handle.listen()
console.log(`parallel-mcp MCP server listening at ${url}`)

Both factories accept an existing SqliteParallelMcpStore or ParallelMcpOrchestrator — useful if you want to share one store between an HTTP surface, a stdio surface, and in-process workers.

Tool reference

All tools accept JSON objects and return JSON-encoded orchestrator records. Errors from the core (DuplicateTaskKeyError, RunTerminalError, LeaseConflictError, LeaseExpiredError, MaxAttemptsExceededError, etc.) are surfaced as MCP error results with the error name in the message.

Runs:

  • create_run{ id?, namespace?, externalId?, metadata?, context? }
  • get_run{ runId }
  • cancel_run{ runId, reason? }
  • list_run_tasks{ runId }
  • list_run_events{ runId }

Tasks:

  • enqueue_task{ runId, kind, key?, priority?, maxAttempts?, retry?, input?, metadata?, contextSnapshotId?, dependsOnTaskIds? }
  • claim_next_task{ workerId, leaseMs?, kinds? }
  • mark_task_running{ taskId, leaseId, workerId }
  • pause_task{ taskId, leaseId, workerId, status: 'blocked' | 'waiting_input', reason? }
  • resume_task{ taskId }
  • complete_task{ taskId, leaseId, workerId, output?, metadata?, nextContext?, nextContextLabel? }
  • fail_task{ taskId, leaseId, workerId, error, metadata? }
  • release_task{ taskId, leaseId, workerId, reason? }
  • get_task{ taskId }

Leases:

  • heartbeat_lease{ taskId, leaseId, workerId, leaseMs? }
  • expire_leases{ now? }{ expiredTaskIds, count }

Context:

  • append_context_snapshot{ runId, payload, scope?, label?, taskId?, parentSnapshotId?, id? }
  • get_current_context_snapshot{ runId }

Scope

This package is deliberately a thin adapter. It is not an agent, a planner, or a scheduler. The assumed topology is:

  1. Your agent (an MCP client) calls these tools to enqueue work and claim tasks.
  2. Actual worker processes can either be other MCP clients calling claim_next_task / complete_task / fail_task, or they can consume @razroo/parallel-mcp directly in-process.
  3. The MCP surface and the in-process surface agree because they are the same orchestrator.

License

MIT, same as @razroo/parallel-mcp.