Labsco
VlaadislavKr logo

SQL Server for MySQL, PostgreSQL, and SQLite

โ˜… 3

from VlaadislavKr

A server for making queries to MySQL, PostgreSQL, and SQLite databases.

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedFreeAdvanced setup

SQL MCP Server for MySQL, PostgreSQL, and SQLite Databases

This is a powerful MCP (Model Context Protocol) server designed for seamless interaction with SQL databases, including MySQL, PostgreSQL, and SQLite. It simplifies how to connect to database MySQL and other SQL types, making it an ideal solution for developers looking for an efficient mcp mysql database integration.

Whether you're building a new application or integrating with existing systems, this server provides the tools you need for managing your data.

Features

This mcp mysql tutorial will guide you through its core functionalities.

Tools

  • execute_sql_query - Execute SQL queries on a specified database. This tool is essential for running direct commands and is perfect for a mcp mysql github project or any environment where direct SQL execution is needed.
    • Parameters:
      • dbType: Type of the database (mysql, postgresql or sqlite).
      • connectionString: Connection string for the database (file path for sqlite).
      • query: SQL query to execute.
  • insert_data - Insert data into a specified table.
    • Parameters:
      • dbType: Type of the database (mysql, postgresql or sqlite).
      • connectionString: Connection string for the database (file path for sqlite).
      • tableName: Name of the table to insert into.
      • data: JSON object representing the data to insert (key-value pairs).

Development

Install dependencies:

npm install

Build the server:

npm run build

For development with auto-rebuild:

npm run watch

Features

Tools

  • execute_sql_query - Execute SQL queries on a specified database.
    • Parameters:
      • dbType: Type of the database (mysql, postgresql or sqlite).
      • connectionString: Connection string for the database (file path for sqlite).
      • query: SQL query to execute.
  • insert_data - Insert data into a specified table.
    • Parameters:
      • dbType: Type of the database (mysql, postgresql or sqlite).
      • connectionString: Connection string for the database (file path for sqlite).
      • tableName: Name of the table to insert into.
      • data: JSON object representing the data to insert (key-value pairs).

Development

Install dependencies:

npm install

Build the server:

npm run build

For development with auto-rebuild:

npm run watch