# SafeSelect MCP

> SafeSelect MCP is a free MCP server for databases. Read-only PostgreSQL and MongoDB access for coding agents; credentials stay out of chat. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Free
- **Platforms:** CLI, macOS, Linux
- **Repository:** https://github.com/antonillos/safeselect
- **MCP Registry name:** io.github.antonillos/safeselect
- **Categories:** [databases](https://ai-powered.com/categories/databases), [security](https://ai-powered.com/categories/security)
- **Listing updated:** 2026-11-23

## About

SafeSelect gives an agent enough database context to debug a problem, understand a schema or look at a query plan, without handing it write tools. It checks each request against project policy first, keeps its read-only tool surface even when the credentials allow writes, and bounds results with row limits and timeouts. Query text is hashed in audit records.

Setup starts from connections you already have: import from DBeaver exports, Docker Compose or MongoDB Compass, including SSH-backed ones. Passwords stay in macOS Keychain or environment variables. It runs locally over stdio with no network listener and needs Java 17 or newer for database commands.

The README is candid about limits: the boundary covers its own tools, not an agent's shell or other servers, so use least-privilege users and development or sanitised data. Supported clients include Codex, OpenCode, Claude Code, Cursor, Windsurf, GitHub Copilot and Gemini CLI.

## Features

- **Read-only tools:** Write tools are not exposed.
- **Policy checks:** Rules, row limits and timeouts per project.
- **Connection import:** From DBeaver, Compose or Compass.
- **Secret handling:** Passwords in Keychain or environment variables.
- **Local stdio:** No MCP network listener.
- **Security tests:** Suites check writes are rejected against real databases.

## Good for

- Inspect a Postgres schema while debugging
- Check an order record without write risk
- List MongoDB collections before reading
- Reuse a DBeaver connection

## Install

### Claude Desktop (Claude Desktop → Settings → Extensions)

```text
https://github.com/antonillos/safeselect/releases/download/v0.9.0/safeselect-v0.9.0-aarch64-apple-darwin.mcpb
```

Download the bundle and open it with Claude Desktop, or drag it onto Settings → Extensions and click Install. This server is only published as a Claude Desktop bundle.

## FAQ

### Does SafeSelect MCP need Java?

Yes, Java 17 or newer.

### Where are passwords stored?

macOS Keychain or environment variables.

### Is SafeSelect MCP safe against all writes?

Only its own tools; an agent's shell remains outside.

### Which agents install automatically?

Codex, OpenCode, Claude Code, Cursor, Windsurf, Copilot and Gemini CLI.

### Is SafeSelect MCP free?

Yes. SafeSelect MCP is free to use.

### What are the best alternatives to SafeSelect MCP?

The closest alternatives to SafeSelect MCP are REA, AiSOC, x64dbg-mcp-server, redamon and Treasure Map.

## Where this comes from

- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [AiSOC](https://ai-powered.com/mcp/aisoc): AiSOC is an open-source MCP server for ai models and llm tooling.
- [x64dbg-mcp-server](https://ai-powered.com/mcp/x64dbg-mcp-server): x64dbg-mcp-server is an open-source MCP server for ai models and llm tooling.
- [redamon](https://ai-powered.com/mcp/redamon): redamon is an open-source MCP server for ai models and llm tooling.
- [Treasure Map](https://ai-powered.com/mcp/treasure-map): Treasure Map is an open-source MCP server for security.
- [Agent Roast](https://ai-powered.com/mcp/agent-roast): Agent Roast is an open-source MCP server for developer tools.
- [NostrPulse](https://ai-powered.com/mcp/nostrpulse): NostrPulse is an open-source MCP server for finance and payments.
- [Runeward](https://ai-powered.com/mcp/runeward): Runeward is an open-source MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/safeselect-mcp
