Skip to content
appsgit

MCP Alchemy

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.

github.com/runekaagaard/mcp-alchemy (opens in a new tab)

Data as of from the GitHub API; description from the project's repository. Report an error

Install MCP Alchemy

Generated from the server's published package. Replace your-value with your own values.

Claude Desktop

claude_desktop_config.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

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

Cursor

.cursor/mcp.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
{
  "servers": {
    "mcp-alchemy": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "mcp-alchemy"
      ],
      "env": {
        "DB_URL": "your-value"
      }
    }
  }
}

Config formats checked against the official docs on Oct 7, 2026: modelcontextprotocol.io (opens in a new tab), code.claude.com (opens in a new tab), cursor.com (opens in a new tab), code.visualstudio.com (opens in a new tab).

Environment variables

Variables the server reads at startup.

NameRequiredDescription
DB_URLNoShown in the README's example configuration.

Tools (6)

Parsed from the Tools section of the README; check the repository for the current list.

  • all_table_names
  • filter_table_names
  • schema_definitions
  • execute_query
  • query

    SQL query

  • params

    Query parameters

About 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.

FAQ

MCP Alchemy FAQ

Still curious? Email info@appsgit.com.

How do I install the MCP Alchemy MCP server?

Add the command uvx mcp-alchemy to your MCP client: put it in claude_desktop_config.json for Claude Desktop, run claude mcp add for Claude Code, or add it to .cursor/mcp.json (Cursor) or .vscode/mcp.json (VS Code). The snippets on this page are ready to paste.

Is MCP Alchemy free?

The server is open source under the MPL-2.0 license, so running it is free. It does not declare any required API key.

Is MCP Alchemy actively maintained?

The most recent commit was on Oct 15, 2026. appsgit only lists MCP servers with a commit in the last six months.