We ran the same workload through 42 models via AI Gateway and compared costs

Get started with Claude Desktop and Neon MCP Server

Connect Claude Desktop to Neon to manage projects, run queries, and make schema changes

This guide shows how to connect Claude Desktop to the Neon MCP Server so you can manage your Neon databases.

Security

The Neon MCP Server grants broad database management capabilities. Always review and authorize actions requested by the LLM before execution. See MCP security guidance.

Setting up Neon MCP server

Prerequisites

Option 1: Setting up the remote hosted Neon MCP Server

note

By default, the Remote MCP Server connects to your personal Neon account. To connect to an organization's account, you must authenticate with an API key. For more information, see API key-based authentication. Claude connectors currently don't support API key authentication.

Choose one of the following methods to set up the Remote Neon MCP server in Claude Desktop:

  1. Launch Claude Desktop and open the Search & Tools panel, and select Add Connector. Claude search and tools button
  2. Click on Add a custom one to open the custom connector modal. Claude custom connector button
  3. Enter Neon in the Name field and https://mcp.neon.tech/mcp in the Remote MCP server URL field, then click Add. Claude custom connector modal
  4. An OAuth window will open in your browser. Follow the prompts to authorize Claude to access your Neon account. Neon OAuth window
  5. After authorization, you can start using the Neon MCP server with Claude.

Option 2: API key authentication

This method uses the hosted Neon MCP Server with a Neon API key.

  1. Open claude_desktop_config.json (Claude Desktop → SettingsDeveloperEdit Config).

  2. Add the "Neon" server entry within the mcpServers object. Replace <YOUR_NEON_API_KEY> with your Neon API key:

    {
      "mcpServers": {
        "Neon": {
          "command": "npx",
          "args": [
            "-y",
            "mcp-remote@latest",
            "https://mcp.neon.tech/mcp",
            "--header",
            "Authorization:${NEON_AUTH_HEADER}"
          ],
          "env": {
            "NEON_AUTH_HEADER": "Bearer <YOUR_NEON_API_KEY>"
          }
        }
      }
    }
  3. Restart Claude Desktop.

Verifying the connection

Verify the connection:

  1. In Claude click on the search and tools icon to see the available tools. Claude available tools
  2. You should see the Neon MCP server's tools listed. Click on the neon tool to see the available tools in detail. Claude list available tools Ask Claude "List my Neon projects" to verify the connection. For example, you might see output similar to this:

Claude output

Resources

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

On this page

Copy neon init command

Author

Dhanush Reddy
Software Engineer