Skip to main content
Glama
rog0x

mcp-database-tools

by rog0x

mcp-database-tools

MCPサーバーは、AIエージェント向けのSQLおよびデータベースツールを提供します。すべての分析はSQLテキストに対して実行され、実際のデータベース接続は不要です。

ツール

sql_format

SQLクエリを適切なインデント、大文字のキーワード、整列された列で整形・美化します。MySQL、PostgreSQL、SQLiteの構文をサポートします。

sql_explain

SQLクエリを受け取り、それが何を行うかを平易な英語で段階的に説明します。クエリの種類、テーブル、列、条件を特定し、最適化のヒントを提供します。

schema_analyze

CREATE TABLE文を解析して、テーブル、列、型、制約、外部キー、インデックスを抽出します。Mermaid形式のER図を生成します。

query_build

自然言語の説明からSQLクエリを構築します。日付によるフィルタリング、集計、結合、並べ替え、ページネーションなどの一般的なパターンをサポートします。

migration_generate

2つのスキーマ(古いCREATE TABLE文と新しいCREATE TABLE文)を比較し、ALTER TABLEマイグレーション文を生成します。アップ(前進)とダウン(ロールバック)の両方のマイグレーションを生成します。

Related MCP server: DB MCP Server

インストール

npm install
npm run build

使用法

Claude Desktopを使用する場合

Claude Desktopの設定(claude_desktop_config.json)に追加します:

{
  "mcpServers": {
    "database-tools": {
      "command": "node",
      "args": ["path/to/mcp-database-tools/dist/index.js"]
    }
  }
}

スタンドアロン

npm start

開発

npm run build    # Compile TypeScript
npm start        # Run the server

ライセンス

MIT

Install Server
A
license - permissive license
A
quality
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    Not graded
    quality
    A
    maintenance
    Enables AI assistants to query databases using natural language, with automatic schema discovery and SQL compilation.
    1,118
    3,147
    Apache 2.0
  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables executing SQL queries, schema introspection, and data management for PostgreSQL and MySQL databases via natural language, supporting local, SSH, and AWS RDS connections.
    92
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables natural language querying of SQL databases using AI, supporting multiple database types and automatic schema discovery.
    1
    MIT

View all related MCP servers

Related MCP Connectors

  • Query PostgreSQL databases in plain English — LLM-generated, safety-validated SQL.

  • The grounded data layer for any LLM: governed SQL, metrics, lineage and catalog over your data.

  • JSON/YAML, regex, diff, JWT, SQL dialects — the keyless millisecond ops an agent needs mid-task.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/rog0x/mcp-database-tools'

If you have feedback or need assistance with the MCP directory API, please join our Discord server