Skip to main content
Glama

SQL MCP Server

by adetxt

get_tables

Retrieve a list of tables from SQL databases (Postgres, MySQL, SQLite) by specifying the database type and connection string using the MCP protocol.

Instructions

Get list of table in database

Input Schema

NameRequiredDescriptionDefault
connection_stringYes
db_typeYes

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "connection_string": { "type": "string" }, "db_type": { "enum": [ "postgres", "mysql", "sqlite" ], "type": "string" } }, "required": [ "db_type", "connection_string" ], "type": "object" }
Install Server

Other Tools from SQL MCP Server

Related Tools

    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/adetxt/sql-mcp'

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