# LINQ to DB (nuget · linq2db.cli)

Inspect database schemas and execute SQL queries across multiple database providers with LINQ to DB.

- Trust score: 72/100 (medium)
- Change this week: +4
- Registry status: active
- Liveness: live
- Owner verified: no
- Last scored: 2026-09-20

## Components

- nuget · `linq2db.cli`: 72/100 (this document), [markdown](https://verifymcp.io/servers/linq2db-linq2db-cli/linq2db-cli.md), [page](https://verifymcp.io/servers/linq2db-linq2db-cli/linq2db-cli)

## Channel facts

- Registry: `nuget`
- Package: `linq2db.cli`
- Version: `6.5.0`
- Transport: `stdio`

## Trust breakdown

How this component scores in each security and reliability category. Every signal is checked automatically from public evidence about the published package, including repeated runs of it in an isolated sandbox, and we only credit what we can confirm. Scores are 0–100 per category. Scoring method: https://verifymcp.io/docs/scoring (what has changed: https://verifymcp.io/docs/scoring/changelog)

Scored 2026-09-20.

- **Supply Chain Security**: 100/100
  - No malware found by supply-chain analysis.
  - No known CVEs affecting this package version or its production dependencies.
  - No install/post-install scripts declared.
  - No production dependencies, so there is no dependency health to assess.
- **Provenance & Transparency**: 45/100
  - Source repository is publicly reachable at the declared URL.
  - Provenance check failed: no build-provenance attestation is published.
  - Clear OSI-approved license (MIT).
  - Actively maintained (last published 8 days ago).
  - Disclosure check failed: no security disclosure policy was found in the source repository.
- **Schema Quality & AI Usability**: 71/100
  - AI-judged instruction clarity (excellent).
  - Context-footprint check failed: tool/resource definitions use about 819 tokens (~204/item across 4 items; 4 tools + 0 resources), over budget; trim descriptions and params.
  - Usage-examples check failed: none of the tools include examples.
- **Stability & Change Management**: 30/100
  - Stability observed for 9 of 30 days with no destabilising changes; credit accrues until the full window elapses.
- **Tool Coverage**: 100/100
  - 100% of tools have a non-trivial description (not blank, and not just the tool's name).
  - 100% of tool parameters carry a description.
- **Tool Safety**: 75/100
  - No prompt-injection markers were found in the server instructions, tool names or descriptions we captured.
  - 0 of 1 tool(s) whose name or description implies an irreversible operation declare an MCP destructiveHint annotation; "linq2db_query" implies "execute" and declares readOnlyHint instead, contradicting what its own name says it does.
  - An AI judge read all 5 captured unit(s) of tool text and found none that tries to manipulate the model reading it.
- **Capabilities**: 100/100
  - Implements a current MCP spec version (2026-07-28).

## Install

### How do I install the LINQ to DB MCP server?

LINQ to DB runs locally as a NuGet package, launched with dnx linq2db.cli@6.5.0 --yes. Ready-made configuration for Claude, Cursor, VS Code, Codex and 3 more is on this page, copied from each client's own documentation.

### Claude

```bash
claude mcp add linq2db-linq2db-cli -- dnx linq2db.cli@6.5.0 --yes
```

### Cursor

```json
{
  "mcpServers": {
    "linq2db-linq2db-cli": {
      "command": "dnx",
      "args": [
        "linq2db.cli@6.5.0",
        "--yes"
      ]
    }
  }
}
```

### VS Code

```json
{
  "servers": {
    "linq2db-linq2db-cli": {
      "command": "dnx",
      "args": [
        "linq2db.cli@6.5.0",
        "--yes"
      ]
    }
  }
}
```

### Codex

```bash
codex mcp add linq2db-linq2db-cli -- dnx linq2db.cli@6.5.0 --yes
```

### opencode

```json
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "linq2db-linq2db-cli": {
      "type": "local",
      "command": [
        "dnx",
        "linq2db.cli@6.5.0",
        "--yes"
      ],
      "enabled": true
    }
  }
}
```

### Hermes

```yaml
mcp_servers:
  linq2db-linq2db-cli:
    command: "dnx"
    args: ["linq2db.cli@6.5.0", "--yes"]
```

### Netclaw

```json
{
  "McpServers": {
    "linq2db-linq2db-cli": {
      "Transport": "stdio",
      "Command": "dnx",
      "Arguments": [
        "linq2db.cli@6.5.0",
        "--yes"
      ]
    }
  }
}
```

### Other

```json
{
  "mcpServers": {
    "linq2db-linq2db-cli": {
      "command": "dnx",
      "args": [
        "linq2db.cli@6.5.0",
        "--yes"
      ]
    }
  }
}
```

## Changelog

Every change recorded for this component, newest first. Days that predate change tracking, or that we cannot explain, say so: "we were watching and nothing happened" and "we were not watching" are different claims.

### 2026-09-19 (score 72, +4)

- [functional improvement] Stability: unverified → 0.27

### 2026-09-11 (score 68)

First indexed and scored.

## MCP tools (4)

### `linq2db_info` (~94 tokens)

Get linq2db query configuration

Returns non-secret linq2db MCP query configuration information.

Call this tool first when available profiles, providers, SQL dialects, output defaults, row limits, or execute availability are unknown. Use linq2db_schema to inspect database objects. Use linq2db_skill for the full usage guide.

This tool never returns connection strings, passwords, provider assembly paths, impersonation credentials, or environment variable values.

### `linq2db_query` (~236 tokens)

Execute read-only SQL query

Executes one read-only SQL statement using a configured linq2db profile.

Call linq2db_info first when the profile or SQL dialect is unknown. Call linq2db_schema when database objects are unknown and call linq2db_skill for detailed guidance.

Multiple statements and SQL that cannot be classified as read-only are rejected.

Do not use it for write-capable SQL.

Input parameters:

- `maxRows` (integer|null): Optional row limit. Prefer a small value for exploration; use 0 only when the full result set is explicitly needed.
- `output` (string|null): Optional output: json or json-table. Prefer json-table for metadata, duplicate column names, expressions, or joins; use json for object-shaped rows with unique names.
- `profile` (string|null): Optional profile returned by linq2db_info or explicitly provided by the user. If omitted, the server startup/default profile is used. Requires server startup with --config.
- `sql` (string, required): One provider-appropriate read-only SQL statement. Prefer SELECT or WITH. Use explicit aliases for expressions and joins because json output requires unique column names.

### `linq2db_skill` (~61 tokens)

Get linq2db CLI skill

Returns the full embedded linq2db CLI agent skill as Markdown.

Use it for detailed configuration, provider loading, SQL safety, output, timeout, impersonation, and workflow guidance. This documentation-only tool does not access a database or return secrets.

### `linq2db_schema` (~330 tokens)

Get database schema

Returns provider-independent database schema metadata for the selected linq2db query/MCP profile.

Use this tool before generating SQL when table names, column names, keys, relationships, schemas, or catalogs are unknown.

It reads metadata only, does not read table data or execute SQL, and does not return secrets. Procedures and functions are not supported.

Input parameters:

- `defaultSchema` (string|null): Default schema name.
- `detailLevel` (string|null): Schema detail level. Allowed values: full, names. Use names for compact object discovery, then request full metadata with filters.
- `filterCatalogs` (array|null): Optional catalog name filters. Exact names only.
- `filterSchemas` (array|null): Optional schema name filters. Exact names only.
- `filterTables` (array|null): Optional table or view name filters. Matches name, schema.name, or catalog.schema.name. Use regex: or rx: prefix for regular expressions.
- `generateChar1AsString` (boolean|null): Map char(1) metadata to string instead of char.
- `getForeignKeys` (boolean|null): Read foreign key metadata.
- `getTables` (boolean|null): Read table and view metadata.
- `ignoreSystemHistoryTables` (boolean|null): Ignore SQL Server temporal history tables when provider supports it.
- `preferProviderSpecificTypes` (boolean|null): Prefer provider-specific .NET types in schema metadata.
- `profile` (string|null): Optional profile returned by linq2db_info or explicitly provided by the user. If omitted, the server startup/default profile is used. Requires server startup with --config.

## Diagnostics

Captured diagnostic sections: Provenance, Dependencies. The full working is on the page: https://verifymcp.io/servers/linq2db-linq2db-cli/linq2db-cli#diagnostics

## Score history

- 2026-09-20: 72
- 2026-09-19: 72
- 2026-09-18: 68
- 2026-09-17: 68
- 2026-09-16: 68
- 2026-09-15: 68
- 2026-09-14: 68
- 2026-09-13: 68
- 2026-09-12: 68
- 2026-09-11: 68

## Common questions

### What is the LINQ to DB MCP server?

LINQ to DB is an MCP server listed in the public MCP registry as io.github.linq2db/linq2db.cli. Inspect database schemas and execute SQL queries across multiple database providers with LINQ to DB. This page covers its NuGet package (linq2db.cli).

### Is the LINQ to DB MCP server safe to use?

LINQ to DB scores 72 out of 100 on VerifyMCP. We found no known CVEs affecting it as of 20 September 2026. It declares no install or post-install scripts. That is a record of what we were able to check automatically, not an endorsement. The category breakdown on this page shows every signal behind the number, including the ones we could not confirm.

### What tools does the LINQ to DB MCP server expose?

LINQ to DB exposes 4 tools: linq2db_info, linq2db_query, linq2db_skill, linq2db_schema. Their descriptions and schemas cost roughly 721 tokens of context every time the server is loaded.

### Is the LINQ to DB MCP server still maintained?

LINQ to DB is still listed as active in the MCP registry. We last reached this channel on 20 September 2026. Those dates come from our own scans of the registry and the channel itself, not from anything the publisher announced.

### What licence is the LINQ to DB MCP server under?

LINQ to DB declares the MIT licence, which is OSI-approved. That covers the source only, and says nothing about the cost of any service it calls.

## Links

- NuGet package: https://www.nuget.org/packages/linq2db.cli
- Socket report: https://socket.dev/nuget/package/linq2db.cli
- Repository: https://github.com/linq2db/linq2db
- Changelog RSS feed: https://verifymcp.io/servers/linq2db-linq2db-cli/linq2db-cli.xml
- Changelog JSON feed: https://verifymcp.io/servers/linq2db-linq2db-cli/linq2db-cli.json
- HTML version of this page: https://verifymcp.io/servers/linq2db-linq2db-cli/linq2db-cli
