> ## Documentation Index
> Fetch the complete documentation index at: https://docs.spojit.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect the Neon MCP server

> Connect Neon's hosted MCP server to Spojit with OAuth or a Neon API key to manage Postgres projects, branches, and queries.

Neon hosts an MCP server for managing Neon Postgres: projects, branches, schema changes, and SQL queries. Connect it to Spojit to spin up a branch for a test run or run a check query from a workflow.

<Note>
  Spojit connects to this server through a [custom MCP server](/connectors/remote-mcp-servers/custom) connection, so you add it with **Add custom server** rather than from the connector catalog. Neon maintains it and decides which tools it offers; see [Neon's MCP documentation](https://neon.com/docs/ai/neon-mcp-server) for the current list.
</Note>

<Warning>
  Neon states the MCP server is intended for development and testing only. Review actions an agent requests before they run.
</Warning>

## Before you start

* A Neon account with access to the projects you want to use.

## Server URL

```
https://mcp.neon.tech/mcp
```

The older SSE endpoint (`https://mcp.neon.tech/sse`) is deprecated.

## Connect in Spojit

<Steps>
  <Step title="Add a custom server">
    Go to **Connections** and click **Add custom server**. Enter a **Name** such as `Neon` and paste the **Server URL**.
  </Step>

  <Step title="Keep Auto authentication">
    Leave **Authentication** on **Auto**, choose a visibility, and click **Save & connect**.
  </Step>

  <Step title="Authorize in Neon">
    Neon opens its authorization page. Sign in and click **Authorize**. Spojit marks the connection **Connected** and refreshes the token automatically.
  </Step>
</Steps>

### Alternative: a Neon API key

For unattended workflows, create an [API key](https://neon.com/docs/manage/api-keys) in the Neon Console. In Spojit choose **Token**, paste the key, keep **Header name** `Authorization` and **Prefix** `Bearer`, and click **Add**.

## Use it in a workflow

Add a **Connector** node, pick your Neon server under **Custom Servers**, and choose **Agent Mode** or **Direct Mode**. See [Use a custom server in a workflow](/connectors/remote-mcp-servers/custom#use-a-custom-server-in-a-workflow).

## Learn more

* [Neon MCP Server overview](https://neon.com/docs/ai/neon-mcp-server)
* [Connect MCP clients to Neon](https://neon.com/docs/ai/connect-mcp-clients-to-neon)

<Snippet file="start-free.mdx" />
