# Neon (MCP Server)

> Manage Neon Postgres projects, branches and queries in natural language

- Type: MCP server
- Publisher: Neon (official)
- Categories: Development, Data & Analytics
- Website: https://neon.com/docs/ai/neon-mcp-server
- Source: https://github.com/neondatabase/mcp-server-neon
- Transport: streamable-http
- Server URL: https://mcp.neon.tech/mcp
- Launch command: npx neon@latest mcp
- Sign-in: oauth
- GitHub stars: 648
- Listed: 2024-12-01

## About

Neon's official MCP server lets assistants manage Neon projects and branches, run SQL, inspect schemas and run safe migrations on temporary branches. The hosted server supports OAuth or API key auth, read-only mode, project scoping and tool-category filtering via URL parameters.

## Install

1. **Connect it in ChatGPT** Turn on Developer mode in ChatGPT (Settings → Security and login), open Plugins, select + and paste https://mcp.neon.tech/mcp as the MCP server URL, then sign in with OAuth. Add it to a chat from the composer's tools menu.

2. **Or add it to Codex or the API**

   Codex CLI:

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

   config.toml:

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

   Responses API:

   ```python
   import os
   from openai import OpenAI
   
   client = OpenAI()
   
   response = client.responses.create(
       model="gpt-6-astra",
       tools=[{
           "type": "mcp",
           "server_label": "neon",
           "server_url": "https://mcp.neon.tech/mcp",
           "authorization": os.environ["NEON_API_KEY"],
           "require_approval": "never",
       }],
       input="Create a new Neon project called analytics",
   )
   print(response.output_text)
   ```

## Tools

- `list_projects`
- `create_project`
- `create_branch`
- `run_sql`
- `describe_table_schema`
- `inspect_database`

## Example prompts

- "Create a new Neon project called analytics"
- "Create a branch and test adding an index on orders.created_at"
- "Show the schema of the users table"
- "Run diagnostics on my production database"

## Also available as

- app: [Neon](https://chatgptplugins.directory/apps/neon.md)

## Related

- [Chrome DevTools MCP](https://chatgptplugins.directory/mcp/chrome-devtools.md): Let coding agents control and debug a live Chrome browser
- [Playwright MCP](https://chatgptplugins.directory/mcp/playwright.md): Browser automation for agents via Playwright accessibility snapshots
- [GitHub](https://chatgptplugins.directory/mcp/github.md): Manage repos, issues, pull requests and Actions from your AI agent
- [Context7](https://chatgptplugins.directory/mcp/context7.md): Pull up-to-date, version-specific library docs into your coding agent
- [Supabase](https://chatgptplugins.directory/mcp/supabase.md): Manage Supabase databases, migrations, edge functions and logs
- [Stripe](https://chatgptplugins.directory/mcp/stripe.md): Query and act on your Stripe account and search Stripe docs from any agent

---
Source: https://chatgptplugins.directory/mcp/neon · Index: https://chatgptplugins.directory/llms.txt · Independent and community-run. Not affiliated with or endorsed by OpenAI. ChatGPT is a trademark of OpenAI.
