プロトタイプ · プレビュー版:公式レジストリのすべてのサーバーを掲載し、30分ごとに同期しています。レビューとアカウント機能は今後のステップで始まります。
PopNx MCPAIを使う人のためのMCPサーバー · やさしい言葉で解説

MCP DB Connect

作者:phatngoitバージョン 0.1.21i★ –iパソコンで動く
レジストリ名io.github.phatngoit/mcp-db-connect

インストール

概要

作者による説明(英語の原文)

MCP server for Oracle, MSSQL, PostgreSQL, MySQL, SQLite, MongoDB, and Qdrant vector search access.

PopNx MCPの3つの柱

この3つを1つのスコアにまとめることはしません。意見、測定、人気はそれぞれ別のものだからです。

できること

このサーバーのやさしい解説はまだ書いていません。以下はレジストリから読み取った事実です。

  • 接続方法: パソコンで動く
  • トランスポート: stdio, Streamable HTTP
  • カテゴリ: データベース・データセット
  • 入力が必要なもの:MCP_DB_CONFIG

インストール

使っているAIアプリを選んで、設定をコピーしてください。

インストールの前に

「秘密」と表示された値は、あなたのアカウントの鍵です。絶対に人に教えたり、チャットに貼り付けたりしないでください。

必要なもの

  • npmNode.jsのインストール(npxコマンドに必要)

どのアプリを使っていますか?

上でアプリを選んでください。選んだアプリを覚えておくので、次からはボタンに「…にインストール」と表示されます。

Claude Desktop → Settings → Developer → Edit Config を開き、claude_desktop_config.json にこれを貼り付けます

{
  "mcpServers": {
    "db-connect": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-db-connect",
        "start"
      ],
      "env": {
        "MCP_DB_CONFIG": "your-value"
      }
    }
  }
}

ターミナルでこれを実行します

claude mcp add db-connect --env MCP_DB_CONFIG=your-value -- npx -y mcp-db-connect start

動かす前に、空欄の値を入力してください。

Cursorで開く

または、設定を自分でコピーする

プロジェクトの .cursor/mcp.json、または ~/.cursor/mcp.json に貼り付けます

{
  "mcpServers": {
    "db-connect": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-db-connect",
        "start"
      ],
      "env": {
        "MCP_DB_CONFIG": "your-value"
      }
    }
  }
}

ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。

VS Codeで開く

または、設定を自分でコピーする

プロジェクトの .vscode/mcp.json に貼り付けます

{
  "servers": {
    "db-connect": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "mcp-db-connect",
        "start"
      ],
      "env": {
        "MCP_DB_CONFIG": "your-value"
      }
    }
  }
}

ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。

これはパソコンで動くサーバーですが、ChatGPTがつなげるのはインターネット上のサーバーだけです。ほかのアプリを選んでください。

選んだアプリは、この端末のCookieに保存されます。アカウントは不要です。

自分で入力する値

  • MCP_DB_CONFIG 秘密 env
    Full mcp-db-connect config (security + connections) as YAML or JSON. When set, file-based config discovery is skipped entirely.

この設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。

できること

パソコンで動くサーバーです。インストールすると、ツール一覧がAIアプリに表示されます。

基本チェックi

誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月7日にチェック

  • ✓ 合格

    作者とリポジトリが一致

    レジストリ名は、リポジトリを所有するGitHubアカウント phatngoit で確認済みです

  • … 未チェック

    今もメンテナンスされている

    このリポジトリはまだGitHubから読み取っていません

  • … 未チェック

    ライセンスがある

    このリポジトリはまだGitHubから読み取っていません

  • – 対象外

    エンドポイントが応答する

    これはパソコンで動くため、インターネット上のエンドポイントはありません

  • – 対象外

    OAuthでサインイン

    パソコンで動き、代わりにローカルの設定を使います

  • … 未チェック

    ツールの説明に隠れた指示がない

    パソコンで動くサーバーです。ツール一覧を読み取れるのは、インターネット上のエンドポイントがある場合だけです

