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

@setbase/mcp

v0.2.0

Published

Model Context Protocol server for Setbase

Readme

@setbase/mcp

Model Context Protocol (MCP) server for Setbase. Enables AI agents to interact with Setbase for infrastructure management.

Overview

The Setbase MCP server provides a set of tools that AI assistants can use to:

  • Create and initialize projects
  • Provision infrastructure resources
  • Deploy applications
  • Manage environment variables
  • Monitor project status
  • Destroy resources

Installation

pnpm install @setbase/mcp

Usage

As an MCP Server

The MCP server communicates via stdio and can be integrated with MCP-compatible clients like Claude Desktop.

Claude Desktop Configuration

Add to your Claude Desktop configuration (~/Library/Application Support/Claude/claude_desktop_config.json):

{
  "mcpServers": {
    "setbase": {
      "command": "node",
      "args": ["/path/to/setbase/packages/mcp/dist/index.js"]
    }
  }
}

Or if installed globally:

{
  "mcpServers": {
    "setbase": {
      "command": "setbase-mcp"
    }
  }
}

Programmatic Usage

import { startServer } from '@setbase/mcp';

// Start the MCP server
await startServer();

Available Tools

create_project

Initialize a new Setbase project with infrastructure resources.

Parameters:

  • name (string, required): Project name
  • runtime (string, required): Runtime environment (node, python, go)
  • framework (string, optional): Framework
  • resources (object, optional): Resources to provision (database, cache, storage, email)
  • deployment (object, optional): Deployment configuration

Example:

{
  "name": "my-saas",
  "runtime": "node",
  "framework": "next",
  "resources": {
    "database": {
      "provider": "neon",
      "config": { "region": "us-east-1" }
    }
  }
}

provision_resources

Provision resources defined in the project manifest.

Parameters:

  • force (boolean, optional): Force re-provisioning

deploy_project

Deploy the project to a specified environment.

Parameters:

  • environment (string, optional): Deployment environment (development, staging, production)
  • force (boolean, optional): Force deployment
  • skipBuild (boolean, optional): Skip build step

get_env

Get environment variables for the project.

Parameters:

  • environment (string, optional): Environment name (default: development)
  • format (string, optional): Output format (env, json)

get_status

Get the current status of the project, resources, and deployments.

Parameters:

  • verbose (boolean, optional): Include detailed resource information

destroy_project

Destroy all provisioned resources.

Parameters:

  • confirm (boolean, required): Confirmation to destroy (must be true)
  • keepState (boolean, optional): Keep state files after destruction

Environment Variables

  • SETBASE_PASSWORD: Password for encrypting credentials (optional)

Example Conversation with AI

User: Create a new Next.js project with a Postgres database and Redis cache

AI: I'll create that for you using Setbase.
[Calls create_project tool with appropriate configuration]

User: Deploy it to production

AI: I'll deploy your project to production.
[Calls deploy_project tool with environment: "production"]

User: Get the environment variables

AI: Here are your environment variables.
[Calls get_env tool and displays the results]

How It Works

The MCP server:

  1. Listens for tool calls from MCP clients (like Claude Desktop)
  2. Executes the requested operations using Setbase's core orchestrators
  3. Returns structured JSON responses to the client
  4. Maintains project state in .setbase/ directory

Security

  • Credentials are encrypted using AES-256-GCM
  • State files are stored locally in .setbase/ directory
  • The server runs in the context of the current working directory
  • All destructive operations require explicit confirmation

Development

# Build the package
pnpm build

# Watch mode
pnpm dev

# Run tests
pnpm test

# Lint
pnpm lint

Architecture

┌─────────────┐
│ MCP Client  │ (Claude Desktop, etc.)
└──────┬──────┘
       │ stdio
┌──────▼──────┐
│ MCP Server  │ (this package)
└──────┬──────┘
       │
┌──────▼──────┐
│   Tools     │ (create_project, deploy, etc.)
└──────┬──────┘
       │
┌──────▼──────┐
│   Context   │ (orchestrators, state)
└──────┬──────┘
       │
┌──────▼──────┐
│ @setbase/   │ (core package)
│    core     │
└─────────────┘

License

MIT