Skip to main content
Glama
SQL MCP Server

SQL MCP Server

by adetxt

SQL MCP Server

A Model Context Protocol (MCP) server implementation for SQL databases, providing a standardized interface for interacting with SQL databases through the MCP protocol.

Installation

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

Related MCP server: SQLite MCP Server

License

MIT

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Support

For support, please open an issue in the GitHub repository.

Available Tools

3 tools
execute_queryExecute QueryC

Run a query to database

Inputs: db_type (required), connection_string (required), query (required).

get_columnsGet ColumnsC

Get list of column in a table

Inputs: db_type (required), connection_string (required), table_name (required).

get_tablesGet TablesC

Get list of table in database

Inputs: db_type (required), connection_string (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    C2.7/5.0

    Scored across 3 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose: execute_query runs queries, get_columns lists columns in a table, and get_tables lists tables in a database. There is no overlap or ambiguity between these operations.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern (execute_query, get_columns, get_tables) with clear, descriptive verbs and nouns. No deviations or mixed conventions are present.

    Tool Count3/5

    With only 3 tools, the server feels thin for an SQL domain, lacking operations like insert, update, delete, or schema modifications. While the tools are well-defined, the count is borderline low for comprehensive database interaction.

    Completeness2/5

    The tool set is severely incomplete for an SQL server, missing essential CRUD operations (e.g., insert, update, delete) and schema management tools. This will cause significant agent failures when trying to perform common database tasks beyond basic queries and metadata retrieval.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      A Model Context Protocol server that provides tools for connecting to and interacting with various database systems (SQLite, PostgreSQL, MySQL/MariaDB, SQL Server) through a unified interface.
      3
      -
    • A
      license
      B
      quality
      C
      maintenance
      A Model Context Protocol server that enables SQL operations (SELECT, INSERT, UPDATE, DELETE) and table management through a standardized interface with SQLite databases.
      7
      1
      ISC
    • A
      license
      B
      quality
      D
      maintenance
      A Model Context Protocol server that enables executing SQL queries and managing connections with Microsoft SQL Server databases.
      1
      6
      MIT