データベース・データセットのほかのサーバーとの比較i

  • このカテゴリのほかの954件のうち0%よりスターが多い
  • このカテゴリのほかの954件のうち22%より最近レジストリに公開
  • 基本チェックの結果が、このカテゴリのほかの954件のうち100%と同じかそれ以上

レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。

よくある質問

MCP DB Connectは安全ですか?

当てはまる基本チェック1項目のうち1項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。

どんなキーやコードが必要ですか?

入力が必要なもの:MCP_DB_CONFIG

パソコンで動きますか、それともクラウドですか?

あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。

今もメンテナンスされていますか?

GitHubリポジトリの最終更新は–、最新バージョン(0.1.21)がレジストリに届いたのは3 か月前です。

どのアプリで使えますか?

Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンにNode.jsも必要です。

代わりに使えるものは?

同じカテゴリには:Supabase, MongoDB MCP Server, Elasticsearch MCP Server

代わりの候補

同じカテゴリで、ほかの作者が作ったサーバー。スターの多い順。

カードの見方:★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i

Supabase

作者:supabase

MCP server for interacting with the Supabase platform

パソコンでもクラウドでも★ 2,993Apache-2.0今日更新
インストール

作者のREADME

READMEを開く

作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。

MCP DB Connect

Universal MCP server for readonly-first access to Oracle Database, Microsoft SQL Server, PostgreSQL, MySQL/MariaDB, SQLite, MongoDB, and Qdrant vector search.

This project is designed for AI tools that support the Model Context Protocol. Projects can install it, provide a YAML config, and expose safe database tools to their AI client.

Oracle connections use the Node.js oracledb Thin mode by default, so Oracle Instant Client is not required for most databases. Some Oracle databases use NCHAR character sets that Thin mode cannot handle; those databases require Oracle Thick mode with Oracle Client libraries.

By default, commands run from a project directory automatically use:

  • mcp-db.local.yml, then mcp-db.yml, then mcp-db.yaml
  • .env

Features

  • Oracle, MSSQL, PostgreSQL, MySQL/MariaDB, SQLite, MongoDB, and Qdrant connectors
  • Multiple named connections in one config file
  • Readonly by default
  • SQL multi-statement blocking
  • MongoDB $out and $merge blocking in readonly mode
  • Row limits and query timeouts
  • Markdown table output for query results
  • Schema/table allowlist and denylist
  • Sensitive field masking
  • JSONL audit logs
  • Interactive setup wizard for AI clients and database connections
  • CLI for setup, init, validation, connection testing, and stdio/HTTP server startup
  • Docker image (multi-stage Dockerfile, published to GHCR on release)

Install

1. Install the package

Node / TypeScript projects (local install):

npm install --save-dev mcp-db-connect

.NET, Python, or other non-Node projects (global install):

npm install -g mcp-db-connect

2. Run the setup wizard

npx mcp-db-connect setup

The wizard asks which AI clients and databases to configure, then asks for one connection string per database (the same string your DB host, hosting provider, or existing app config already gives you) and writes all config files automatically.

3. Test your connections

npx mcp-db-connect test-connections

That's it — your AI client is now connected to your databases.

What the wizard creates
mcp-db.local.yml       # database connection config

.env # local secrets .gitignore # keeps secrets and local config out of git .mcp.json # Claude Code MCP config (if selected) .codex/config.toml # Codex CLI config (if selected) .gemini/settings.json # Gemini CLI config (if selected) .kimi/mcp.json # Kimi CLI config (if selected)

Other setup options

Skip the wizard with explicit flags:

npx mcp-db-connect setup --ai claude,codex --db mssql,mongodb

Overwrite existing config entries:

npx mcp-db-connect setup --force

Start an HTTP MCP endpoint instead of stdio:

npx mcp-db-connect serve-http --host 127.0.0.1 --port 3000

npx mcp-db-connect serve-http --api-key-env MCP_DB_HTTP_API_KEY

AI Client Examples

All examples assume the AI CLI is started from your application project root.

Claude Code CLI

Recommended automatic setup:

mcp-db-connect setup --ai claude --db mssql

The generated .mcp.json uses npx so it works whether the package is installed globally or locally.

Global install (npm install -g mcp-db-connect)

