# ed database mcp

> Runs the Edith Database MCP server over standard input and output, so a coding agent can browse and query the connections you saved in Database.

- Canonical URL: https://getedith.pro/docs/cli/database/mcp
- Updated: 2026-12-02

Runs the Edith Database MCP server over standard input and output, so a coding
agent can browse and query the connections you saved in Database.

```
ed database mcp
```

The command stays in the foreground and prints nothing of its own on standard
output, which belongs to the MCP client. Agents only see the connections you
saved in Edith, never their passwords, hosts or other connection details.

| Tool | What it does |
| --- | --- |
| `database_connections` | Lists saved connections, or gets one by its identifier. |
| `database_capabilities` | Shows what one saved connection supports. |
| `database_browse` | Reads one page of rows, keys or documents from a database or object. |
| `database_query` | Runs one bounded read query on a saved connection. |
| `database_operations` | Lists running and finished operations, or gets one. |
| `database_cancel_operation` | Cancels one running operation. |
| `database_test_connection` | Tests a saved connection without keeping it open. |
| `database_session` | Connects or disconnects one saved connection. |
| `database_key_mutation` | Previews, then applies, one change to a Redis or Valkey string key. |
| `database_document_mutation` | Previews, then applies, one insert, update or delete of a MongoDB, Elasticsearch or OpenSearch document. |

Reading tools never change data. The two mutation tools first return a preview,
and apply the change only when the agent confirms that exact preview.

An MCP client configuration can launch the server directly:

```json
{
  "mcpServers": {
    "edith-database": {
      "command": "ed",
      "args": ["database", "mcp"]
    }
  }
}
```

## Where to go next

- [`ed database connections list`](https://getedith.pro/docs/cli/database/connections-list)
- [`ed database capabilities`](https://getedith.pro/docs/cli/database/capabilities)
- [`ed database`](https://getedith.pro/docs/cli/database)
- [All `ed` commands](https://getedith.pro/docs/cli)

## Get Edith

Edith is a native Mac app for macOS 14 or later on Apple silicon with 100+ extensions, the `ed` command line and an MCP server. $35 once for one Mac, plus $7 for each additional Mac, with no subscription and a 30-day refund.

- [Buy Edith](https://getedith.pro/pricing): $35 once for one Mac, plus $7 for each additional Mac
- [Download Edith](https://getedith.pro/download): the installer, or Homebrew
