SQL MCP is a Model Context Provider (MCP) server that allows AI applications to execute SQL queries
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.
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.
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-mcpThe 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.
{
"mcpServers": {
"sql-mcp": {
"command": "npx",
"args": ["@adetxt/sql-mcp"]
}
}
}