Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

sqlike-mcp

MCP server by orifisher2 Community

sqlike-mcp lints SQL before it runs and checks whether a rewritten query still returns the same results. It is aimed at developers who want to verify SQL, including SQL written by an AI assistant.

  • Score 81
  • 8 stars
  • 971 a week
  • Apache-2.0
  • Updated

Install sqlike-mcp

Built from the published package, never by AI.

claude mcp add sqlike-mcp -- npx -y @sqlike/mcp

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install sqlike-mcp in Claude Code

MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the sqlike-mcp block.

About

sqlike-mcp is an MCP server from the sqlike project. It checks SQL before it runs and reports validity errors, anti-patterns, suggested rewrites, and schema and index advice through its analyze tool. Its diff tool checks whether two queries are equivalent and returns a verdict of Equivalent, EquivalentWithNotes, Differs, or Undecided. It supports Postgres, MySQL, MariaDB, SQLite, SQL Server, and DuckDB.

The analysis does not use a language model, so the same query gets the same answer. The client tokenizes SQL locally, masking identifiers and literals, and forwards only the tokenized query to a server-side engine. The project is aimed at developers and teams who want to check SQL, and the same checks are available in a CLI for CI and pre-commit use.

Written from the project's README and checked against it.

Tools it gives your assistant

  • analyzeStatic analysis of one query, covering validity, anti-patterns, suggested rewrites, and index advice.
  • diffChecks whether two queries are equivalent and reports a verdict with a confidence level.

What you need

  • npx or npm to launch the @sqlike/mcp package
  • Optional SQLIKE_API_KEY for higher rate limits
SettingNeededWhat it is
SQLIKE_API_KEYEnvironment variable, secretOptionalOptional API key for the sqlike backend (higher rate limits).

From the publisher's entry in the official MCP Registry. Required settings are already in the install config below as placeholders.

Try asking

  • Analyze this Postgres query for anti-patterns and suggest safer rewrites.
  • Check whether my rewritten query returns the same rows as the original.
  • Review this MySQL query for index problems using the schema I paste in.

Good to know

  • The analysis engine runs server-side and is closed source.
  • If a query cannot be parsed, it is not sent unless allow_raw is set to true.
  • An Undecided verdict means the rewrite could not be proven equivalent, not that it differs.
  • Without an API key, requests use the anonymous tier with its own rate limits.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to sqlike-mcp

All alternatives →
Supabase supabase
97

Connects Supabase projects to AI assistants such as Cursor, Claude and Windsurf over the Model Context Protocol. It lets assistants manage tables, fetch config and query data in a Supabase project.

AAA Local and remote 172k/wk
ArcadeDB MCP Server ArcadeData
94

ArcadeDB MCP Server is the built-in Model Context Protocol server of the ArcadeDB multi-model database. It lets AI assistants and LLMs work with ArcadeDB's graph, document, time-series, vector and other data models. It suits people who already run ArcadeDB and want assistant access to it.

AAA Local 1.3k
DBHubbytebase
94

Connects MCP clients such as Claude Desktop, Cursor and VS Code to PostgreSQL, MySQL, MariaDB, SQL Server, Oracle, ClickHouse and SQLite. It exposes two tools by default, with read-only mode and query timeouts available as guardrails.

AAA Local 343k/wk
MCP Toolbox for Databasesgoogleapis
94

MCP Toolbox for Databases is an open source MCP server that connects AI agents, IDEs and applications to enterprise databases. It provides prebuilt tools for exploring schemas and running queries, plus a framework for custom tools. It is aimed at developers building agents that need database access.

AAA Local 17k
MCP Toolbox for Databasesgoogleapis
94

Connects AI agents, IDEs and applications to enterprise databases through the Model Context Protocol. Offers prebuilt database tools for MCP clients and a framework for building custom tools for production agents.

AAA Local 17k
mongodb-mcp-servermongodb-js
94

MongoDB MCP Server lets AI assistants interact with MongoDB databases and MongoDB Atlas. It is an official server from mongodb-js, run locally with npx or Docker. It works with self-managed deployments and Atlas clusters.

AAA Local 203k/wk

Compare with Supabase, ArcadeDB MCP Server or DBHub

sqlike-mcp: common questions

Does sqlike-mcp send my real table names and values to the server?

No. The client tokenizes the SQL locally, masking identifiers and literals, and forwards only the tokenized query. Unparseable queries are refused unless raw sending is explicitly enabled.

Which databases does sqlike-mcp support?

It supports Postgres, MySQL, MariaDB, SQLite, SQL Server, and DuckDB. Each rule is measured on that engine's behaviour.

Does it need an account to use?

The source says the anonymous tier needs no signup. An API key is optional and only raises the rate limits.

How do I install sqlike-mcp?

In Claude Code run claude mcp add sqlike-mcp -- npx -y @sqlike/mcp. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.

Is sqlike-mcp the official server?

sqlike-mcp is a community project by orifisher2, not verified by a company domain.

Is sqlike-mcp free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is sqlike-mcp safe to use?

It scores 81 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to sqlike-mcp?

Similar MCP servers: Supabase, ArcadeDB MCP Server, DBHub, MCP Toolbox for Databases.

Does sqlike-mcp work with ChatGPT?

Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.

sqlike-mcp Install

Add to stack

Loading.