From c4e805a31cb6527b7d9cee1499bf5266334cd521 Mon Sep 17 00:00:00 2001 From: Andreas Motl Date: Thu, 3 Apr 2025 22:51:44 +0200 Subject: [PATCH 1/2] README: Fix typo, and improve layout --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8fa262a..f2b3853 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ **Status: Works great and is in daily use without any known bugs.** -**Status2: I just added the package to PYPI and updated the usage instructions. Please report any issues :)** +**Status2: I just added the package to PyPI and updated the usage instructions. Please report any issues :)** Let Claude be your database expert! MCP Alchemy connects Claude Desktop directly to your databases, allowing it to: @@ -103,7 +103,7 @@ Add to your `claude_desktop_config.json`. You need to add the appropriate databa } ``` -Environment Variables: +## Environment Variables - `DB_URL`: SQLAlchemy [database URL](https://docs.sqlalchemy.org/en/20/core/engines.html#database-urls) (required) - `CLAUDE_LOCAL_FILES_PATH`: Directory for full result sets (optional) From b34258ae9693971ce3f4af0d791a0968b76baae6 Mon Sep 17 00:00:00 2001 From: Andreas Motl Date: Tue, 8 Apr 2025 23:11:07 +0200 Subject: [PATCH 2/2] README: Add information about the CrateDB SQLAlchemy dialect --- README.md | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f2b3853..a567f52 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,8 @@ Let Claude be your database expert! MCP Alchemy connects Claude Desktop directly - Analyze large datasets and create reports - Claude Desktop Can analyse and create artifacts for very large datasets using [claude-local-files](https://github.com/runekaagaard/claude-local-files). -Works with PostgreSQL, MySQL, MariaDB, SQLite, Oracle, MS SQL Server and a host of other [SQLAlchemy-compatible](https://docs.sqlalchemy.org/en/20/dialects/) databases. +Works with PostgreSQL, MySQL, MariaDB, SQLite, Oracle, MS SQL Server, CrateDB, +and a host of other [SQLAlchemy-compatible](https://docs.sqlalchemy.org/en/20/dialects/) databases. ![MCP Alchemy in action](https://raw.githubusercontent.com/runekaagaard/mcp-alchemy/refs/heads/main/screenshot.png) @@ -103,6 +104,23 @@ Add to your `claude_desktop_config.json`. You need to add the appropriate databa } ``` +### CrateDB +```json +{ + "mcpServers": { + "my_cratedb": { + "command": "uvx", + "args": ["--from", "mcp-alchemy~=2025.04", "--with", "sqlalchemy-cratedb>=0.42.0.dev1", "mcp-alchemy"], + "env": { + "DB_URL": "crate://user:password@localhost:4200/?schema=testdrive" + } + } + } +} +``` +For connecting to CrateDB Cloud, use a URL like +`crate://user:password@example.aks1.westeurope.azure.cratedb.net:4200?ssl=true`. + ## Environment Variables - `DB_URL`: SQLAlchemy [database URL](https://docs.sqlalchemy.org/en/20/core/engines.html#database-urls) (required)