# Neon

> Neon is an MCP server for databases. Official Neon MCP server for managing Postgres projects, branches and queries. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Platforms:** API, CLI
- **Website:** https://neon.com/docs/ai/neon-mcp-server
- **Repository:** https://github.com/neondatabase/mcp-server-neon
- **MCP Registry name:** com.neon/mcp
- **Categories:** [databases](https://ai-powered.com/categories/databases), [cloud and infrastructure](https://ai-powered.com/categories/cloud-and-infrastructure)
- **Listing updated:** 2026-11-23

## About

Neon's hosted MCP server lets an assistant manage Neon projects and Lakebase Postgres databases: run queries, make schema changes and create branches. The docs warn that this grants broad database management capabilities, so you should review every action the model proposes and limit access to trusted users.

Setup is one command, npx neon@latest mcp, which asks where to write config, which agents to install into and how to authenticate. For CI or headless agents, neon mcp -y with an API key does the same without prompts. The endpoint at mcp.neon.tech supports OAuth and API keys, and is an official Claude connector for Claude.ai and Claude Desktop.

Access control is done in the URL. ?readonly=true keeps SELECTs and schema inspection but disables writes, run_sql_transaction and get_connection_string. ?projectId= scopes everything to one project and hides list_projects and create_project. ?category= restricts tools to named groups such as querying.

## Features

- **Project management:** Creates and lists projects and branches.
- **SQL execution:** run_sql and run_sql_transaction query and change data.
- **Read-only mode:** ?readonly=true disables writes and keeps SELECTs.
- **Project scoping:** ?projectId= limits operations to one project.
- **Category filtering:** Narrow tools to groups such as querying.
- **OAuth or API key:** Authenticate in a browser or with a key for headless setups.

## Good for

- Inspect a Postgres schema from an assistant
- Let an agent try a migration on a branch
- Give a read-only assistant access to production data
- Limit an agent to a single project

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add --transport http mcp https://mcp.neon.tech/mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "mcp": {
      "type": "http",
      "url": "https://mcp.neon.tech/mcp"
    }
  }
}
```

### Claude Desktop (Customize → Connectors → Add → Add custom connector)

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

Paste this URL, choose how to sign in, then click Add and Connect. On Team and Enterprise an Owner adds it in Organization settings → Connectors.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "mcp": {
      "url": "https://mcp.neon.tech/mcp"
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "mcp": {
      "type": "http",
      "url": "https://mcp.neon.tech/mcp"
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### ChatGPT (chatgpt.com → Plugins → + → Add custom MCP server)

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

Paste this URL, set up sign-in, accept the warning and install the plugin. Then type @ in a chat to use it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add mcp --url https://mcp.neon.tech/mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.mcp]
url = "https://mcp.neon.tech/mcp"
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "mcp": {
      "httpUrl": "https://mcp.neon.tech/mcp"
    }
  }
}
```

Or run: gemini mcp add -s user --transport http mcp https://mcp.neon.tech/mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "mcp": {
      "serverUrl": "https://mcp.neon.tech/mcp"
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "mcp": {
      "url": "https://mcp.neon.tech/mcp",
      "transport": "http"
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "mcp": {
      "type": "streamableHttp",
      "url": "https://mcp.neon.tech/mcp"
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "mcp": {
      "url": "https://mcp.neon.tech/mcp"
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "mcp": {
      "url": "https://mcp.neon.tech/mcp"
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "mcp": {
      "url": "https://mcp.neon.tech/mcp"
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "mcp": {
      "url": "https://mcp.neon.tech/mcp"
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Grok Bot (Grok Bot desktop app → Connect apps → Add a custom connector)

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

Enter a Name (for example "Neon"), choose Type: Remote HTTPS, paste this as the Server URL and choose Add plugin. When we checked, this server asked for OAuth sign-in. If its docs give you an OAuth client ID and secret, enter them in the form's OAuth Client ID and Client Secret fields.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "mcp": {
      "type": "http",
      "url": "https://mcp.neon.tech/mcp"
    }
  }
}
```

## Tools

Going by the tool names, 3 of 5 tools change data. From the server's own tool labels and tool names; not verified by us.

- `run_sql` (name suggests: changes): Run a SQL query.
- `run_sql_transaction` (name suggests: changes): Run SQL statements in a transaction.
- `get_connection_string` (name suggests: reads): Get a connection string.
- `list_projects` (name suggests: reads): List Neon projects.
- `create_project` (name suggests: changes): Create a Neon project.

## FAQ

### How do I install Neon?

Run npx neon@latest mcp, or add https://mcp.neon.tech/mcp to your client.

### How do I make Neon read-only?

Append ?readonly=true to the URL, or choose read-only scope during OAuth.

### Is Neon an official connector?

Yes, it is an official Claude connector for Claude.ai and Claude Desktop.

### How does auth work?

OAuth in a browser, or an API key via an Authorization header.

### How do I add Neon to Claude Code?

Run this command in your terminal: claude mcp add --transport http mcp https://mcp.neon.tech/mcp

### What are the best alternatives to Neon?

The closest alternatives to Neon are awslabs, kubeshark, Azure MCP Server, Pitot and Runeward.

## Where this comes from

- Description: written from the project's README and the project's website.
- Status: checked automatically by AIPoweredBot on 25 November 2026.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [awslabs](https://ai-powered.com/mcp/awslabs): awslabs is an open-source MCP server for cloud and infrastructure.
- [kubeshark](https://ai-powered.com/mcp/kubeshark): kubeshark is an open-source MCP server for cloud and infrastructure.
- [Azure MCP Server](https://ai-powered.com/mcp/azure-mcp-server): Azure MCP Server is an open-source MCP server for cloud and infrastructure.
- [Pitot](https://ai-powered.com/mcp/pitot): Pitot is an open-source MCP server for cloud and infrastructure.
- [Runeward](https://ai-powered.com/mcp/runeward): Runeward is an open-source MCP server for developer tools.
- [Midplane](https://ai-powered.com/mcp/midplane): Midplane is an open-source MCP server for databases.
- [Datatomcp](https://ai-powered.com/mcp/datatomcp-2): Datatomcp is a freemium MCP server for analytics and data.
- [Gulliver](https://ai-powered.com/mcp/gulliver): Gulliver is an open-source MCP server for databases.

---
Source: https://ai-powered.com/mcp/neon