mcp-db-connect is in PATH and can be used directly:

claude mcp add --transport stdio db-connect --scope local -- mcp-db-connect start --project . --config ./mcp-db.local.yml --env ./.env

.mcp.json:

{

"mcpServers": { "db-connect": { "command": "mcp-db-connect", "args": ["start", "--project", ".", "--config", "./mcp-db.local.yml", "--env", "./.env"], "env": { "LOG_LEVEL": "silent" } } } }

Local install (npm install --save-dev mcp-db-connect)

Use npx so Claude Code can find the binary inside node_modules/.bin:

claude mcp add --transport stdio db-connect --scope local -- npx mcp-db-connect start --project . --config ./mcp-db.local.yml --env ./.env

.mcp.json:

{

"mcpServers": { "db-connect": { "command": "npx", "args": ["mcp-db-connect", "start", "--project", ".", "--config", "./mcp-db.local.yml", "--env", "./.env"], "env": { "LOG_LEVEL": "silent" } } } }

Codex CLI

Recommended automatic setup:

mcp-db-connect setup --ai codex --db mssql,oracle,mongodb

npm --prefix .\.mcp-tools\db-connect install codex

Project .codex/config.toml:

[mcp_servers.db-connect]

command = '.\.mcp-tools\db-connect\node_modules\.bin\mcp-db-connect.cmd' args = ["start", "--project", ".", "--config", '.\mcp-db.local.yml', "--env", '.\.env'] enabled = true

[mcp_servers.db-connect.env] LOG_LEVEL = "silent"

The .mcp-tools/db-connect/package.json file created by the wizard uses mcp-db-connect from npm. Run the install command above once per project.

Gemini CLI

Recommended automatic setup:

mcp-db-connect setup --ai gemini --db mongodb

gemini

Project .gemini/settings.json:

{

"mcpServers": { "db-connect": { "command": "npx", "args": ["mcp-db-connect", "start", "--project", ".", "--config", "./mcp-db.local.yml", "--env", "./.env"], "env": { "LOG_LEVEL": "silent" } } } }

Kimi CLI

Recommended automatic setup:

mcp-db-connect setup --ai kimi --db oracle

kimi --mcp-config-file .\.kimi\mcp.json

Project .kimi/mcp.json:

{

"mcpServers": { "db-connect": { "command": "npx", "args": ["mcp-db-connect", "start", "--project", ".", "--config", "./mcp-db.local.yml", "--env", "./.env"], "env": { "LOG_LEVEL": "silent" } } } }

Kimi CLI can also manage global MCP servers with kimi mcp add, but the project-local file above keeps this database MCP scoped to one project.

Generic MCP JSON

For clients that accept the common MCP JSON format:

mcp-db-connect setup --ai generic --db mssql

Use .mcp-db-connect/mcp.json:

{

"mcpServers": { "db-connect": { "command": "npx", "args": ["mcp-db-connect", "start", "--project", ".", "--config", "./mcp-db.local.yml", "--env", "./.env"], "env": { "LOG_LEVEL": "silent" } } } }

Streamable HTTP Client

Use this endpoint for MCP clients or agents that support Streamable HTTP:

http://127.0.0.1:3000/mcp

Health check:

http://127.0.0.1:3000/healthz

Config

security:

defaultMaxRows: 100 queryTimeoutMs: 10000 blockMultiStatement: true allowWriteOperations: false maskColumns:

  • password
  • token
  • secret
  • api_key auditLogPath: ./logs/mcp-db-connect.audit.jsonl

connections: mssql_report: type: mssql host: 172.27.62.7 port: 1433 database: Internet username: report_reader passwordEnv: MSSQL_REPORT_PASSWORD encrypt: true trustServerCertificate: true mode: readonly

mssql_write_model: type: mssql host: 172.27.62.8 port: 1444 database: InternetWrite username: writer_user passwordEnv: MSSQL_WRITE_PASSWORD encrypt: true trustServerCertificate: true mode: readonly

oracle_local: type: oracle host: localhost port: 1521 serviceName: ORCLPDB1 username: app_readonly passwordEnv: ORACLE_PASSWORD clientMode: thin mode: readonly

