{"_id":"@adamhancock/postgres-claude-mcp-wrapper","name":"@adamhancock/postgres-claude-mcp-wrapper","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@adamhancock/postgres-claude-mcp-wrapper","version":"1.0.0","description":"A simple CLI tool to configure PostgreSQL Model Context Protocol (MCP) server for Claude Desktop using environment variables.","type":"module","main":"index.js","bin":{"postgres-mcp-setup":"setup-mcp.ts"},"keywords":[],"author":"","license":"ISC","dependencies":{"zx":"^8.8.1"},"devDependencies":{"@types/node":"^24.3.1","dotenv":"^17.2.2","tsx":"^4.20.5"},"scripts":{"setup":"tsx setup-mcp.ts","test":"echo \"Error: no test specified\" && exit 1"},"_id":"@adamhancock/postgres-claude-mcp-wrapper@1.0.0","_integrity":"sha512-73faLN6x3JIxwdHcRSu6dPHP4oba9NiLMnl1j91uaWyiIjoGwaZJQ5J16IN3IyLGvjvmGEtrS3QnPxJcrfKG/Q==","_resolved":"/tmp/b05696634cfb03dc1db2c5b9514b2772/adamhancock-postgres-claude-mcp-wrapper-1.0.0.tgz","_from":"file:adamhancock-postgres-claude-mcp-wrapper-1.0.0.tgz","_nodeVersion":"22.19.0","_npmVersion":"10.9.3","dist":{"integrity":"sha512-73faLN6x3JIxwdHcRSu6dPHP4oba9NiLMnl1j91uaWyiIjoGwaZJQ5J16IN3IyLGvjvmGEtrS3QnPxJcrfKG/Q==","shasum":"fca2f47fdbad53f2c771ce6757e4783452b7f8b5","tarball":"https://registry.npmjs.org/@adamhancock/postgres-claude-mcp-wrapper/-/postgres-claude-mcp-wrapper-1.0.0.tgz","fileCount":4,"unpackedSize":3692,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIEZ2Kyk5pyMz1mJX8xmaOVBpoQmZQF75Pc7gBRkcPxVQAiEA41krnlaBGpZsmU2dfI9qtP/mN3KgnqHw/PQ6TZQyMhc="}]},"_npmUser":{"name":"adam1571","email":"adammhancock@gmail.com"},"directories":{},"maintainers":[{"name":"adam1571","email":"adammhancock@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/postgres-claude-mcp-wrapper_1.0.0_1757681388071_0.2098657018180734"},"_hasShrinkwrap":false}},"time":{"created":"2025-09-12T12:49:48.015Z","1.0.0":"2025-09-12T12:49:48.245Z","modified":"2025-09-12T12:49:48.530Z"},"maintainers":[{"name":"adam1571","email":"adammhancock@gmail.com"}],"description":"A simple CLI tool to configure PostgreSQL Model Context Protocol (MCP) server for Claude Desktop using environment variables.","keywords":[],"license":"ISC","readme":"# Postgres Claude MCP Wrapper\n\nA simple CLI tool to configure PostgreSQL Model Context Protocol (MCP) server for Claude Desktop using environment variables.\n\n## Installation\n\n```bash\n# Install globally\nnpm install -g @adamhancock/postgres-claude-mcp-wrapper\n\n# Or use with npx\nnpx @adamhancock/postgres-claude-mcp-wrapper\n\n# Or install locally\npnpm add @adamhancock/postgres-claude-mcp-wrapper\n```\n\n## Setup\n\n1. Create a `.env` file in your project root:\n\n```bash\ncp .env.example .env\n```\n\n2. Edit `.env` with your PostgreSQL connection string:\n\n```env\nDATABASE_URL=postgresql://username:password@host:port/database\n```\n\n## Usage\n\n### Using the CLI command (if installed)\n```bash\npostgres-mcp-setup\n```\n\n### Using npm scripts\n```bash\npnpm run setup\n```\n\n### Using tsx directly\n```bash\ntsx setup-mcp.ts\n```\n\n## What it does\n\nThis tool automatically configures the Claude Desktop app to connect to your PostgreSQL database by:\n\n1. Reading your `DATABASE_URL` from the `.env` file\n2. Running `claude mcp add-json` with the proper configuration\n3. Setting up the MCP server to use `@modelcontextprotocol/server-postgres`\n\n## Environment Variables\n\n- `DATABASE_URL` - PostgreSQL connection string (required)\n\n## Example\n\n```bash\n# With a local PostgreSQL database\nDATABASE_URL=postgresql://dev_user:dev_password@127.0.0.1:5432/my_database\n\n# With a remote database\nDATABASE_URL=postgresql://user:pass@db.example.com:5432/production_db\n```\n\n## Security\n\nThe tool masks passwords when displaying connection information in the console output for security.\n\n## Requirements\n\n- Node.js 18+\n- Claude Code\n- PostgreSQL database accessible from your machine\n\n## License\n\nISC","readmeFilename":"README.md","_rev":"1-32986f4017f3cb3ae9849489b634d8d8"}