Skip to content
MCP server
Registry

SafeSelect MCP Server

Fail-closed, read-only PostgreSQL and MongoDB access for AI agents over MCP.

SafeSelect MCP scores 27 (Limited), licensed MIT and written in Rust. It installs as a local process. It does not declare tools yet. Filed under Databases. GitHub shows 0 stars. Install configs are generated for 12 clients. Being listed in the registry is not the same as being vendor-official.

by antonillosMITRust0 stars
Trust score
27Limited
Trust score 27 of 100, Limited

Limited trust

27 of 100 from six public signals. Nobody can buy a point.

  • OSI-style license: mit.
How we score trust
Scorecard

License, quality and maintenance

How grades work
Trust breakdown

Where the 27 comes from

0 + 6 + 0 + 10 + 4 + 7 = 27. Each factor is capped, so no single signal can carry a listing.

Registry0 / 30

Active in the official MCP registry, plus a known vendor namespace.

Registry: 0 of 30 points.
Maintenance6 / 20

How recently the repository saw a commit or release.

Maintenance: 6 of 20 points.
Popularity0 / 20

GitHub stars and weekly downloads, on a log scale.

Popularity: 0 of 20 points.
License10 / 10

A clear, OSI-style open-source license.

License: 10 of 10 points.
Security4 / 10

Not archived, a secure install path, a pinned version.

Security: 4 of 10 points.
Docs7 / 10

A real summary, a README with depth, listed tools.

Docs: 7 of 10 points.

Install

Pick your client, copy the config, paste it in.

Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.

~/Library/Application Support/Claude/claude_desktop_config.json
{  "mcpServers": {    "antonillos-safeselect": {      "command": "npx",      "args": [        "-y",        "https://github.com/antonillos/safeselect/releases/download/v0.9.0/safeselect-v0.9.0-aarch64-apple-darwin.mcpb"      ]    }  }}

Environment variables

This server does not declare environment variables.

Tools show up when the registry metadata or the repository README lists them. Public READMEs are read directly. A GitHub token is used only when one is already configured.

About

Why SafeSelect?

Give your coding agent the database context it needs to investigate a bug, understand a schema or inspect a query plan. SafeSelect exposes read-only tools for PostgreSQL and MongoDB, with local policy and bounded results.

  • Debug with database context. Discover tables, collections and indexes before reading the rows or documents relevant to your task.
  • Start with connections you already have. Import from DBeaver, Docker Compose or MongoDB Compass, including SSH-backed connections.
  • Keep control of access. Set project-specific access rules, row limits and timeouts. Passwords stay in macOS Keychain or environment variables.
  • Run locally. The agent connects over MCP stdio, with no MCP network listener. SafeSelect enforces its read-only tool surface even when the configured database credentials allow writes.

[!IMPORTANT] SafeSelect's read-only boundary covers its database tools. An agent's shell, other MCP servers and direct credentials remain outside that boundary. Use least-privilege database users and start with development data or a sanitized replica. See the threat model and limits.

See it in action

From Homebrew to a connected agent: import a DBeaver connection, keep its password in Keychain, and let OpenCode inspect an order through read-only tools. See the demo gallery for more clients, MongoDB and Linux onboarding.

Quick Start

Run setup from your repository root. You need a PostgreSQL or MongoDB connection and a Java 17+ runtime for database commands.

1. Install

On macOS with Homebrew:

brew install antonillos/tap/safeselect

For Linux, prebuilt binaries, asdf, Java setup or source builds, follow the installation guide.

2. Import a connection

Choose the source you already use:

Connection sourceCommand
DBeaver exportsafeselect import-dbeaver ~/Downloads/dbeaver-export.zip
PostgreSQL in Docker Composesafeselect import-compose
MongoDB Compasssafeselect import-compass --path "$HOME/.config/MongoDB Compass"

Use your actual export or Compass directory, then follow the importer's driver and password setup steps. Keep secrets out of project files and chat. Interactive imports support Esc to go back and Ctrl+C to cancel; the batch is saved only after final confirmation. For a complete SSH-backed example, follow the DBeaver → Codex walkthrough.

3. Connect your agent

# Verify connectivity; this can open SSH tunnels and contact databases.
safeselect check

# Replace codex with opencode, or choose another supported client below.
safeselect agent install codex
safeselect agent status

If you have multiple environments, add --environment <name> to both check and agent install to select the intended database. Without it, check tests all environments; installation only infers a target when there is exactly one.

