Skip to content
Skillpedia
● Free and open sourceπŸ’» LocalπŸ”“ No API keyData and databases

LINQ to DB

Lets your AI agent inspect database schemas and run SQL queries across several database providers.

3.3k stars on GitHubby LINQ to DB team (linq2db)License MITUpdated 18 days ago

How to install

This MCP is local: it runs on your computer.

It works in apps installed on your PC (Claude Desktop, Claude Code, Cursor, VS Code…). Choose your app:

Paste in the terminal:

claude mcp add linq2db-cli -- dnx linq2db.cli --yes -- mcp --config "<config>" --enable-execute-tool false

Ready! Now test it

Restart the app and paste one of these requests in the chat:

Show me the tables and columns in my Northwind database.
Run a query to list the ten newest products.

What it is

The registry lists this as an MCP server built on LINQ to DB, a type-safe .NET database access library. It lets your agent look at database schemas and run SQL queries on many database providers. The readme provided is for the library and does not describe the MCP setup.

What it can do

  • Inspect database schemas
  • Execute SQL queries
  • Work with multiple database providers

When to use

  • β€ΊWhen you work in .NET and want your agent to read your database layout.
  • β€ΊWhen you want to check query results without leaving your editor.
  • β€ΊWhen you use more than one kind of database and want one tool.

What you need

A .NET setup and a connection string for your database. The linq2db.cli dotnet tool is mentioned in the readme. Check the project docs for MCP setup steps.

Skills that pair well

⭐ Skillpedia MCP Β· freeYour agent finds the right skill on its ownInstall our MCP and your agent searches 15,000+ skills whenever it needs one.Install for free β†’

Frequently asked questions

Is it free and open source?

LINQ to DB is open source under the MIT license.

Which databases does it work with?

The library supports many providers, such as SQL Server in the readme examples. Check the provider list in the project docs.

What is LINQ to DB?

A fast, type-safe .NET library that sits between your classes and your database, lighter than Entity Framework.

Does it need an account or key?

No account or key is mentioned. You need your own database connection string.

Where is the MCP setup explained?

The readme given here does not cover it. See the linq2db project site and the linq2db.cli package.

Can it generate classes from a database?

The readme says you can generate POCO classes from your database with the linq2db.cli dotnet tool.

If it does not work

  • β€ΊCheck that your connection string and provider name are correct.
  • β€ΊMake sure the .NET SDK is installed.
  • β€ΊRestart your AI client fully after adding the server.

5 new skills a week. 1 minute to read.