S

SQL Tunnel

A TypeScript-based SQL MCP server that supports secure access to PostgreSQL databases through an SSH tunnel
2 points
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
Installation
Copy the following command to your Client for configuration
Note: Your key is sensitive information, do not share it with anyone.
M
MCP Alchemy
Certified
MCP Alchemy is a tool that connects Claude Desktop to multiple databases, supporting SQL queries, database structure analysis, and data report generation.
Python
318
4.2 points
P
Postgresql MCP
A PostgreSQL database MCP service based on the FastMCP library, providing CRUD operations, schema inspection, and custom SQL query functions for specified tables.
Python
105
4 points
M
MCP Scan
MCP-Scan is a security scanning tool for MCP servers, used to detect common security vulnerabilities such as prompt injection, tool poisoning, and cross-domain escalation.
Python
609
5 points
A
Agentic Radar
Agentic Radar is a security scanning tool for analyzing and assessing agentic systems, helping developers, researchers, and security experts understand the workflows of agentic systems and identify potential vulnerabilities.
Python
548
5 points
A
Awesome MCP List
This is a continuously updated curated list of MCP servers, covering multiple categories such as browser control, art and culture, cloud platforms, command - line, communication, customer data platforms, databases, developer tools, data science tools, file systems, finance and fintech, games, knowledge and memory, location services, marketing, monitoring, search, and utilities. Each project comes with a GitHub link and the number of stars, making it easy for users to quickly understand and use.
703
5 points
W
Wren
Wren Engine is a semantic engine designed for MCP clients and AI agents, providing semantic layer support to enable AI to accurately understand enterprise data models and business logic. It supports multiple data sources and is embedded in MCP clients to ensure the accuracy and governance of data interaction.
Java
392
4 points
M
MCP Redis
Certified
Redis MCP Server is a natural language interface service designed for Redis, supporting AI agents to query and manage Redis data through natural language, integrating the MCP protocol, and providing multiple data structures and search functions.
Python
74
4.5 points
S
Supabase MCP Server
The Supabase MCP Server is an open - source tool that allows IDEs to securely execute SQL, manage schema changes, call the Supabase management API, and use the Auth Admin SDK, with built - in security control.
Python
780
5 points
Featured MCP Services
M
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
D
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
G
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
N
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
U
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
F
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
C
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
M
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
AIbase
Zhiqi Future, Your AI Solution Think Tank
© 2025AIbase