Listed from the MCP registry; nobody on Odel publishes it.
Native SQL, schema metadata and query plans for Oracle, PostgreSQL, MySQL, SQLite and SQL Server.
Runs on your machine from its package; the steps are below.
At most: creates or changes data: records, files, settings.
Odel charges nothing per call. The publisher may charge for its own service.
Runs locally over stdio
This server isn't hosted — your MCP client launches it from a package registry. Use one of the commands below, or drop the config into your client (e.g. Claude Desktop).
Distributed as an MCP bundle (`https://github.com/arthurhoch/db-mcp/releases/download/v0.2.6/db-mcp-linux-x64.mcpb`) — download it and import the bundle in your MCP client.
Distributed as an MCP bundle (`https://github.com/arthurhoch/db-mcp/releases/download/v0.2.6/db-mcp-linux-arm64.mcpb`) — download it and import the bundle in your MCP client.
Distributed as an MCP bundle (`https://github.com/arthurhoch/db-mcp/releases/download/v0.2.6/db-mcp-macos-x64.mcpb`) — download it and import the bundle in your MCP client.
Distributed as an MCP bundle (`https://github.com/arthurhoch/db-mcp/releases/download/v0.2.6/db-mcp-macos-arm64.mcpb`) — download it and import the bundle in your MCP client.
Distributed as an MCP bundle (`https://github.com/arthurhoch/db-mcp/releases/download/v0.2.6/db-mcp-windows-x64.mcpb`) — download it and import the bundle in your MCP client.
Distributed as an MCP bundle (`https://github.com/arthurhoch/db-mcp/releases/download/v0.2.6/db-mcp-windows-arm64.mcpb`) — download it and import the bundle in your MCP client.
DB MCP lets your MCP client run SQL against databases you configure locally. It supports reads and writes on Oracle, PostgreSQL, MySQL and SQLite. SQL Server supports reads only. Each connection has an ID and an access mode in its own TOML file.
Paste this into a coding agent with terminal access.
Install DB MCP for my MCP client. Ask which client I use if you can't tell.
Download the archive for my OS and CPU from https://github.com/arthurhoch/db-mcp/releases/latest,
check it against SHA256SUMS from the same release, and extract it to a permanent location.
For a fresh install, register a stdio server with absolute paths to db-mcp and
the bundled demo/config/global.toml. Pass the TOML path with --config. Keep
existing client entries and catalogs. Run db-mcp --config <global.toml> --check-config.
With the demo loaded, ask the client for the pending order IDs in demo-ro.
Expect 101 and 103. If the client needs a restart first, give me the query to run.
Add one connection to my DB MCP catalog. Ask which engine and database to use,
what to call it, and what data it contains. Use read_only unless I request write
or DDL access. SQL Server always uses read_only. For SQLite, ask for the existing
file path. For a network database, ask for the host, port, database or service name,
and username. Set password_env to the name of a variable I'll supply locally.
Keep its value out of the chat, commands and TOML.
Use the matching TOML in config-examples/databases from the release as a template.
If I'm using the bundled demo, create a personal catalog outside the install directory.
Give the connection a unique ID and add its file under the catalog's databases_dir.
Run db-mcp --config <global.toml> --check-config, then repeat with --test-connection <id>.
Once both pass, point my client at that catalog and restart the MCP server.
The configuration guide has a TOML example for each database engine.
The archives include the executable, a SQLite demo and sample connection files. The executable runs without a Rust toolchain or Oracle Instant Client.
| System | x64 (Intel/AMD) | ARM64 (Apple Silicon/ARM) |
|---|---|---|
| macOS | Download | Download |
| Linux | Download | Download |
| Windows | Download | Download |
On a Mac with Apple Silicon, try the demo from a terminal.
curl -fLO https://github.com/arthurhoch/db-mcp/releases/latest/download/db-mcp-macos-arm64.tar.gz
tar -xzf db-mcp-macos-arm64.tar.gz
cd db-mcp-macos-arm64
./db-mcp --version
./db-mcp --config demo/config/global.toml --check-config
./db-mcp --config demo/config/global.toml --test-connection demo-ro
On Windows, extract the ZIP and use db-mcp.exe. If your client supports MCPB
and you already have a global TOML, install the matching .mcpb from the
release and select that TOML when prompted.
For checksums and build provenance, see the verification instructions.
The Copilot guide shows the .vscode/mcp.json entry and how to start the server.
Add this entry to your Codex configuration. Replace both paths with absolute paths on your machine.
[mcp_servers.db_mcp]
command = "/absolute/path/db-mcp-macos-arm64/db-mcp"
args = ["--config", "/absolute/path/db-mcp-macos-arm64/demo/config/global.toml"]
| Connection mode | Operations |
|---|---|
read_only | Read queries. |
read_write | Read queries, INSERT, UPDATE and DELETE. |
read_write_ddl | Read and write, plus supported CREATE, ALTER and DROP statements. |
The database user's grants also apply. For PostgreSQL RLS or Oracle VPD, send the
context setup and dependent queries in the same batch.
If a write returns effect=unknown, check the database before retrying it.
From the repository root, use rustup with the pinned toolchain.
cargo build --release --locked
cargo run --locked --example create_demo
target/release/db-mcp --config .runtime/demo/config/global.toml --test-connection demo-ro
The example creates .runtime/demo on its first run. To create another copy,
pass a new directory after --example create_demo --.