Tools Sql
БесплатноНе проверенProvides safe, configurable SQL database access via MCP tools, enabling schema introspection, predefined queries, and structured updates with multi-backend supp
Описание
Provides safe, configurable SQL database access via MCP tools, enabling schema introspection, predefined queries, and structured updates with multi-backend support.
README
Status: Under active development — not yet functional.
An MCP server for safe, configurable SQL database access. Exposes schema introspection, user-defined SELECT queries, and structured UPDATE operations as MCP tools for LLM-assisted workflows.
Key Ideas
- Configurable, not ad-hoc: Every query the LLM can run is defined upfront in config. The config is the security boundary.
- Schema discovery: Built-in tools to explore schemas, tables, columns, and foreign key relations.
- Structured updates: UPDATE operations are defined as table + key + fields, not raw SQL. The server generates the SQL.
- Split config: Query definitions live in the project repo (safe to commit). Credentials live in the user's home directory (never committed).
- Multi-backend: MS SQL Server (primary), PostgreSQL, SQLite.
Architecture
MCP Client (Claude Code, etc.)
↕ STDIO/MCP
mcp-tools-sql server
├── Built-in tools (schema introspection)
├── Configured query tools (from mcp-tools-sql.toml)
├── Configured update tools (from mcp-tools-sql.toml)
└── Backend abstraction
├── SQLite (stdlib)
├── MS SQL Server (pyodbc)
└── PostgreSQL (psycopg)
See docs/architecture/architecture.md for details.
Installation
pip install mcp-tools-sql # core + SQLite
pip install mcp-tools-sql[mssql] # + SQL Server support
pip install mcp-tools-sql[postgresql] # + PostgreSQL support
Quick Start
# Generate starter project query config (mcp-tools-sql.toml) and a
# database config skeleton at ~/.mcp-tools-sql/config.toml
mcp-tools-sql init --backend sqlite
# Edit ~/.mcp-tools-sql/config.toml and set the SQLite path, e.g.:
# [connections.default]
# backend = "sqlite"
# path = "./mydb.db"
# Validate environment, configs, dependencies, and connectivity
mcp-tools-sql verify
# Start MCP server
mcp-tools-sql --config mcp-tools-sql.toml
See docs/cli.md for the full CLI reference (all flags, example output, exit codes).
Configuration
Two config files:
| File | Purpose | Location |
|---|---|---|
mcp-tools-sql.toml |
Query/update definitions | Project dir (committed) |
~/.mcp-tools-sql/config.toml |
Database connections + credentials | User home (never committed) |
The --config flag overrides the project query config path; the
--database-config flag overrides the database config path.
See the planning document for full details.
License
MIT
Установить Tools Sql в Claude Desktop, Claude Code, Cursor
unyly install mcp-tools-sqlСтавит в Claude Desktop, Claude Code, Cursor и VS Code — сам разбирается с npx, uvx и сборкой из исходников.
Впервые? Поставь CLI: curl -fsSL https://unyly.org/install | sh
Или настроить вручную
Выполни в терминале:
claude mcp add mcp-tools-sql -- uvx mcp-tools-sqlFAQ
Tools Sql MCP бесплатный?
Да, Tools Sql MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Tools Sql?
Нет, Tools Sql работает без API-ключей и переменных окружения.
Tools Sql — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить Tools Sql в Claude Desktop, Claude Code или Cursor?
Открой Tools Sql на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
wenb1n-dev/SmartDB_MCP
A universal database MCP server supporting simultaneous connections to multiple databases. It provides tools for database operations, health analysis, SQL optim
автор: wenb1n-devPostgres Server
This server enables interaction with PostgreSQL databases through the Model Context Protocol, optimized for the AWS Bedrock AgentCore Runtime. It provides tools
автор: madhurprashPostgres
Query your database in natural language
автор: AnthropicPostgreSQL
Read-only database access with schema inspection.
автор: modelcontextprotocolCompare Tools Sql with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории data
