
This is a Model Context Protocol (MCP) server for interacting with AIStor object stores.

An MCP server that connects to MSSQL, PostgreSQL, and SQLite databases and exposes tools for listing databases, inspecting schemas, and executing SQL queries.
SQL MCP server for MSSQL, PostgreSQL, and SQLite is cataloged as an MCP server attributed to nakiriyuuzu. An MCP server that connects to MSSQL, PostgreSQL, and SQLite databases and exposes tools for listing databases, inspecting schemas, and executing SQL queries. It is categorized under databases storage. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.
能力定义尚未审核。未核验的采集内容不会作为可信接口展示。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for SQL MCP server for MSSQL, PostgreSQL, and SQLite are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
It supports MSSQL, PostgreSQL, and SQLite via better-sqlite3.
Yes, PRAGMA statements are allowed in all modes including safe because they are read-only metadata queries commonly used with SQLite.
README.md · d02f01768c01 · 采集于 2026-11-13 12:16:31 UTC
保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。
当前显示最后一次成功采集的文档快照,请以来源页面为准。
A Model Context Protocol (MCP) server for MSSQL, PostgreSQL, and SQLite database operations.
# Using bunx (recommended)
bunx @yuuzu/sql-mcp
# Using npx
npx @yuuzu/sql-mcp
| Tool | Description |
|---|---|
connect-database | Connect to a database server |
disconnect | Disconnect from the current connection |
connection-status | Check connection status and query mode |
list-databases | List all databases on the server |
switch-database | Switch to a different database |
list-tables | List all tables and views |
describe-table | Get table schema details |
execute-query | Execute SQL queries |
Control query permissions via SQL_MCP_MODE environment variable:
| Mode | Allowed Operations | Description |
|---|---|---|
safe (default) | SELECT, WITH, EXPLAIN | Read-only, safest |
write | + INSERT, UPDATE, DELETE | Allows data modification |
full | + CREATE, DROP, ALTER, TRUNCATE | Full access, use with caution |
Note:
PRAGMAstatements (e.g.PRAGMA table_info(users)) are allowed in all modes includingsafe, as they are read-only metadata queries commonly used with SQLite.
# Example: Enable write mode
SQL_MCP_MODE=write bunx @yuuzu/sql-mcp
Add to your claude_desktop_config.json:
{
"mcpServers": {
"sql-mcp": {
"command": "bunx",
"args": ["@yuuzu/sql-mcp"],
"env": {
"SQL_MCP_MODE": "safe"
}
}
}
}
{
"tool": "connect-database",
"arguments": {
"engine": "mssql",
"server": "localhost",
"port": 1433,
"user": "sa",
"password": "your_password",
"database": "master"
}
}
{
"tool": "connect-database",
"arguments": {
"engine": "postgres",
"server": "localhost",
"port": 5432,
"user": "postgres",
"password": "your_password",
"database": "postgres"
}
}
{
"tool": "connect-database",
"arguments": {
"engine": "mssql",
"server": "localhost",
"windowsAuth": true
}
}
{
"tool": "connect-database",
"arguments": {
"engine": "postgres",
"server": "your-server.com",
"user": "postgres",
"password": "your_password",
"ssl": {
"rejectUnauthorized": true,
"ca": "/path/to/ca-certificate.crt"
}
}
}
{
"tool": "connect-database",
"arguments": {
"engine": "sqlite",
"filename": "/absolute/path/to/database.db"
}
}
Useful for testing, demos, or ephemeral scratch workspaces.
{
"tool": "connect-database",
"arguments": {
"engine": "sqlite",
"filename": ":memory:"
}
}
{
"tool": "connect-database",
"arguments": {
"engine": "sqlite",
"filename": "/absolute/path/to/database.db",
"readonly": true,
"fileMustExist": true
}
}
SQLite runtime note: SQLite support uses
better-sqlite3which requires Node.js. When running viabunx, MSSQL and PostgreSQL work normally but SQLite connections will return a clear error directing you to usenpxornodeinstead.
# Install dependencies
bun install
# Run in development mode
bun run dev
# Run tests
bun test
# Run tests with coverage
bun test --coverage
# Build
bun run build
# Type check
bun run typecheck
Releases are automated via GitHub Actions. To create a new release:
# Create and push a version tag
git tag v1.0.0
git push origin v1.0.0
This will:
Requirements: Set NPM_TOKEN secret in your GitHub repository settings.
MIT
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for SQL MCP server for MSSQL, PostgreSQL, and SQLite from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/sql-mcp)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。
尚无已审核的包 / 镜像标识,暂不展示下载统计。
Alternative and complementary servers in the same category

This is a Model Context Protocol (MCP) server for interacting with AIStor object stores.

A Model Context Protocol server that lets AI assistants run SQL queries against AWS Athena databases and retrieve results.

A Model Context Protocol (MCP) server that exposes access to an InfluxDB v2 instance using the InfluxDB OSS API v2.