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

mudbase-mcp-server

v0.2.0

Published

MCP server that exposes Mudbase database, storage, search, and Cells sandbox capabilities as tools for Claude Code and other MCP clients, gated by a Mudbase API key.

Readme

mudbase-mcp-server

An MCP (Model Context Protocol) server that exposes Mudbase's database, storage, and search capabilities as tools for Claude Code, Claude Desktop, and any other MCP client.

Every request is authenticated with a Mudbase API key, so this connects your assistant directly to real data in your own Mudbase project: list and query collections, read and write documents, search across a project, and manage files in storage.

Requirements

  • A Mudbase account and project. If you don't have one yet, create one at www.mudbase.dev.
  • An API key for that project, generated from your project's API Keys settings.
  • Node.js 18 or newer (only needed to run npx; most MCP clients already bundle Node).

Install

No install step is required. Point your MCP client at npx mudbase-mcp-server and it will download and run the latest version on demand.

Claude Code

Add this to your Claude Code MCP configuration:

{
  "mcpServers": {
    "mudbase": {
      "command": "npx",
      "args": ["mudbase-mcp-server"],
      "env": { "MUDBASE_API_KEY": "ak_..." }
    }
  }
}

Replace ak_... with a real API key from your Mudbase project settings. Restart Claude Code (or reload MCP servers) and the mudbase_* tools become available.

Other MCP clients

Any client that can launch an MCP server over stdio works the same way: run npx mudbase-mcp-server as the command, with MUDBASE_API_KEY set in its environment. Consult your client's own docs for where to put the command / args / env fields; the shape above is the common one.

Configuration

| Environment variable | Required | Description | | --- | --- | --- | | MUDBASE_API_KEY | Yes | Your Mudbase project API key. The server refuses to start without it and prints a clear error explaining how to set it. | | MUDBASE_BASE_URL | No | Override the API base URL (defaults to https://api.mudbase.dev). Only needed for a self-hosted or non-default deployment. |

The API key is read from the environment only. It is never logged, never written to disk, and never hardcoded anywhere in this package.

Available tools

Collections (read-only schema access)

  • mudbase_list_collections: list every collection in a project, with each field's declared type.
  • mudbase_get_collection: get one collection's full field schema and permission settings.

Documents (collection data)

  • mudbase_list_documents: list documents in a collection, with pagination, sorting, and a JSON filter.
  • mudbase_get_document: fetch a single document by ID.
  • mudbase_create_document: create a new document.
  • mudbase_update_document: partially update an existing document.
  • mudbase_delete_document: permanently delete a document.

Search

  • mudbase_search_documents: full-text search across a project, optionally scoped to specific collections or fields.

Storage

  • mudbase_list_buckets: list the storage buckets in a project.
  • mudbase_list_files: list files in a bucket, with search and MIME-type filters.
  • mudbase_get_file: get metadata for a single stored file.
  • mudbase_upload_file: upload a file from base64-encoded content.
  • mudbase_delete_file: permanently delete a file.
  • mudbase_get_file_download_url: generate a time-limited signed download URL for a file.

Every tool is a thin, typed wrapper over one real Mudbase API endpoint; none of them add new business logic beyond request shaping and error normalization. mudbase_delete_document and mudbase_delete_file are marked destructive in their tool metadata so a client can prompt for confirmation before calling them.

How errors are reported

A failed API call (invalid API key, missing project, validation error, rate limit, and so on) never crashes the server or throws an unhandled exception. It comes back to the MCP client as a normal tool result with isError: true and a JSON body describing what went wrong, for example:

{
  "error": "Mudbase rejected this API key. Check that MUDBASE_API_KEY is a valid, active key with access to this project.",
  "status": 401,
  "code": "unauthorized"
}

Development

npm install
npm run build       # compile TypeScript to dist/
npm run dev          # run the server directly from source with tsx
npm test              # run the unit test suite
npm run typecheck      # tsc --noEmit
npm run lint             # eslint

License

MIT. Built by the Mudbase Team.