SQL MCP Server

SQL MCP Server

Public
t3ta/sql-mcp-server

TypeScript-based MCP server enabling secure, read-only PostgreSQL queries via SSH bastion tunnels with STDIO communication, compatible with AI-driven clients and easily configurable for flexible database access.

typescript
0 tools
May 29, 2025
Updated Jun 4, 2025

Supercharge Your AI with SQL MCP Server

MCP Server

Unlock the full potential of SQL MCP Server through LangDB's AI Gateway. Get enterprise-grade security, analytics, and seamless integration with zero configuration.

Unified API Access
Complete Tracing
Instant Setup
Get Started Now

Free tier available • No credit card required

Instant Setup
99.9% Uptime
10,000+Monthly Requests
Configuration Requirements
none
Configure authentication and required variables to access this MCP server
Required Environment Variables
DB_HOST
Optional
string

PostgreSQL database host

Default: localhost
SSH_PRIVATE_KEY_PATH
Optional
string

Path to SSH private key for bastion connection

SSH_BASTION_HOST
Optional
string

SSH bastion host for tunneling

DB_PORT
Optional
string

PostgreSQL database port

Default: 5432
DB_PASS
Optional
string

PostgreSQL database password

DB_NAME
Optional
string

PostgreSQL database name

USE_SSH_TUNNEL
Optional
string

Whether to use SSH tunneling for database connection

Default: false
DB_USER
Optional
string

PostgreSQL database username

SSH_BASTION_USER
Optional
string

SSH bastion username

Security Notice

Your environment variables and credentials are securely stored and encrypted. LangDB never shares these configuration values with third parties.

Related MCPs5
  • privateGPT MCP Server

    Secure and flexible Model Context Protocol server enabling modular agent-based interactions with large language models, featuring robust authentication, encrypted communication, comprehensive chat and user management, and advanced logging for efficient AI-driven workflows.

    Added May 29, 2025
  • MySQL Server MCP Server

    A TypeScript-based Model Context Protocol server enabling secure MySQL database access and SQL query execution via environment-configured connections for seamless integration and development.

    Added May 29, 2025
  • PostgreSQL MCP Server

    Provides read-only access to PostgreSQL databases via Model Context Protocol, enabling LLMs to inspect database schemas and execute secure read-only SQL queries for efficient data retrieval.

    Added May 30, 2025
  • PostgreSQL MCP Server

    Provides read-only access to PostgreSQL databases via Model Context Protocol, enabling LLMs to inspect database schemas and execute secure, read-only SQL queries for enhanced data analysis and integration.

    Added May 30, 2025
  • Gel Database MCP Server

    TypeScript-based Model Context Protocol server enabling LLM agents to understand Gel database schemas, validate and execute EdgeQL queries, and seamlessly interact with databases using natural language for efficient automation and development.

    Added May 30, 2025