# LINQ to DB [Health: Active]

**Category:** 🗄️ Databases  
**Repository:** https://github.com/linq2db/linq2db  
**GitHub Stars:** 3334  
**Views:** 2  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/linq-to-db

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

## Claude Desktop Quick Installation
No confirmed install details yet, so no config is published. Follow the setup steps in the repository above.

## Documentation

## What LINQ to DB MCP server does

The LINQ to DB MCP server exposes database access through LINQ to DB, a .NET library that provides a thin, type-safe layer between application objects and relational databases. The listing identifies two agent-facing capabilities: inspecting database schemas and executing SQL queries. These capabilities make the server relevant for database exploration, query assistance, and tasks that require reading or changing data through SQL.

LINQ to DB supports multiple database providers, so the server is not described as being tied to one database engine. The underlying library works with configured `DataConnection` or `DataContext` instances and supports connection strings, provider selection, and database mappings.

## How it works

The LINQ to DB MCP server uses LINQ to DB as its database-access layer. LINQ to DB can work with POCO classes mapped to tables and columns, either through mapping attributes or fluent configuration. It can also operate with database connection settings supplied through `DataOptions`, application configuration files, or a custom settings provider.

For agent use, the documented purpose is narrower than the full LINQ to DB library: the agent can inspect schema information and submit SQL queries. Those details should be verified before using the server against production data.

## Tools and capabilities

The documented capabilities are:

- Inspect database schemas.
- Execute SQL queries.
- Work across multiple database providers through LINQ to DB.
- Use LINQ to DB connection and provider configuration.
- Support databases represented through mapped POCO classes when application-side mappings are used.

The underlying library also includes APIs for joins, common table expressions, bulk copy and insert, window functions, merge operations, and custom SQL mappings.

## Setup and configuration

The repository documentation explains LINQ to DB configuration rather than a dedicated MCP installation procedure. A database connection can be supplied to `DataConnection` or `DataContext` through `DataOptions`, with a provider-specific connection string. .NET Framework applications can instead use connection strings in `app.config` or `web.config`, while applications can also provide settings through `ILinqToDBSettings`.

Before using the LINQ to DB MCP server, configure the database connection and provider required by the target system. The material does not identify required environment variables, command-line arguments, package commands, transport settings, or client-specific configuration for the MCP server. It also does not document a server launch command.

## Limitations and notes

The repository is primarily documented as the LINQ to DB .NET library, not as a complete MCP server reference. Database credentials and access controls remain the responsibility of the surrounding application and connection configuration.

_Full upstream README: https://allmcps.com/mcp/linq-to-db/readme_

