Skip to main content
Glama

SQL MCP Server

by polarisxb
MIT License
1
5
  • Apple
  • Linux
interface.ts734 B
import { TableSchema, Index, Constraint, Relation } from '../../core/types/database.js' export interface IMetadataService { getDatabases(): Promise<string[]> getTables(database?: string, pattern?: string): Promise<string[]> getTableSchema(tableName: string, database?: string): Promise<TableSchema> getTableIndexes(tableName: string, database?: string): Promise<Index[]> getTableConstraints(tableName: string, database?: string): Promise<Constraint[]> getTableRelations(tableName: string, database?: string): Promise<Relation[]> getDatabaseSchema(database?: string): Promise<{ tables: TableSchema[]; relations: Relation[] }> refreshCache(type: 'all' | 'table', tableName?: string, database?: string): Promise<void> }

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

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