
nonanti/narwhal
Developer toolsЭта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал
nonanti/narwhal - кандидат на сервер MCP, импортированный из https://github.com/nonanti/narwhal.
Обзор
nonanti/narwhal - кандидат на сервер MCP, импортированный из https://github.com/nonanti/narwhal.
Обзор (машинный перевод)
Рабочая сетка базы данных для терминала. Инструментарий DBA, MCP-сервер и вим-режим SQL-редактор — в одном статическом двоичном файле.
Установить · Быстрый запуск · Почему нарвал · Документы
Что такое нарвал?
Narwhal - клиент базы данных терминала, построенный вокруг двух вещей. Другие промахи клиента:
- ** Инструменты класса DBA, а не игрушка REPL.** Схема дифф с диалектно-знающим DDL-излучение, журнал аудита только с приложением, песочница плагинов, потоковые отменяемые запросы, диаграммы ER, туннели SSH, секретные Хранилище — операционная поверхность, необходимая для реального дня базы данных.
- ** Интеграция агентов первого класса. ** Встроенный MCP-сервер разоблачает Ваши связи, схема и выполнение запросов Клоду, Курсору, Зед, и любой клиент, осведомленный о MCP. Нет прокси, нет адаптера (T0) и ты подключен.
Шесть двигателей (Postgres, MySQL, SQLite, DuckDB, ClickHouse, SQL Server) Три режима редактора (vim / basic / emacs), один статический двоичный.
##Установка
Другие каналы — cargo install narwhaldb, Homebrew, AUR, Nix flake,
Ветхий завет — это то, что в нем содержится [2].
Быстрый старт
Внутри:
- [[Т3]] — соединение волшебника, или [[Т4]]
Эта страница переведена автоматически. Технические детали смотрите в оригинале.
README
Показан фрагмент оригинального README. Открыть оригинал.
What is narwhal?
narwhal is a terminal database client built around two things every other client misses:
- DBA-grade tooling, not a toy REPL. Schema diff with dialect-aware DDL emit, append-only audit log, capability-gated plugin sandbox, streaming cancellable queries, ER diagrams, SSH tunnels, secret vault — the operational surface a real database day needs.
- First-class agent integration. A built-in MCP server exposes
your connections, schema, and query execution to Claude, Cursor,
Zed, and any MCP-aware client. No proxy, no adapter —
narwhal mcpand you’re wired.
Six engines (Postgres, MySQL, SQLite, DuckDB, ClickHouse, SQL Server), three editor modes (vim / basic / emacs), one static binary.
Install
curl -fsSL https://github.com/Nonanti/narwhal/releases/latest/download/install.sh | sh
Other channels — cargo install narwhaldb, Homebrew, AUR, Nix flake,
prebuilt tarballs — are listed in docs/install.md.
Quick start
narwhal # launches the TUI
Inside:
:add— connection wizard, or:url postgres://user:pass@host/db:open— connect; the sidebar fills with schemas and tables- F6 — run the buffer; results stream into the lower pane
- F1 — full keymap
Headless:
narwhal exec --conn prod 'SELECT count(*) FROM orders' --format json
Agent-native: wire it to your editor
narwhal embeds an MCP server over stdio. Run it once and your AI assistant can browse schema, sample data, and run queries against your saved connections — with the same read-only / per-connection guards the TUI uses.
narwhal mcp --read-only
Claude Desktop (~/.config/Claude/claude_desktop_config.json):
{
"mcpServers": {
"narwhal": {
"command": "narwhal",
"args": ["mcp", "--read-only"]
}
}
}
Cursor, Zed, Continue, Aider, and custom clients work the same way.
Full setup: docs/mcp.md.
Установка
This server does not publish a one-line install command.
Open the repository installation guide Новичок в MCP? Начните с руководства на mcpskill.org →Конфигурация
{
"mcpServers": {
"narwhal": {
"command": "narwhal",
"args": ["mcp", "--read-only"]
}
}
}