New in Neon: Vector and BM25 full-text search extensions built for lakebase architecture, plus major CLI updates. See what shipped this week.
/One-command setup

Get started with your AI agent

Connect your AI coding assistant to Neon

npx neonctl@latest init gives your agent two things: Neon-specific context from agent skills, and tools to act on your Neon account through the MCP server. The result is an agent that can connect your app to Neon and help you use Neon features as you build. For Cursor and VS Code, it also installs the Neon Local Connect extension for in-editor schema browsing.

For a full app walkthrough, see Build a full backend.

Before you start

You'll need:

  1. Run the init command

    From your project root, run:

    npx neonctl@latest init

    The wizard asks which editor to configure, then:

    Run this from your project root so the skills are installed in the right place. For details and manual setup, see the neonctl init reference.

  2. Restart your editor

    Reload your editor so it picks up the new MCP configuration and skills. For Cursor and VS Code, this also activates the Neon Local Connect extension.

  3. Tell your agent

    In your editor's AI chat, send:

    Get started with Neon

    Your agent reads the installed skill and uses the MCP server to walk you through setup. It can:

    • Create a Neon project
    • Configure your app
    • Write your DATABASE_URL to .env
    • Suggest a Postgres driver and starter query

    The exact flow depends on your project. Your agent can scaffold a new connection or help with a migration.

What's next

Need help?

Join our Discord Server to ask questions or see what others are doing with Neon. For paid plan support options, see Support.

Was this page helpful?
Edit on GitHub