# SDKs and public repos

> Python and JavaScript packages, an MCP server, examples and benchmark code for Opami Protect, each with its install line, licence and link.

1.  [Home](/)
2.  SDKs and public repos

SDKs and public repos

# Install it. Hide the data. Call your model

**You build in Python or JavaScript, and you want Opami Protect in a few lines.** The packages, the MCP server and the examples are public.

[The API docs →](https://console.opami.ai/docs)[→ Protect console](https://console.opami.ai)

POST /v1/detectThe API is open today

Request

```
{
  "model": "<model>",
  "text": "Hi, this is Ana Silva."
}
```

Response

```
{
  "detections": [
    { "text": "Ana Silva", "type": "person",
      "start": 12, "end": 21, "entity_id": 1 }
  ],
  "usage": { … }
}
```

The text, with badgesHi, this is Ana Silva_Person 1_**Full name**Ana Silva.

Made-up values, in the shape of the real response.

## Four steps around your model call

The packages and the API do the same job. Send the text to Opami Protect before the model call. Get the text back with badges in place of the private and sensitive data. Call your model. Put the real details back in the answer. Register at the console, get a key and follow the quickstart. No sales call.

1.  1
    
    Send the text to Opami Protect before the model call.
    
    Hi, this is Ana Silva_Person 1_**Full name**Ana Silva.
2.  2
    
    Get the text back with badges in place of the private and sensitive data.
    
    Hi, this is Ana Silva_Person 1_**Full name**Ana Silva.
3.  3
    
    Call your model.
    
    Hello Ana Silva_Person 1_**Full name**Ana Silva, how can I help?
4.  4
    
    Put the real details back in the answer.
    
    Hello Ana Silva_Person 1_**Full name**Ana Silva, how can I help?

_Made-up example._

[The API docs →](https://console.opami.ai/docs)

## Try it on your own data

Opami Protect is in private beta. Register at the console, run a sample of your own text, and see what it hides. No sales call.

[→ Protect console](https://console.opami.ai)[Read the quickstart](https://console.opami.ai/docs)

## The repositories

One card for each repository, with its install line, its licence and its link.

-   ### opami-protect-python
    
    The Python package.
    
    Install line
    
    `pip install opami-protect`
    
    Licence
    
    MIT
    
    Link
    
    [GitHub →](https://github.com/opamiai/opami-protect-python)
    
-   ### opami-protect-js
    
    The package for JavaScript and TypeScript.
    
    Install line
    
    `npm install opami-protect`
    
    Licence
    
    MIT
    
    Link
    
    [GitHub →](https://github.com/opamiai/opami-protect-js)
    
-   ### opami-protect-mcp
    
    The MCP server: Opami Protect inside Claude Code, Cursor, Codex and other MCP clients.
    
    Install line
    
    `npx -y opami-protect-mcp`
    
    Licence
    
    MIT
    
    Link
    
    [GitHub →](https://github.com/opamiai/opami-protect-mcp)
    
-   ### Examples
    
    Short programs that hide private data before a model call and put the real details back in the answer, in front of the models builders use.
    
    Install line
    
    `git clone https://github.com/opamiai/opami-protect-examples`
    
    Licence
    
    MIT
    
    Link
    
    [GitHub →](https://github.com/opamiai/opami-protect-examples)
    
-   ### Benchmark code
    
    The code to run our public benchmark again on your machine.
    
    Install line
    
    `git clone https://github.com/opamiai/opamibench`
    
    Licence
    
    Apache-2.0, results CC BY 4.0
    
    Link
    
    [GitHub →](https://github.com/opamiai/opamibench)
    

## What opens, and what stays closed

### Public

The SDKs, the MCP server, the examples and the benchmark code are public.

### Closed

The model behind Opami Protect is not open source, and these repositories do not contain it. The model runs in our cloud in the EU, or on your own servers.

## Questions

Something else on your mind? [Talk to us →](/contact)

Is there a Python library or an npm package for Opami Protect?

Yes. For Python, pip install opami-protect. For JavaScript and TypeScript, npm install opami-protect. Both are MIT licensed and on GitHub. You can also call the API directly, and the quickstart shows how.

How do I hide personal data in Python before sending text to Claude or OpenAI?

Call the Opami Protect API from your Python code before the model call. Send the text, replace what it finds with badges, send the badged text to the model, and swap the real details back into the answer. The quickstart and the blog post show the code. [The blog post with the code →](/blog/remove-private-data-before-openai-or-claude)

Is there an MCP server?

Yes. opami-protect-mcp runs on your machine with npx -y opami-protect-mcp and your Opami API key. It works in Claude Code, Cursor, Codex and other MCP clients, with four tools: protect\_text, protect\_file, detect\_pii and restore\_text. Its README has the setup.

Is the model open source?

No, the Opami Protect model is not open source. The SDKs, the MCP server, the examples and the benchmark code are public.
