Initialize Neon projects
npm install neon-initSet up Neon for AI-powered database operations in VS Code, Cursor, and Claude CLI.
``sh`
npm add neon-init
`ts
import { init } from "neon-init";
await init();
`
Or via CLI:
`sh`
npx neon-init
Then:
1. Restart your editor (VS Code, Cursor, or Claude CLI)
2. Type "Get started with Neon" in your AI chat
- Automatically installs the databricks.neon-local-connect extensioncode --install-extension
- Uses the editor's CLI ( or cursor --install-extension)
- Configures the API key automatically via URI handler
- Provides local database development capabilities directly in your editor
- Allows management of your MCP server within the extension
- Creates or updates ~/.claude.json (global config - works across all projects)
- Configures remote MCP server with API key authentication
- Provides AI-powered database operations via MCP protocol
Supported Editors:
- VS Code (uses Neon Local Connect extension)
- Cursor (uses Neon Local Connect extension)
- Claude CLI (uses MCP Server)
The tool automatically detects which editors are installed on your system and you'll be prompted to choose which one(s) to configure.
Authentication: Uses OAuth via neonctl and creates an API key for you - opens your browser, no manual API keys needed.
Agent Guidelines: The Neon MCP Server includes built-in agent guidelines as an MCP resource. Your AI assistant will automatically have access to:
- Interactive "Get started with Neon" onboarding flow
- Security, performance, and schema management best practices
- Neon-specific features (branching, autoscaling, scale-to-zero)
automatically installs Neon-specific agent skills using Vercel's skills ecosystem. This enhances your agent with additional Neon capabilities and commands.- Runs
npx skills add neondatabase/agent-skills for each selected editor
- Auto-confirms installation with -y flag
- Maps editors to agent names: Cursor → cursor, VS Code → github-copilot, Claude CLI → claude-codeDevelopment
| Command | Description |
| ------------------------------- | ------------------------------ |
|
pnpm build | Build the package |
| pnpm tsx src/cli.ts | Run CLI locally (no build) |
| node dist/cli.js | Run built CLI |$3
| Command | Description |
| ------------------------------- | ----------------- |
|
pnpm --filter neon-init build | Build the package |
| pnpm --filter neon-init test` | Run the tests |