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

@adamhancock/postgres-claude-mcp-wrapper

v1.0.0

Published

A simple CLI tool to configure PostgreSQL Model Context Protocol (MCP) server for Claude Desktop using environment variables.

Downloads

63

Readme

Postgres Claude MCP Wrapper

A simple CLI tool to configure PostgreSQL Model Context Protocol (MCP) server for Claude Desktop using environment variables.

Installation

# Install globally
npm install -g @adamhancock/postgres-claude-mcp-wrapper

# Or use with npx
npx @adamhancock/postgres-claude-mcp-wrapper

# Or install locally
pnpm add @adamhancock/postgres-claude-mcp-wrapper

Setup

  1. Create a .env file in your project root:
cp .env.example .env
  1. Edit .env with your PostgreSQL connection string:
DATABASE_URL=postgresql://username:password@host:port/database

Usage

Using the CLI command (if installed)

postgres-mcp-setup

Using npm scripts

pnpm run setup

Using tsx directly

tsx setup-mcp.ts

What it does

This tool automatically configures the Claude Desktop app to connect to your PostgreSQL database by:

  1. Reading your DATABASE_URL from the .env file
  2. Running claude mcp add-json with the proper configuration
  3. Setting up the MCP server to use @modelcontextprotocol/server-postgres

Environment Variables

  • DATABASE_URL - PostgreSQL connection string (required)

Example

# With a local PostgreSQL database
DATABASE_URL=postgresql://dev_user:[email protected]:5432/my_database

# With a remote database
DATABASE_URL=postgresql://user:[email protected]:5432/production_db

Security

The tool masks passwords when displaying connection information in the console output for security.

Requirements

  • Node.js 18+
  • Claude Code
  • PostgreSQL database accessible from your machine

License

ISC