Skip to main content
Glama
andyWang1688

sql-query-mcp

list_connections

View configured SQL database connections by ID to manage and select available data sources for query execution.

Instructions

List configured SQL connections by connection_id.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The MCP tool registration and handler wrapper for list_connections.
    @mcp.tool()
    def list_connections() -> dict:
        """List configured SQL connections by connection_id."""
    
        return {"connections": registry.list_connections()}
  • The underlying implementation of listing connections within the ConnectionRegistry.
    def list_connections(self):
        return [item.summary for item in self._config.connections]

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/andyWang1688/sql-query-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server