# Diogenes Database Intelligence & SQL Engine MCP

> Diogenes Database Intelligence & SQL Engine MCP is a freemium MCP server for databases. Remote MCP server with 12 SQL analysis tools for auditing, tuning and migrating databases. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Pricing:** Freemium
- **Platforms:** API, CLI
- **Website:** https://diogenesgateway.com
- **Repository:** https://github.com/stand-out-of-my-sun/diogenes-database-intelligence-mcp
- **MCP Registry name:** io.github.stand-out-of-my-sun/diogenes-database-intelligence-mcp
- **Categories:** [databases](https://ai-powered.com/categories/databases)
- **Listing updated:** 2026-11-27

## About

This endpoint gives AI clients a set of database tools that work on SQL text and schema definitions rather than on a live database connection. Callers send DDL, queries or EXPLAIN output and get back findings such as injection risks, lock-heavy migrations, missing indexes or normal-form violations.

The tools cover several stages of the database lifecycle: writing queries from a plain-language request, reviewing execution plans, checking schema changes in CI, converting SQL between PostgreSQL, MySQL and SQLite, sizing connection pools and generating ORM models for Prisma, Drizzle, SQLAlchemy and Zod. Each tool is a stateless call with a 32 KB input limit, and a demo flag returns a schema preview without payment.

It suits backend engineers, data teams and developers who want database checks inside Cursor, Claude Desktop, Zed or Windsurf without installing a local dependency. Paid calls are settled per request through the gateway, and a prepaid key option is available for higher volume.

## Features

- **Injection and taint auditing:** Statically parses SQL to flag second-order injection, tautologies and stacked queries.
- **Query plan optimization:** Reads EXPLAIN output to point out sequential scans, costly joins and buffer bottlenecks.
- **Breaking migration detection:** Compares source and target DDL to surface destructive drops and lock-inducing changes.
- **Cross-dialect SQL transpiling:** Rewrites queries and DDL between PostgreSQL, MySQL and SQLite syntax.
- **Index and pool sizing:** Suggests B-tree or composite indexes and connection pool settings based on workload.
- **Log PII scrubbing:** Masks personal data and credential literals in SQL logs before they are shipped.

## Good for

- Reviewing dynamic SQL for injection risk before it reaches production
- Checking CI migration scripts for changes that could cause downtime
- Diagnosing slow queries from their EXPLAIN plans
- Porting application queries between PostgreSQL, MySQL and SQLite
- Generating seed fixtures and ORM models for test and staging environments

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add --transport http diogenes-database-intelligence-mcp https://diogenesgateway.com/mcp/database-intelligence
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "diogenes-database-intelligence-mcp": {
      "type": "http",
      "url": "https://diogenesgateway.com/mcp/database-intelligence"
    }
  }
}
```

### Claude Desktop (Customize → Connectors → Add → Add custom connector)

```text
https://diogenesgateway.com/mcp/database-intelligence
```

Paste this URL, choose how to sign in, then click Add and Connect. On Team and Enterprise an Owner adds it in Organization settings → Connectors.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "diogenes-database-intelligence-mcp": {
      "url": "https://diogenesgateway.com/mcp/database-intelligence"
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "diogenes-database-intelligence-mcp": {
      "type": "http",
      "url": "https://diogenesgateway.com/mcp/database-intelligence"
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### ChatGPT (chatgpt.com → Plugins → + → Add custom MCP server)

```text
https://diogenesgateway.com/mcp/database-intelligence
```

Paste this URL, set up sign-in, accept the warning and install the plugin. Then type @ in a chat to use it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add diogenes-database-intelligence-mcp --url https://diogenesgateway.com/mcp/database-intelligence
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.diogenes-database-intelligence-mcp]
url = "https://diogenesgateway.com/mcp/database-intelligence"
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "diogenes-database-intelligence-mcp": {
      "httpUrl": "https://diogenesgateway.com/mcp/database-intelligence"
    }
  }
}
```

