Skip to content

MCP Integration

MCP (Model Context Protocol) is the protocol that allows Claude Desktop to communicate with external servers. MCP-Go-MSSQL implements MCP over JSON-RPC 2.0 using stdin/stdout.

The server exposes 9 MCP tools:

ToolDescription
query_databaseExecute SQL queries
list_tablesList all database tables
describe_tableShow table structure
get_database_infoGeneral database information
list_databasesList available databases
get_indexesShow table indexes
get_foreign_keysShow table foreign keys
list_stored_proceduresList stored procedures
execute_procedureExecute a stored procedure
  1. Claude Desktop starts the mcp-go-mssql process
  2. The server sends its capabilities (tool list)
  3. Claude Desktop sends JSON-RPC requests via stdin
  4. The server responds via stdout
  5. Security logs are written to stderr
  • The server connects to the database on startup
  • Maintains the connection pool active throughout the session
  • Shuts down cleanly when Claude Desktop ends the session