# LINQ to DB CLI MCP server

> Inspect database schemas and execute SQL queries across multiple database providers using a command-line interface.

- Repository: https://github.com/linq2db/linq2db
- Page: https://hostedmcp.org/servers/linq2db/linq2db-cli
- Transport: stdio
- Stars: 3334
- License: MIT
- Latest version: 6.5.1

## FAQ

### How do I install LINQ to DB CLI?

You can install it as a global .NET tool using the command `dotnet tool install -g linq2db.cli`.

### What are the system requirements for the tool?

Installation requires the .NET 10 SDK or higher, while the runtime requires .NET 8 or higher.

### Can I execute write-capable SQL statements?

Yes, but it is disabled by default. You must start the MCP server with the `--enable-execute-tool` flag and ensure the selected profile has `enableExecute` set to `true`.

### How can I handle large database schemas?

You can use `--detail-level names` for compact discovery or apply filters like `--filter-schema`, `--filter-catalog`, or `--filter-table` to narrow the output.
