Neon MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Neon MCP ServerCreate a new project called my-app with a users table."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Neon MCP Server
Model Context Protocol (MCP) is a new, standardized protocol for managing context between large language models (LLMs) and external systems. In this repository, we provide an installer as well as an MCP Server for Neon.
This lets you use Claude Desktop, or any MCP Client, to use natural language to accomplish things with Neon, e.g.:
Let's create a new Postgres database, and call it "my-database". Let's then create a table called users with the following columns: id, name, email, and password.I want to run a migration on my project called "my-project" that alters the users table to add a new column called "created_at".Can you give me a summary of all of my Neon projects and what data is in each one?
Claude Setup
Installing via Smithery
To install Neon MCP Server for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install neon --client claudeRequirements
Node.js >= v18.0.0
Claude Desktop
Neon API key - you can generate one through the Neon console. Learn more or click here for quick access.
Related MCP server: Cloudflare Remote PostgreSQL MCP Server
How to use locally
Run
npx @neondatabase/mcp-server-neon init $NEON_API_KEYRestart Claude Desktop
You should now be able to try a simple command such as
List me all my Neon projects
Guides
Features
Supported Tools
list_projectsdescribe_projectcreate_projectdelete_projectcreate_branchdelete_branchdescribe_branchget_connection_stringrun_sqlrun_sql_transactionget_database_tablesdescribe_table_schemaprepare_database_migrationcomplete_database_migrationprovision_neon_auth
Migrations
Migrations are a way to manage changes to your database schema over time. With the Neon MCP server, LLMs are empowered to do migrations safely with separate "Start" and "Commit" commands.
The "Start" command accepts a migration and runs it in a new temporary branch. Upon returning, this command hints to the LLM that it should test the migration on this branch. The LLM can then run the "Commit" command to apply the migration to the original branch.
Development
Development with MCP CLI Client
The easiest way to iterate on the MCP Server is using the mcp-client/. Learn more in mcp-client/README.md.
npm install
npm run build
npm run watch # You can keep this open.
cd mcp-client/ && NEON_API_KEY=... npm run start:mcp-server-neonDevelopment with Claude Desktop
npm install
npm run build
npm run watch # You can keep this open.
node dist/index.js init $NEON_API_KEYThen, restart Claude each time you want to test changes.
Testing
To run the tests you need to setup the .env file according to the .env.example file.
npm run testAZTP - Guild Generate Identity and Requirement
Environment
Setup environment (.env) with keyValue of MCP_NAME and AZTP_API_KEY
Where to get AZTP Api Key
Register at https://www.astha.ai/
Generate Key
For get the FREE identity make sure to add your desire domain. And follow the process to get verified.
Set you domain as default.
How to run
npm install && npm run build
This server cannot be deployed
Maintenance
Related MCP Connectors
Official Neon MCP server for managing Neon projects and Lakebase Postgres databases.
Your Supabase account in natural language: run SQL, apply migrations, manage tables, storage, edge f
Analytical memory for AI agents: a real Postgres queried in plain English over MCP. One command.
- mcpOAuthcom.gibsonai
GibsonAI MCP server: manage your databases with natural language
Related MCP Servers
AlicenseNot gradedqualityBmaintenanceLets you use Claude Desktop, or any MCP Client, to use natural language to accomplish things with Neon.1,032 npm650MIT- AlicenseNot gradedqualityDmaintenanceEnables natural language interaction with PostgreSQL databases through MCP tools, with GitHub OAuth authentication and role-based access control.MIT
- AlicenseNot gradedqualityBmaintenanceEnables natural language queries, CRUD operations, and analytics on a PostgreSQL database (Neon) via Claude, supporting customers, tickets, products, and analytics.MIT
- FlicenseAqualityDmaintenanceEnables querying and interacting with PostgreSQL databases using natural language through MCP. Supports configuration via environment variables and Cursor IDE integration.3-