mssql_local: type: mssql host: localhost port: 1433 database: appdb username: sa passwordEnv: MSSQL_PASSWORD encrypt: true trustServerCertificate: true mode: readonly

mongo_local: type: mongodb uriEnv: MONGODB_URI database: appdb mode: readonly

postgres_local: type: postgres host: localhost port: 5432 database: appdb username: app_readonly passwordEnv: POSTGRES_PASSWORD mode: readonly

mysql_local: type: mysql host: localhost port: 3306 database: appdb username: app_readonly passwordEnv: MYSQL_PASSWORD mode: readonly

qdrant_local: type: qdrant url: http://localhost:6333 apiKeyEnv: QDRANT_API_KEY mode: readonly

sqlite_local: type: sqlite file: ./data/appdb.sqlite mode: readonly

SQLite has no host/port/username — file is a path to the database file (relative paths resolve against the process's working directory), and :memory: is also accepted for an ephemeral in-process database.

MongoDB stores the selected port inside the URI saved in .env, for example:

MONGODB_URI=mongodb://user:password@localhost:27018/appdb
Oracle Thin vs Thick Mode

Default Oracle setup uses clientMode: thin and does not need Oracle Instant Client:

connections:

oracle_local: type: oracle host: localhost port: 1521 serviceName: ORCLPDB1 username: app_readonly passwordEnv: ORACLE_PASSWORD clientMode: thin

Oracle Instant Client is not required. If the database has NCHAR/NVARCHAR2 columns with NLS_NCHAR_CHARACTERSET = AL16UTF16, the connector automatically rewrites the query to cast those columns to VARCHAR2 server-side so Thin mode can handle them.

Connection strings instead of individual fields

Oracle, MSSQL, PostgreSQL, and MySQL/MariaDB also accept a raw connection string instead of host/port/database/username:

connections:

mssql_from_string: type: mssql connectionStringEnv: MSSQL_FROM_STRING_CONNECTION_STRING mode: readonly

oracle_from_string: type: oracle connectDescriptor: (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=10.20.30.15)(PORT=1521)))(CONNECT_DATA=(SERVER=POOLED)(SERVICE_NAME=DEMOPDB1))) username: demo_ora_user passwordEnv: ORACLE_FROM_STRING_PASSWORD mode: readonly

postgres_from_string: type: postgres connectionStringEnv: POSTGRES_FROM_STRING_CONNECTION_STRING mode: readonly

mysql_from_string: type: mysql connectionStringEnv: MYSQL_FROM_STRING_CONNECTION_STRING mode: readonly

connectionStringEnv points to a full ADO/tedious connection string (MSSQL), a postgres://user:password@host:5432/database URI (PostgreSQL), or a mysql://user:password@host:3306/database URI (MySQL/MariaDB) in .env (same convention as MongoDB's uriEnv). connectDescriptor holds an Oracle TNS connect descriptor or Easy Connect string and is not secret — only the password goes in .env. The setup wizard generates these automatically from a pasted connection string; both forms can also still be hand-written using the structured host/port/... fields shown above.

PostgreSQL and MySQL/MariaDB connections also accept ssl: true (with rejectUnauthorized: false for self-signed certificates common on managed database providers).

Config via environment variable

Every command that loads config (start, serve-http, validate-config, test-connections) also accepts the entire config document — the same security + connections structure normally stored in mcp-db.local.yml — as YAML or JSON in the MCP_DB_CONFIG environment variable, instead of a file:

export MCP_DB_CONFIG='

connections: postgres_demo: type: postgres host: db.example.com port: 5432 database: appdb username: app_readonly password: change-me mode: readonly ' mcp-db-connect serve-http --host 0.0.0.0 --port 3000

When MCP_DB_CONFIG is set, --config/mcp-db.local.yml/mcp-db.yml/mcp-db.yaml file discovery is skipped entirely — no file needs to exist. This is what lets container platforms that can't mount a project file into the container (Smithery.ai and similar hosted MCP platforms

冒頭だけを表示しています。続きはリポジトリで読めます

PopNxに聞く