Skip to main content
Glama
opami-protect-mcp

opami-protect-mcp

Official
by opamiai

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
OPAMI_API_KEYYesYour Opami Protect API key from the console at https://console.opami.ai

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
protect_textA

Hides private and sensitive data (names, emails, phone numbers and similar) in a text by replacing them with placeholders such as [PERSON_1]. The text is sent to the Opami Protect API, which keeps nothing. This is pseudonymisation, and it can be reversed: the server keeps the placeholder map in its own memory for this session and returns a short map_id, and restore_text with that map_id puts the real values back. The real values stay in the server and out of the result unless return_map is true. output: "replace" swaps in fake data instead; it works in 7 languages, costs twice as much and cannot be restored.

protect_fileA

Hides private and sensitive data (names, emails, phone numbers and similar) in a local UTF-8 text file without putting the file's content in your context. Pass the file's path inside the workspace folders your client shares. The server reads the file itself and sends its text to the Opami Protect API, which keeps nothing. It returns the text with placeholders such as [PERSON_1] and a short map_id. This is pseudonymisation, and it can be reversed: the server keeps the placeholder map in its own memory for this session, and restore_text with that map_id puts the real values back. The real values stay in the server: protect_file has no return_map, so they and the map are never in the result. Text files of up to 1 MB only; PDF, DOCX and other binary files are refused. Files outside the workspace folders are refused, including through symlinks.

restore_textA

Puts the real details back into a text that holds placeholders, using the placeholder map the server kept for a map_id from protect_text or protect_file. It runs locally: no network call and no API key. The result contains the real private and sensitive data, so call it only when you need them. Placeholders that are not in this map (for example from another map_id, or edited) stay as written. The result gives restored_count and not_found_count, so check not_found_count before you use the text. The maps live only in this server's memory: after a restart the map is gone, so protect the text again.

detect_piiA

Finds private and sensitive data (names, emails, phone numbers and similar) in a text and returns each one with its type and position, without changing the text. The text is sent to the Opami Protect API, which keeps nothing. Each detection includes the real value, so the result shows the private data to you; use protect_text instead to avoid seeing it. start and end are UTF-16 code units, as JavaScript string indices, so text.slice(start, end) gives the value. exclude takes at most 50 entries.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A4.6/5.0

Scored across 4 tools

Disambiguation5/5

Each tool has a clearly distinct action: protect_text and protect_file differ only by input source and the descriptions make that boundary explicit, while restore_text and detect_pii are unambiguous opposites (reverse vs. read-only inspection). No two tools could be mistaken for one another.

Naming Consistency5/5

All four names follow the same snake_case verb_noun pattern (protect_text, protect_file, restore_text, detect_pii) with verbs that accurately reflect the action. Consistent throughout.

Tool Count5/5

Four tools form a tight, complete little surface for a pseudonymisation server: detect, protect (text and file variants), and restore. Every tool earns its place and nothing looks like filler.

Completeness4/5

The core lifecycle (detect, pseudonymise, restore) is fully covered, including a file variant and an irreversible fake-data mode. Minor gaps remain: no way to list or discard live map_ids, no batch/multi-file operation, and protect_file is limited to UTF-8 text, but agents can work around these.