get_foreign_keys
Get foreign key relationships for tables
How to use it
get_foreign_keys is exposed by the MCP Sqlserver MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the get_foreign_keys tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
Install MCP Sqlserver
npx mcp-sqlserverOther tools in MCP Sqlserver (7)
Get detailed table schema including columns, data types, and constraints
Execute read-only SELECT queries with safety validation
Get SQL Server version, edition, and configuration details
Get table statistics including row counts and size information
List all databases on the SQL Server instance
List tables in a database or schema
List views in a database or schema