@rog0x/mcp-database-tools
@rog0x
About @rog0x/mcp-database-tools
MCP server for SQL/database: format SQL, explain queries in plain English, analyze schemas, build queries from natural language, generate migrations Install: npx @rog0x/mcp-database-tools
Basic information
Config
No standard config provided
This server doesn't expose a parseable MCP config block in its README. See the repository for install instructions.
RepositoryTools
No tools detected
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
What is @rog0x/mcp-database-tools?
An MCP server that provides SQL and database tools for AI agents. All analysis is performed on SQL text only — no actual database connection is required. It offers tools for formatting, explaining, analyzing, building, and migrating SQL.
How to use @rog0x/mcp-database-tools?
Install via npm install && npm run build. Then configure in Claude Desktop by adding the server to your claude_desktop_config.json with the command node and args pointing to the built dist/index.js. You can also run it standalone with npm start.
Key features of @rog0x/mcp-database-tools
- Format and prettify SQL queries with proper indentation and uppercased keywords
- Explain SQL queries in plain English, step by step, with optimization tips
- Analyze CREATE TABLE statements to extract schema and generate Mermaid ER diagrams
- Build SQL queries from natural language descriptions
- Compare two schemas and generate ALTER TABLE migration statements (up and down)
Use cases of @rog0x/mcp-database-tools
- AI agents that need to format or explain complex SQL queries
- Generating SQL from natural language requests for rapid prototyping
- Analyzing and visualizing database schemas without connecting to a live database
- Creating migration scripts between different schema versions
FAQ from @rog0x/mcp-database-tools
Does this server connect to a real database?
No, all analysis is performed on SQL text only. No actual database connection is required.
What SQL dialects are supported?
The tools support MySQL, PostgreSQL, and SQLite syntax.
How do I use these tools with Claude Desktop?
Add the server to your claude_desktop_config.json following the example in the README. The AI can then invoke the tools.
What output does schema_analyze produce?
It generates an ER diagram in Mermaid format based on the provided CREATE TABLE statements.
Can I run the server without Claude Desktop?
Yes, you can run it standalone using npm start.
More Databases MCP servers
mcp_mysql_server
wenb1n-devModel Context Protocol (MCP) server that supports secure interaction with MySQL databases and has anomaly analysis capabilities.更加牛逼!更加好用!不仅止于mysql的增删改查功能; 还包含了数据库异常分析能力;且便于开发者们进行个性化的工具扩展
Neon MCP Server
neondatabaseMCP server for interacting with Neon Management API and databases
ClickHouse MCP Server
ClickHouseConnect ClickHouse to your AI assistants.
Sail MCP Server for Spark SQL
lakehqDrop-in Apache Spark replacement written in Rust, unifying batch processing, stream processing, and compute-intensive AI workloads.
Multi Database MCP Server
FreePeakA powerful multi-database server implementing the Model Context Protocol (MCP) to provide AI assistants with structured access to databases.
Comments