SuperAPI AI Directory

thales-cdsp-cakm-mcp-server

Thales CipherTrust Data Security Platform CAKM MCP Server is a Model Context Protocol (MCP)-based server used to perform EKM/TDE encryption management operations on Microsoft SQL Server and Oracle databases through the CipherTrust Application Key Management (CAKM) connector. It provides resource-organized tools, a unified status and audit interface, automatic key rotation, and advanced detection capabilities for Oracle TDE (including HSM and FILE wallets, automatic login, and migration status identification).

Open website

About this tool

Thales CipherTrust Data Security Platform CAKM MCP Server is a Model Context Protocol (MCP) server used to manage encryption (EKM/TDE) operations for Microsoft SQL Server and Oracle databases using the CipherTrust Application Key Management (CAKM) connector.

Key Capabilities

  • Resource-based management: Tools are organized by the managed database objects (such as keys, encryption, wallets), not only by operation.
  • Operation grouping: Each tool exposes multiple operations (such as create, list, rotate), covering full lifecycle management.
  • Unified status and audit: A single tool, status_tde_ekm, provides health, compliance, and configuration monitoring for all supported databases.
  • Advanced Oracle TDE detection: Intelligently identifies Oracle TDE configurations, including:
    • HSM-only TDE: directly uses an HSM wallet
    • HSM with automatic login: forward migration configuration (HSM as primary, automatic login as secondary)
    • FILE wallet TDE: password-based software wallet
    • FILE with automatic login: standard or reverse migration configuration
    • Migration status identification: automatically identifies forward/reverse migration status based on wallet order and type
  • Database TDE operations: Encrypt, decrypt, and manage TDE on multiple database types.
  • CipherTrust integration: Seamlessly integrates with CipherTrust Manager through CAKM EKM.
  • Multi-database support: SQL Server and Oracle Database.
  • Key rotation: Automated encryption key rotation for key management on Thales CipherTrust Manager.

Usage

The project uses uv to manage dependencies and run scripts. uv must be installed first (use PowerShell on Windows, and the corresponding command on Linux/macOS; see the official uv installation documentation for specific installation guidance). After cloning the repository, it can be added to an AI assistant configuration, such as Cursor AI (mcp.json) or Gemini CLI (settings.json).

Available Tools

Core Tools

  • list_database_connections(): Lists all configured database connections.

Unified Status and Audit

  • status_tde_ekm(): Provides a unified interface to monitor TDE health, configuration, and compliance for SQL Server and Oracle.

SQL Server Tools

  • manage_sql_ekm_objects(): Manages EKM providers, credentials, and their associated server logins.
  • manage_sql_keys(): Manages the lifecycle of encryption keys (asymmetric master keys and DEKs), including creation, listing, deletion, and rotation.
  • manage_sql_encryption(): Encrypts or decrypts one or more SQL Server databases.

Oracle Tools

  • manage_oracle_tde_deployment(): Handles high-level TDE deployment workflows, such as initial setup or migration to/from HSM.
  • manage_oracle_configuration(): Manages TDE-related database parameters.
  • manage_oracle_wallet(): Performs all wallet-related operations (open, close, backup, manage auto-login).
  • manage_oracle_keys(): Manages the lifecycle of master encryption keys (MEK), including rotation and listing.
  • manage_oracle_tablespace_encryption(): Manages encryption and decryption of specific tablespaces.

Oracle TDE Enablement Logic

The server uses the logic from Oracle documentation to determine TDE status based on wallet configuration and TDE parameters:

  • TDE enabled condition: any wallet shows OPEN status and a master encryption key (MEK) exists.
  • Wallet order types (from Oracle V$ENCRYPTION_WALLET): SINGLE (only one wallet type configured), PRIMARY (primary wallet in a dual-wallet configuration), SECONDARY (secondary wallet in a dual-wallet configuration).
  • TDE configuration parameter values: FILE (FILE wallet only), HSM (HSM wallet only), HSM|FILE (HSM primary, FILE secondary), FILE|HSM (FILE primary, HSM secondary).

Supported TDE scenarios:

  • HSM-only TDE: HSM wallet OPEN (SINGLE), TDE_CONFIGURATION=HSM
  • HSM with auto-login (migrated): HSM wallet OPEN (PRIMARY), auto-login wallet OPEN (SECONDARY), TDE_CONFIGURATION=HSM|FILE
  • HSM with auto-login (not migrated): HSM wallet OPEN (PRIMARY), auto-login wallet OPEN_NO_MASTER_KEY (SECONDARY), TDE_CONFIGURATION=HSM|FILE
  • FILE wallet TDE: PASSWORD wallet OPEN (SINGLE), TDE_CONFIGURATION=FILE
  • FILE with auto-login (reverse migration): PASSWORD wallet OPEN (PRIMARY), auto-login wallet OPEN (SECONDARY), TDE_CONFIGURATION=FILE|HSM
  • FILE with auto-login: PASSWORD wallet OPEN (PRIMARY), auto-login wallet OPEN (SECONDARY), TDE_CONFIGURATION=FILE

Migration detection logic:

  • Forward migration: HSM becomes PRIMARY (HSM|FILE configuration) → database migrates from FILE to HSM.
  • Reverse migration: FILE becomes PRIMARY (FILE|HSM configuration) → database migrates back from HSM to FILE.
  • WALLET_ORDER is associated with TDE_CONFIGURATION to determine migration status.

Oracle TDE Operations Guide

The oracle_tde_deployment tool provides different operations for different TDE setup scenarios:

  1. HSM-only TDE setup (no auto-login): Suitable for "skip auto-login wallet creation" or "HSM only"; only creates the HSM keystore; as a result, the wallet must be manually opened after restart, no software_wallet_password.
  2. Full TDE setup (HSM + auto-login): For "set up full TDE with auto-login", creates HSM + software wallet + auto-login keystore, the database can start automatically without manual intervention, requires software_wallet_password.
  3. Add auto-login to existing TDE: For databases that already have HSM TDE and want to add auto-login, creates a software wallet + auto-login for an existing HSM setup.
  4. Check TDE status: For viewing the current TDE configuration, returns comprehensive wallet and TDE status, no credentials required.

Quick reference:

  • "skip auto-login" → use setup_hsm_only
  • "full TDE setup" → use setup_hsm_with_autologin
  • "add auto-login to existing" → use add_autologin
  • "check what I have" → use get_tde_status

Architecture overview

This MCP server communicates only with the database server. The CAKM provider installed on the database server handles all communication with CipherTrust Manager.

Important notes

  • Automatic database restart: When specified in the prompt, MCP tools can automatically restart the Oracle database during TDE operations.
  • SSH authentication: Oracle connections support private key and password authentication. Private key: use "private_key_path": "/path/to/key.pem" in ssh_config; password: use "password": "your_ssh_password" in ssh_config (instead of private_key_path).
  • Supported databases: Microsoft SQL Server and Oracle Database are supported.

Documentation

Documentation covering prerequisites, testing guides, example prompts, and more is provided. The project uses the MIT license.