Skip to content

MCP Tools

The MCP-Go-MSSQL server exposes 5 tools that Claude Desktop can use to interact with Microsoft SQL Server databases securely.

ToolDescriptionKey parameters
query_databaseExecute SQL queriesquery (required)
get_database_infoConnection info and status
exploreExplore objects: tables, databases, procedures, searchtype, filter, pattern, search_in
inspectInspect table structure: columns, indexes, foreign keystable_name (required), schema, detail
execute_procedureExecute stored procedure (whitelist required)procedure_name (required), parameters

Tools communicate via JSON-RPC through stdin/stdout. Claude Desktop sends tools/list requests to discover tools and tools/call to execute them.

All tools:

  • Use prepared statements to prevent SQL injection
  • Respect read-only mode when enabled
  • Validate referenced tables against the whitelist
  • Operate with context timeouts (30 seconds)
  • Sanitize sensitive information in logs