SQL Database Connector

•
4
•

Enables Large Language Models to interact with PostgreSQL, SQLite, and MySQL databases.

mcp-sql serves as a robust gateway for Large Language Models (LLMs) to securely access and query various SQL databases, including PostgreSQL, SQLite, and MySQL. Designed as a single binary with multi-database support, it offers read-only operations by default to ensure data integrity and safety. This tool empowers LLMs to retrieve and analyze data, making it an essential component for building intelligent applications that require real-time database interaction and data-driven insights.

주요 기능

012 GitHub stars
02Offers structured tools for database introspection: list databases, tables, describe schema, sample data
03Connects to PostgreSQL, SQLite, and MySQL databases via URL or environment variables
04Supports execution of arbitrary SQL queries from LLMs, returning results as JSON
05Provides read-only access by default with configurable write operations
06Enforces query safety with adjustable row limits, query timeouts, and credential redaction

사용 사례

01Facilitating AI-driven development by providing LLMs with direct, controlled access to database schemas and content for code generation or debugging
02Automating data retrieval and analysis tasks for AI agents interacting with relational data
03Empowering LLMs to answer natural language questions by querying live database information