Open or restart your agent and approve the MCP server if prompted. Installation uses user scope by default; add --local for project scope where supported. See client setup and scopes.

4. Try it

Ask your agent:

Use SafeSelect to identify the connected backend. For PostgreSQL, list tables and describe one using catalog metadata. For MongoDB, list databases and collections only. Stop before reading rows or sampling documents.

Success: the agent reports the database identity and available tables or collections without needing a database password in the conversation. Then ask it to investigate a specific issue with a small, targeted read. MongoDB schema inference samples documents, so include that step only when you are ready to read data.

Need help? Run safeselect doctor --environment <name> and follow its next step. Diagnostics can contact the database. See the connection diagnostics or agent recovery guide.

Supported agents

OpenAI Codex · OpenCode · Claude Code · Cursor · Windsurf · GitHub Copilot · Gemini CLI

SafeSelect works with MCP clients over stdio. Built-in installation handles the clients above; the integration guide covers configuration, scopes and manual setup. Codex and OpenCode also receive four portable workflow skills. After updating SafeSelect, run safeselect agent upgrade <client> and reload your client.

Security and quality evidence

SafeSelect validates requests against project policy before database execution. Ordinary policy rejections return an error; serious security attempts and internal validation or audit failures stop the server. Result limits and timeouts bound reads, and query text is hashed for audit records.

The database security suites run against disposable PostgreSQL and MongoDB fixtures. Rejection cases check the expected error and compare the resulting database state with a baseline, so a rejected response alone is not enough to pass.

What is checkedInspect the evidence
SQL writes, stacked statements and side-effecting functionsPostgreSQL security tests
MongoDB write stages, server-side JavaScript and access boundariesMongoDB security tests
Malformed MCP requests, policy rejection and shutdown behaviorMCP regression tests
Rust and Java complexity with test coverageCRAP report and CI artifacts
Commit signatures and message formatCommit Policy

See how to verify a CI execution for results tied to a specific commit. Test source describes the checks; a successful matching run provides execution evidence. Pending or skipped suites are unverified, and badges can refer to a different revision.

Read the threat model and limits, the security model, or the architecture for the scope of these controls. For alternatives and tradeoffs, see the database MCP comparison.

Documentation

I want to…Start here
Install, update or uninstallInstallation guide
Set up my coding agentAI agent integration
Import an SSH-backed DBeaver connectionDBeaver → Codex walkthrough
Watch examplesDemo gallery · Visual command gallery
Find a command or MCP toolCLI reference · MCP tools
Configure policy, environments or passwordsConfiguration
Understand the security boundaryThreat model and limits · Architecture
Inspect quality checks and security testsCI and CRAP report · Security test suite
Find packages and directory listingsDistribution
Build or contributeContributing · Changelog

Feedback and contributions

Have a setup problem or a feature request? Open an issue. For setup feedback, include your client, OS and the step that failed; leave out credentials, connection exports and database contents. Report security vulnerabilities through the security policy.

Contributions are welcome—see Contributing to get started.

License

MIT.

Frequently asked questions

What is SafeSelect MCP Server?

Fail-closed, read-only PostgreSQL and MongoDB access for AI agents over MCP.

How do I install SafeSelect MCP Server in Claude Desktop, Cursor, or VS Code?

Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. SafeSelect MCP Server runs locally from the MCP bundle https://github.com/antonillos/safeselect/releases/download/v0.9.0/safeselect-v0.9.0-aarch64-apple-darwin.mcpb with the command npx -y https://github.com/antonillos/safeselect/releases/download/v0.9.0/safeselect-v0.9.0-aarch64-apple-darwin.mcpb.

Is SafeSelect MCP Server free and open source?

Yes. SafeSelect MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.

Does SafeSelect MCP Server support remote (HTTP) connections?

No remote endpoint is listed for SafeSelect MCP Server. It runs locally on your machine over stdio, started by your MCP client.

How is SafeSelect MCP Server's trust score calculated?

SafeSelect MCP Server scores 27 out of 100 (Limited). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.

Reviews

No reviews yet

—Be the first to review

5 star0 reviews at 5 stars
4 star0 reviews at 4 stars
3 star0 reviews at 3 stars
2 star0 reviews at 2 stars
1 star0 reviews at 1 stars

No published reviews yet. Used it? Tell the next person how it went.

Add badge to your README

Paste either snippet into the repository README. The image links to this listing.

Listed on MCPpedia

Top 5 MCP servers

Daily or weekly. Confirm by email, unsubscribe any time.

How often

Manage this listing

Claim this server