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

@cle-does-things/workerbase-mcp

v0.1.0

Published

Local MCP server for workerbase, a knowledge base running on Cloudflare workers

Downloads

117

Readme

@cle-does-things/workerbase-mcp

A local Model Context Protocol (MCP) server that connects an MCP-compatible client (Claude Desktop, Cursor, etc.) to a workerbase Cloudflare Worker, letting your LLM ingest, read, grep, and retrieve from a Qdrant-backed knowledge base.

The server runs locally over stdio and forwards requests to your deployed worker using an API key.

Features

Exposes four tools to the MCP client:

| Tool | Description | | ---------- | ------------------------------------------------------------------------------------------------------- | | store | Upload a local file (text or PDF) to the knowledge base. Returns a file_key used by the other tools. | | read | Read a stored file by file_key, with optional offset and max_chars. | | grep | Run a regex search inside a stored file, with optional match limit and surrounding context. | | retrieve | BM25 keyword search across the knowledge base, with optional top_k, file_key, and metadata filters. |

Installation

Run it directly with npx (recommended for MCP client configs):

npx -y @cle-does-things/workerbase-mcp

Or install it globally:

npm install -g @cle-does-things/workerbase-mcp
workerbase-mcp

Configuration

The server reads two environment variables:

| Variable | Description | | -------------------- | ----------------------------------------------------- | | WORKERBASE_URL | URL of your deployed workerbase Cloudflare Worker. | | WORKERBASE_API_KEY | Bearer token used to authenticate against the worker. |

If either variable is missing, every tool call will return an error.

Usage with Claude

Add the server to your Claude Desktop / Claude Code:

{
	"mcpServers": {
		"workerbase": {
			"command": "npx",
			"args": ["-y", "@cle-does-things/workerbase-mcp"],
			"env": {
				"WORKERBASE_URL": "https://your-worker.workers.dev",
				"WORKERBASE_API_KEY": "your-api-key"
			}
		}
	}
}

The same command / args / env shape works for Cursor, Windsurf, and any other MCP client.

Tool reference

store

Uploads a local file to the knowledge base.

| Parameter | Type | Required | Description | | ----------- | --------------- | -------- | --------------------------------------------------------------------------------------------------- | | file_path | string | yes | Absolute path to the file on disk. | | file_type | string | yes | MIME type (e.g. application/pdf, text/markdown). | | metadata | string (JSON) | no | Serialized JSON object. Values may be string, number, boolean, or null. Arrays not allowed. |

Returns the file_key to use with the other tools.

read

| Parameter | Type | Required | Description | | ----------- | -------- | -------- | ---------------------------------------------------------------- | | file_key | string | yes | Key returned by store. | | offset | number | no | Character offset to start reading at. Defaults to 0. | | max_chars | number | no | Max characters to read. Defaults to the full file from offset. |

grep

| Parameter | Type | Required | Description | | ------------- | -------- | -------- | ------------------------------------------------------ | | file_key | string | yes | Key returned by store. | | pattern | string | yes | Regex pattern to match. | | context | number | no | Number of characters of surrounding context per match. | | max_matches | number | no | Maximum number of matches to return. Defaults to all. |

retrieve

BM25 keyword search across the knowledge base.

| Parameter | Type | Required | Description | | ---------- | ------------------ | -------- | ------------------------------------------------------------------- | | query | string | yes | Search query. | | top_k | number | no | Number of results to return. Defaults to 10. | | file_key | string | no | Restrict the search to a single file. Defaults to all files. | | filters | MetadataFilter[] | no | Metadata filters. Filtered fields must have a Qdrant payload index. |

Each MetadataFilter has the shape:

{
  operator: 'eq' | 'ne' | 'ge' | 'le' | 'gt' | 'lt' | 'true' | 'false';
  field: string;
  value?: string | number | boolean | null; // required unless operator is 'true' or 'false'
}

Development

yarn install
yarn build      # compiles to dist/ and marks dist/index.js executable
yarn lint
yarn test

The entry point is src/index.ts; the built CLI is exposed as the fuseproxy bin.

License

MIT © Clelia Astra Bertelli