AI-powered, safe database access layer for MCP clients (Cursor, VS Code, Claude Desktop)
Project description
Bollard MCP
An AI-powered, safe database access layer built on the Model Context Protocol.
Bollard acts as an intelligent execution layer between AI code editors (Cursor, VS Code, Claude Desktop) and your databases — providing safe query execution, schema discovery, semantic intent validation, and persistent session memory.
Quick Start
pip install bollard-mcp
Add to .cursor/mcp.json:
{
"mcpServers": {
"bollard": {
"command": "bollard-mcp"
}
}
}
Then in Cursor chat:
Connect to my database: postgresql://user:pass@localhost/mydb
Show me all tables
Find users who signed up last week but haven't placed an order
Supported Databases
- PostgreSQL (primary)
- MySQL / MariaDB
- SQLite
- MS SQL Server
- Oracle
- MongoDB (Phase 2)
Key Features
- Safe by default — read-only mode, auto-LIMIT, WHERE enforcement, destructive operation blocking
- Intent validation — detects soft-delete blind spots, status ambiguity, missing tenant scope
- Session memory — schema cache, query history, user corrections persisted across restarts
- OS Keyring — credentials stored in system native vault (macOS Keychain, Windows Credential Manager, Linux Secret Service)
- No built-in LLM — editor AI handles reasoning; Bollard handles safe execution
Documentation
See docs/ for setup guides, permission profiles, and safety configuration.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bollard_mcp-0.1.0.tar.gz.
File metadata
- Download URL: bollard_mcp-0.1.0.tar.gz
- Upload date:
- Size: 51.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8bd0c3fce16fdea2583b37190fc924a1226af82cd70b6dd28450b1f17b450fb3
|
|
| MD5 |
ab925084981ff362e2da275ab8efa48c
|
|
| BLAKE2b-256 |
5d1c290a87bbddbcff5252aedb5444a46175a2bd61ce2798e7c71659ab58429c
|
File details
Details for the file bollard_mcp-0.1.0-py3-none-any.whl.
File metadata
- Download URL: bollard_mcp-0.1.0-py3-none-any.whl
- Upload date:
- Size: 56.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f0f2c6099ef67a6d37f48709936e82645f7a220763d9c3ac25e487778e6601bb
|
|
| MD5 |
60b12aaf45ae0ed507877e281e4f49db
|
|
| BLAKE2b-256 |
a41bc7632c62d5bf8c27a35d10c84beb5598224d55fd2ffbec285c5064f93f03
|