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
Skills that pair well
MCP or skill?
The MCP gives the agent the hands. The skill teaches the right way to use them. Together, the result is better and uses fewer tokens.
sql-database-assistantHelps your agent write and speed up SQL queries, explore a database schema, and create migrations for common database tools.sql-proHelps your agent write faster SQL queries, design database tables and find out why a database query is slow.redis-cliLets your agent use the Redis command line. It's useful for querying, inspecting, or managing the Redis database directly from the command line.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.