Neon PostgreSQL MCP Server
@spragginsdesigns
About Neon PostgreSQL MCP Server
No overview available yet
Config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"neon-pg-mcp-server": {
"command": "node",
"args": [
"pg-mcp-server.js"
]
}
}
}Tools
No tools detected
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
What is Neon PostgreSQL MCP Server?
A Model Context Protocol (MCP) server that provides secure access to Neon PostgreSQL databases, enabling AI assistants like Claude to interact with your database through standardized tools for querying, modifying, listing tables, and describing table structures.
How to use Neon PostgreSQL MCP Server?
Clone the repository, install dependencies with npm install, and set the NEON_PG_CONNECTION_STRING environment variable to your Neon PostgreSQL connection string. Run one of the provided server implementations (e.g., node pg-mcp-server.js for the ES module version) and configure your MCP-compatible client (e.g., Claude Desktop or Cursor IDE) to point to the server script with the environment variable set.
Key features of Neon PostgreSQL MCP Server
- Secure SSL/TLS encrypted connections to Neon PostgreSQL.
- Connection pooling with configurable maximum connections and idle timeout.
- Input validation and type safety for all operations.
- Comprehensive error handling with meaningful messages.
- Full implementation of the Model Context Protocol specification.
- Multiple server implementations (ES module, CommonJS, basic, TypeScript).
Use cases of Neon PostgreSQL MCP Server
- AI assistants querying database tables using SELECT statements.
- Data modification tasks (INSERT, UPDATE, DELETE) via the Execute tool.
- Exploring database schema by listing tables and describing column structures.
- Integrating Neon PostgreSQL capabilities into Claude Desktop or Cursor IDE workflows.
FAQ from Neon PostgreSQL MCP Server
What are the prerequisites to use this server?
Node.js 18+, a Neon PostgreSQL database account with a connection string, and an MCP-compatible client such as Claude Desktop or Cursor IDE.
How do I secure my database connection?
The server enforces SSL/TLS connections to Neon PostgreSQL. Store your connection string as an environment variable and never commit it to version control. Use parameterized queries to prevent SQL injection.
Can I adjust the connection pool settings?
Yes, you can modify the default pool settings (maximum connections: 10, idle timeout: 30 seconds) in the connection pool initialization code within the server file.
What tools does the server expose?
It provides four tools: Query (for SELECT statements), Execute (for INSERT, UPDATE, DELETE), Get Tables (lists public schema tables), and Describe Table (returns column details and primary keys).
How do I integrate this server with Claude Desktop?
Open Claude Desktop settings, navigate to Developer → MCP Servers, add a new server with command node, args pointing to the server script path, and env including NEON_PG_CONNECTION_STRING.
Frequently asked questions
What are the prerequisites to use this server?
Node.js 18+, a Neon PostgreSQL database account with a connection string, and an MCP-compatible client such as Claude Desktop or Cursor IDE.
How do I secure my database connection?
The server enforces SSL/TLS connections to Neon PostgreSQL. Store your connection string as an environment variable and never commit it to version control. Use parameterized queries to prevent SQL injection.
Can I adjust the connection pool settings?
Yes, you can modify the default pool settings (maximum connections: 10, idle timeout: 30 seconds) in the connection pool initialization code within the server file.
What tools does the server expose?
It provides four tools: Query (for SELECT statements), Execute (for INSERT, UPDATE, DELETE), Get Tables (lists public schema tables), and Describe Table (returns column details and primary keys).
How do I integrate this server with Claude Desktop?
Open Claude Desktop settings, navigate to Developer → MCP Servers, add a new server with command `node`, args pointing to the server script path, and env including `NEON_PG_CONNECTION_STRING`.
Basic information
More Databases MCP servers
Redis MCP Server
redisThe official Redis MCP Server is a natural language interface designed for agentic applications to manage and search data in Redis efficiently
PostgreSQL Model Context Protocol (PG-MCP) Server
stuzero
nuzur
nuzur is a model-first database platform for MySQL and PostgreSQL. The MCP server lets any AI assistant or agent (Claude, Cursor, Gemini, or anything else that speaks MCP) design your schema, query your data, generate mi
MCP Server for MySQL based on NodeJS
benborlaA Model Context Protocol server that provides read-only access to MySQL databases. This server enables LLMs to inspect database schemas and execute read-only queries.
Sail MCP Server for Spark SQL
lakehqDrop-in Apache Spark replacement written in Rust, unifying batch processing, stream processing, and compute-intensive AI workloads.
Comments