# MCP Alchemy (MCP server)

> MCP Alchemy is an MCP server that adds database tools to AI assistants such as Claude Desktop, Claude Code and Cursor. A MCP (model context protocol) server that gives the LLM access to and knowledge about relational databases like SQLite, Postgresql… It has 422 GitHub stars, is released under the MPL-2.0 license and runs locally with uvx mcp-alchemy.

Status: Actively maintained and in daily use. Tested releases are published to PyPI with git tags, and issues and pull requests are triaged regularly.

## Key facts

| Fact | Value |
|---|---|
| Repository | https://github.com/runekaagaard/mcp-alchemy |
| GitHub stars | 422 |
| License | MPL-2.0 |
| Language | Python |
| Transport | stdio |
| Packages | pypi: mcp-alchemy; docker: ghcr.io/runekaagaard/mcp-alchemy |
| Remote URL | none |
| Needs API key | no |
| Official | no |
| Works with | Claude Desktop, Claude Code, Cursor, VS Code |
| Category | Databases |
| Latest release | none |
| Last commit | Oct 15, 2026 |

## Install

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "mcp-alchemy": {
      "command": "uvx",
      "args": [
        "mcp-alchemy"
      ],
      "env": {
        "DB_URL": "your-value"
      }
    }
  }
}
```

Settings > Developer > Edit Config. macOS: ~/Library/Application Support/Claude/, Windows: %APPDATA%\Claude\. Restart Claude Desktop afterwards.

### Claude Code

```sh
claude mcp add --env DB_URL=your-value --transport stdio mcp-alchemy -- uvx mcp-alchemy
```

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

```json
{
  "mcpServers": {
    "mcp-alchemy": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "mcp-alchemy"
      ],
      "env": {
        "DB_URL": "your-value"
      }
    }
  }
}
```

Project file; use ~/.cursor/mcp.json to enable it in every project.

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "mcp-alchemy": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "mcp-alchemy"
      ],
      "env": {
        "DB_URL": "your-value"
      }
    }
  }
}
```

Config formats checked against the official docs on 2026-10-07.

## Environment variables

- `DB_URL`: Shown in the README's example configuration.

## Tools

- `all_table_names`
- `filter_table_names`
- `schema_definitions`
- `execute_query`
- `query`: SQL query
- `params`: Query parameters

## Similar MCP servers

- [Scrumboy](https://appsgit.com/mcp-servers/scrumboy): Self-hosted project management • Customizable boards • Cross-project workload and flow analytics • Calendar/Agenda • Sticky-note wall • Imports/Backups • Email notifications • MCP/Agent automation. (447 stars, AGPL-3.0)
- [shaft-mcp](https://appsgit.com/mcp-servers/shaft-mcp): SHAFT browser automation, capture, and offline deterministic failure diagnosis. (417 stars, MIT)
- [MCP SSH Manager](https://appsgit.com/mcp-servers/mcp-ssh-manager): SSH server management for agents, with per-server read-only and allowlist security modes. (519 stars, MIT)
- [Synapse AI](https://appsgit.com/mcp-servers/synapse-ai): Build AI agents that actually do things. Synapse is an open-source platform for creating, connecting, and orchestrating AI agents powered by any LLM — local, cloud or CLIs. (333 stars, AGPL-3.0, official)
- [MCP Neo4j Cypher](https://appsgit.com/mcp-servers/mcp-neo4j-cypher): A simple Neo4j MCP server that allows you to run Cypher queries against a Neo4j database. (989 stars, MIT, official, needs API key)
- [Elasticsearch MCP Server](https://appsgit.com/mcp-servers/elasticsearch-mcp-server): MCP server for interacting with Elasticsearch. (314 stars, Apache-2.0, needs API key)

---

Canonical page: https://appsgit.com/mcp-servers/mcp-alchemy
Source: appsgit (https://appsgit.com), the app store for github. Data from the GitHub API, refreshed daily.
Machine access: JSON API https://appsgit.com/api/v1/apps (OpenAPI: https://appsgit.com/openapi.json), MCP server https://mcp.appsgit.com/mcp, full index https://appsgit.com/llms-full.txt.
