adam-versed
MCP Serveradam-versedpublic

postgresql server mcp

Tool for postgres read / write actions at column, table and database level

Repository Info

0
Stars
0
Forks
0
Watchers
0
Issues
TypeScript
Language
-
License

About This Server

Tool for postgres read / write actions at column, table and database level

Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.

Documentation

postgreSQL-mcp-server MCP Server

An mcp server that connects to local postgreSQL instances - this is intended as a local development/prototyping aid

Development

Install dependencies:

npm install

Build the server:

npm run build

Run integration test:

npm test

Capabilities

This MCP server provides the following PostgreSQL tools:

ToolDescription
list_tablesList tables in a specified database
execute_queryExecute an arbitrary SQL query
create_databaseCreate a new database
drop_databaseDrop an existing database
create_tableCreate a new table with specified columns and constraints
drop_tableDrop a table from a database
create_indexCreate an index on specified table columns
drop_indexDrop an index from a table

Installation

To use with Claude Desktop, add the server config:

On MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json On Windows: %APPDATA%/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "postgresql-tools": {
      "command": "node",
      "args": ["/pathtoyourlocalfolder/build/index.js"],
      "env": {
        "POSTGRESQL_HOST": "localhost",
        "POSTGRESQL_PORT": "5432",
        "POSTGRESQL_USER": "adamjackson",
        "POSTGRESQL_PASSWORD": "",
        "POSTGRESQL_DATABASE": "seoanalysis"
      }
    }
  }
}

Quick Start

1

Clone the repository

git clone https://github.com/adam-versed/postgresql-server-mcp
2

Install dependencies

cd postgresql-server-mcp
npm install
3

Follow the documentation

Check the repository's README.md file for specific installation and usage instructions.

Repository Details

Owneradam-versed
Repopostgresql-server-mcp
LanguageTypeScript
License-
Last fetched8/10/2025

Recommended MCP Servers

💬

Discord MCP

Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.

integrationsdiscordchat
🔗

Knit MCP

Connect AI agents to 200+ SaaS applications and automate workflows.

integrationsautomationsaas
🕷️

Apify MCP Server

Deploy and interact with Apify actors for web scraping and data extraction.

apifycrawlerdata
🌐

BrowserStack MCP

BrowserStack MCP Server for automated testing across multiple browsers.

testingqabrowsers

Zapier MCP

A Zapier server that provides automation capabilities for various apps.

zapierautomation