Provides tools for connecting to and interacting with PostgreSQL databases, allowing users to list databases and tables, inspect schemas, and execute SQL queries with configurable permission modes (safe, write, or full).
Click on "Install 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., "@sql-mcpShow me the schema for the customers 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.
@yuuzu/sql-mcp
A Model Context Protocol (MCP) server for MSSQL and PostgreSQL database operations.
Installation
Features
Multi-database support: MSSQL and PostgreSQL
8 tools for database operations
Three query modes: safe, write, full
Advanced authentication: Windows Auth (MSSQL), SSL certificates (PostgreSQL)
Tools
Tool | Description |
| Connect to a database server |
| Disconnect from the current connection |
| Check connection status and query mode |
| List all databases on the server |
| Switch to a different database |
| List all tables and views |
| Get table schema details |
| Execute SQL queries |
Query Modes
Control query permissions via SQL_MCP_MODE environment variable:
Mode | Allowed Operations | Description |
| SELECT, WITH, EXPLAIN | Read-only, safest |
| + INSERT, UPDATE, DELETE | Allows data modification |
| + CREATE, DROP, ALTER, TRUNCATE | Full access, use with caution |
Usage Examples
Claude Desktop Configuration
Add to your claude_desktop_config.json:
Connect to MSSQL
Connect to PostgreSQL
Connect with Windows Authentication (MSSQL)
Connect with SSL (PostgreSQL)
Development
Release
Releases are automated via GitHub Actions. To create a new release:
This will:
Build the project
Publish to npm with provenance
Create a GitHub Release with auto-generated release notes
Requirements: Set NPM_TOKEN secret in your GitHub repository settings.
License
MIT