home / mcp / sql mcp server

SQL MCP Server

SQL MCP is a Model Context Provider (MCP) server that allows AI applications to execute SQL queries

Installation
Add the following to your MCP client configuration file.

Configuration

View docs
{
  "mcpServers": {
    "adetxt-sql-mcp": {
      "command": "npx",
      "args": [
        "@adetxt/sql-mcp"
      ]
    }
  }
}

This Model Context Protocol (MCP) SQL MCP Server provides a standardized way to interact with SQL databases through the MCP interface. It lets you connect an MCP client to execute queries, manage schemas, and retrieve results in a consistent, tool-friendly manner.

How to use

You connect your MCP client to the sql-mcp server to run SQL operations against your databases. Use the MCP client’s standard request patterns to execute queries, fetch results, and manage schemas through the server. The server runs locally or in your preferred environment and exposes a uniform interface so you can integrate SQL actions into your MCP workflows and tooling.

How to install

Prerequisites: ensure you have Node.js and npm installed on your system. You can verify by running node -v and npm -v in your terminal.

Install and run the MCP server using the provided runtime command. The server is configured to be launched with a package runner, so you can start it with a single command.

Step-by-step commands you can run now:

# Install and start the SQL MCP Server via npx
npx @adetxt/sql-mcp

Additional notes

The server configuration shown for typical MCP environments uses a standard stdio setup with npx as the runner and the package name @adetxt/sql-mcp. If you configure a remote development environment or IDE integration, you can mirror the stdio configuration to ensure MCP client compatibility across tools.

Configuration examples

{
  "mcpServers": {
    "sql-mcp": {
      "command": "npx",
      "args": ["@adetxt/sql-mcp"]
    }
  }
}