Or run: gemini mcp add -s user --transport http diogenes-database-intelligence-mcp https://diogenesgateway.com/mcp/database-intelligence

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "diogenes-database-intelligence-mcp": {
      "serverUrl": "https://diogenesgateway.com/mcp/database-intelligence"
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "diogenes-database-intelligence-mcp": {
      "url": "https://diogenesgateway.com/mcp/database-intelligence",
      "transport": "http"
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "diogenes-database-intelligence-mcp": {
      "type": "streamableHttp",
      "url": "https://diogenesgateway.com/mcp/database-intelligence"
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "diogenes-database-intelligence-mcp": {
      "url": "https://diogenesgateway.com/mcp/database-intelligence"
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "diogenes-database-intelligence-mcp": {
      "url": "https://diogenesgateway.com/mcp/database-intelligence"
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "diogenes-database-intelligence-mcp": {
      "url": "https://diogenesgateway.com/mcp/database-intelligence"
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "diogenes-database-intelligence-mcp": {
      "url": "https://diogenesgateway.com/mcp/database-intelligence"
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Grok Bot (Grok Bot desktop app → Connect apps → Add a custom connector)

```sh
https://diogenesgateway.com/mcp/database-intelligence
```

Enter a Name (for example "Diogenes Database Intelligence & SQL Engine MCP"), choose Type: Remote HTTPS, paste this as the Server URL and choose Add plugin.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "diogenes-database-intelligence-mcp": {
      "type": "http",
      "url": "https://diogenesgateway.com/mcp/database-intelligence"
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 3 of 12 tools read data; 9 names don't say. From the server's own tool labels and tool names; not verified by us.

- `synthesize_sql_query` (name suggests: reads): Writes SQL SELECT queries from natural language and a schema.
- `audit_sql_injection_ast`: Detects injection, tautology and stacked-query risks in SQL.
- `analyze_query_plan` (name suggests: reads): Analyses EXPLAIN plans for scans, costly joins and memory bottlenecks.
- `detect_breaking_migrations`: Finds breaking and lock-inducing changes between two schemas.
- `transpile_sql_dialect`: Converts SQL and DDL across PostgreSQL, MySQL and SQLite.
- `recommend_database_indexes`: Recommends B-tree and composite indexes from slow query patterns.
- `validate_schema_normalization` (name suggests: reads): Checks schemas for 3NF compliance and missing foreign keys.
- `sanitize_sql_telemetry`: Masks PII and literals in SQL query logs.
- `synthesize_seed_fixtures`: Generates relational seed fixtures respecting key constraints.
- `calculate_pool_headroom`: Calculates connection pool sizing and idle timeouts.
- `audit_transaction_isolation`: Flags dirty reads, non-repeatable reads and deadlock risks.
- `generate_orm_models`: Compiles DDL into Prisma, Drizzle, SQLAlchemy and Zod models.

## FAQ

### Does Diogenes Database Intelligence & SQL Engine MCP connect to my database?

No. The tools take SQL text, DDL, EXPLAIN output or logs as input and analyse them statically.

### Can I try Diogenes Database Intelligence & SQL Engine MCP without paying?

Yes. Adding ?demo=true to any endpoint returns a schema preview at no cost, and several developer tools run without payment.

### How do I connect Diogenes Database Intelligence & SQL Engine MCP to my client?

Add the streamable-http endpoint https://diogenesgateway.com/mcp/database-intelligence to your MCP client configuration, or run the npx package over stdio.

### How is usage paid for?

Paid calls are charged per request through Stripe or several crypto rails, or drawn from a prepaid key.

### How do I add Diogenes Database Intelligence & SQL Engine MCP to Claude Code?

Run this command in your terminal: claude mcp add --transport http diogenes-database-intelligence-mcp https://diogenesgateway.com/mcp/database-intelligence

### What are the best alternatives to Diogenes Database Intelligence & SQL Engine MCP?

The closest alternatives to Diogenes Database Intelligence & SQL Engine MCP are MCP Database Doctor, db-mcp (SQLite MCP Server), JDBC MCP Server, Postgres Scout MCP and Postgres MCP.

## Where this comes from

- Description: written from the project's README, the project's website and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [MCP Database Doctor](https://ai-powered.com/mcp/mcp-database-doctor): MCP Database Doctor is an open-source MCP server for databases.
- [db-mcp (SQLite MCP Server)](https://ai-powered.com/mcp/db-mcp-sqlite-mcp-server): db-mcp (SQLite MCP Server) is an open-source MCP server for databases.
- [JDBC MCP Server](https://ai-powered.com/mcp/jdbc-mcp-server): JDBC MCP Server is an open-source MCP server for databases.
- [Postgres Scout MCP](https://ai-powered.com/mcp/postgres-scout-mcp): Postgres Scout MCP is an open-source MCP server for databases.
- [Postgres MCP](https://ai-powered.com/mcp/postgres-mcp-3): Postgres MCP is an open-source MCP server for databases.
- [MCP Postgres](https://ai-powered.com/mcp/mcp-postgres): MCP Postgres is an open-source MCP server for databases.
- [SQL Server MCP by InsightfulPipe](https://ai-powered.com/mcp/sql-server-mcp-by-insightfulpipe): SQL Server MCP by InsightfulPipe is an MCP server for databases.
- [DB MCP](https://ai-powered.com/mcp/db-mcp): DB MCP is an open-source MCP server for databases.

---
Source: https://ai-powered.com/mcp/diogenes-database-intelligence-and-sql-engine-mcp
