Skip to content

Neon MCP and API

Neon provides hosted PostgreSQL databases with branch management, SQL queries and schema access. An agent can inspect PostgreSQL schemas and manage database branches. Sign in to Neon the first time an agent uses the server.

Add to Longwave

Install elsewhere

Install Neon

Choose a harness. These instructions connect to the hosted MCP endpoint shown on this page.

Claude Code

Run this in your terminal. It adds a user-scoped server; use --scope project instead if it should apply only to the current project.

terminal
claude mcp add --scope user --transport http neon https://mcp.neon.tech/mcp
access
Connect account

Use Neon on Longwave

  1. Download Longwave or open app.longwave.run.
  2. Sign in to Neon the first time an agent uses the server.
  3. Ask for the result in any thread, for example: “Inspect a database schema before writing SQL”. The agent picks the Neon function and calls it.

Use cases

Questions people ask

What is a Neon database branch?

A branch is an isolated copy of a project database state. It lets development work use a separate database branch. Neon documentation

Can the Neon MCP server run SQL?

The server exposes SQL execution tools for Neon databases. It also provides tools for project and branch management. Neon documentation

How do I add the Neon MCP server to Claude Code?

Run claude mcp add --transport http neon https://mcp.neon.tech/mcp in a terminal. Sign in to Neon the first time an agent uses the server.

Who publishes the Neon MCP server?

Neon publishes the Neon MCP server that Longwave installs.

Use Neon in Longwave

Call Neon from any agent thread, on your machine or in the cloud.

Add to Longwave