SQL Tunnel
A TypeScript-based SQL MCP server that supports secure access to PostgreSQL databases through an SSH tunnel
rating : 2 points
downloads : 18
What is SQL MCP Server?
SQL MCP Server is a database query service developed based on TypeScript. It allows AI models and other clients compatible with the MCP protocol to securely query PostgreSQL databases. It is especially suitable for scenarios where private databases need to be accessed through an SSH tunnel.How to use SQL MCP Server?
You can start the server through a simple command-line tool. After configuring the database connection parameters, clients can interact with the server through standard input and output, send SQL query requests, and obtain results.Applicable scenarios
It is suitable for scenarios where AI models need to access databases, such as data analysis and information retrieval; it is also suitable for enterprise environments where private databases need to be accessed through a secure tunnel.Main features
SSH tunnel supportSecurely access private RDS instances through an SSH bastion host to ensure the security of database connections
PostgreSQL query engineUse the pg library to provide complete PostgreSQL query functions, supporting read-only transactions
MCP protocol compatibilityFully compatible with the Model Context Protocol standard and can be seamlessly integrated with various MCP clients
Flexible configurationSupport configuring all parameters through the.env file or environment variables, facilitating deployment in different environments
Advantages and limitations
Advantages
Provide a secure SSH tunnel access method to protect database credentials
Lightweight design, easy to deploy and integrate
Complete TypeScript type support, providing a good development experience
Compatible with mainstream AI toolchains
Limitations
Currently only supports PostgreSQL databases
SSH configuration requires certain technical knowledge
Performance may be inferior to native database connections
How to use
Installation
Clone the repository and install dependencies
Configuration
Create a.env file or set environment variables to configure the database connection
Running
Use npx to start the server
Usage examples
Simple queryGet the first 10 records from the users table
Data analysisCount the sales volume of each product category
Frequently Asked Questions
How to configure an SSH tunnel?
Which databases are supported?
How to ensure security?
Related resources
Model Context Protocol documentation
Official documentation of the MCP protocol
GitHub repository
Project source code
PostgreSQL official documentation
PostgreSQL database documentation
Featured MCP Services

Markdownify MCP
Markdownify is a multi-functional file conversion service that supports converting multiple formats such as PDFs, images, audio, and web page content into Markdown format.
TypeScript
1.7K
5 points

Duckduckgo MCP Server
Certified
The DuckDuckGo Search MCP Server provides web search and content scraping services for LLMs such as Claude.
Python
823
4.3 points

Gitlab MCP Server
Certified
The GitLab MCP server is a project based on the Model Context Protocol that provides a comprehensive toolset for interacting with GitLab accounts, including code review, merge request management, CI/CD configuration, and other functions.
TypeScript
79
4.3 points

Notion Api MCP
Certified
A Python-based MCP Server that provides advanced to-do list management and content organization functions through the Notion API, enabling seamless integration between AI models and Notion.
Python
131
4.5 points

Unity
Certified
UnityMCP is a Unity editor plugin that implements the Model Context Protocol (MCP), providing seamless integration between Unity and AI assistants, including real - time state monitoring, remote command execution, and log functions.
C#
554
5 points

Figma Context MCP
Framelink Figma MCP Server is a server that provides access to Figma design data for AI programming tools (such as Cursor). By simplifying the Figma API response, it helps AI more accurately achieve one - click conversion from design to code.
TypeScript
6.6K
4.5 points

Context7
Context7 MCP is a service that provides real-time, version-specific documentation and code examples for AI programming assistants. It is directly integrated into prompts through the Model Context Protocol to solve the problem of LLMs using outdated information.
TypeScript
5.2K
4.7 points

Minimax MCP Server
The MiniMax Model Context Protocol (MCP) is an official server that supports interaction with powerful text-to-speech, video/image generation APIs, and is suitable for various client tools such as Claude Desktop and Cursor.
Python
745
4.8 points