Skip to main content
Glama
Thiago-Fernandes-Dias

SQL Server MCP Server

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
SQLSERVER_HOSTYesThe hostname or IP address of the SQL Server instance.
SQLSERVER_PORTNoThe port number for SQL Server (default: 1433).
SQLSERVER_USERYesThe username used for SQL Server authentication.
SQLSERVER_DATABASEYesThe name of the database to connect to.
SQLSERVER_PASSWORDYesThe password used for SQL Server authentication.
SQLSERVER_DRIVER_TYPENoThe driver type to use: 'auto', 'pyodbc', or 'pymssql'.auto
SQLSERVER_TRUST_SERVER_CERTIFICATENoWhether to trust the server certificate (true/false).

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}
logging
{}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
extensions
{
  "io.modelcontextprotocol/ui": {}
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
list_schemasA

List all user schemas in the SQL Server database.

list_tablesB

List tables and views in the database.

get_table_schemaA

Get detailed schema definition for a specific table or view including columns, data types, primary keys, and foreign keys.

get_database_schemaB

Get the complete database schema or filter by schema and table name.

read_recordsA

Read/Select records from a table with optional column selection, WHERE filtering, ordering, and pagination.

read_queryA

Execute a custom read-only SELECT query against the SQL Server database.

insert_recordB

Insert a single record into a database table (Create).

bulk_insert_recordsA

Insert multiple records into a database table in a single transaction (Batch Create).

update_recordsC

Update matching records in a table with specified values (Update).

delete_recordsC

Delete records from a table matching a WHERE clause (Delete).

execute_sqlA

Execute arbitrary SQL statements such as DDL (CREATE, ALTER, DROP) or DML (INSERT, UPDATE, DELETE).

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription
resource_database_schemaMCP Resource returning the full database schema as JSON.
resource_tables_listMCP Resource returning all available database tables.

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/Thiago-Fernandes-Dias/sql_server_mcp'

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