MCP (Model Context Protocol) server providing SQL database access for AI assistants like Cursor, Claude, and Copilot. Supports PostgreSQL, MySQL, SQL Server, SQLite, and IBM DB2 via unified tools (query, select, create table, etc.). Version 1.1.2 is current; released in 2025. Configuration via connection strings or JSON config files, with SSH tunnel support. Ships TypeScript types. Requires Node.js 18+. Differentiator: eliminates need for Docker or shell commands for AI database interaction; supports multiple database types and connections.
npm install talk-sqlNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows setup for multiple database connections using a config file and npx run, plus AI client configuration.
If SQLite not needed, no fix required. Otherwise install Windows Build Tools or use WSL.
Set connectionString host to the internal host (e.g., localhost) accessible from the SSH server.
Wrap your connection object in an array: [{...}].Use absolute path (e.g., /home/user/talk-sql.config.json).
Ignore if not using SQLite, or install prebuilt binaries with: npm install better-sqlite3 --build-from-source
Wrap the connection object in an array: [{ "name": "...", "connectionString": "..." }]Check SSH tunnel configuration and ensure connectionString host is correct from the SSH server's perspective.
Use npx talk-sql (without global install) or install globally: npm install -g talk-sql