MCP Sql Server MCP Server

MCP for making queries to MySQL, PosgreSQL

Local serverstdio

What is the MCP Sql Server MCP Server?

MCP for making queries to MySQL, PosgreSQL

The short version

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.

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
execute_sql_queryExecute SQL queries on a specified database.
Parameters:dbType: Type of the database (mysql, postgresql or sqlite).
connectionStringConnection string for the database (file path for sqlite).
querySQL query to execute.
insert_dataInsert data into a specified table.
tableNameName of the table to insert into.
dataJSON object representing the data to insert (key-value pairs).

How to install the MCP Sql Server MCP Server

{
  "mcpServers": {
    "sql": {
      "command": "/path/to/sql/build/index.js"
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Example prompts to try

  • “Use MCP Sql Server to execute sql query.”
  • “Use MCP Sql Server to Parameters.”
  • “Use MCP Sql Server to connectionString.”

Frequently asked questions

MCP for making queries to MySQL, PosgreSQL Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.