Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

Add PII filtering documentation with configuration details, supported types, and integration examples for MCP endpoints

Saif0efe923ed9e3
diff --git a/docs/documentation/platform/agent-sentinel/activity-logs.mdx b/docs/documentation/platform/agent-sentinel/activity-logs.mdx
index ee95774bd3..de9ed4e14c 100644
--- a/docs/documentation/platform/agent-sentinel/activity-logs.mdx
+++ b/docs/documentation/platform/agent-sentinel/activity-logs.mdx
@@ -76,7 +76,15 @@ Every tool invocation through an MCP endpoint creates a log entry containing:
Yes, activity logs can be exported for external analysis or long-term storage. Enterprise plans include log streaming to external SIEM systems.
</Accordion>
<Accordion title="Are sensitive data in requests/responses masked?">
- Infisical supports PII filtering to automatically detect and mask sensitive data in request and response payloads, helping you maintain compliance while preserving audit trail integrity.
+ Infisical supports PII filtering to automatically detect and mask sensitive data in request and response payloads. When enabled on an MCP endpoint, the following PII types can be redacted:
+
+ - **Email addresses** → `[REDACTED_EMAIL]`
+ - **Phone numbers** → `[REDACTED_PHONE]`
+ - **Social Security Numbers** → `[REDACTED_SSN]`
+ - **Credit card numbers** → `[REDACTED_CREDIT_CARD]`
+ - **IP addresses** → `[REDACTED_IP]`
+
+ You can configure PII filtering separately for requests and responses, and select which PII types to detect. See [MCP Endpoints - PII Filtering](/documentation/platform/agent-sentinel/mcp-endpoints#pii-filtering) for configuration details.
</Accordion>
<Accordion title="Do failed tool invocations get logged?">
Yes, all tool invocations are logged regardless of success or failure. Failed invocations include error details in the response payload.
diff --git a/docs/documentation/platform/agent-sentinel/mcp-endpoints.mdx b/docs/documentation/platform/agent-sentinel/mcp-endpoints.mdx
index dc05fb2324..9c44cd40f5 100644
--- a/docs/documentation/platform/agent-sentinel/mcp-endpoints.mdx
+++ b/docs/documentation/platform/agent-sentinel/mcp-endpoints.mdx
@@ -23,6 +23,12 @@ This architecture provides several benefits:
<Card title="Centralized Logging" icon="scroll">
All tool invocations are logged regardless of which MCP server they target.
</Card>
+ <Card title="PII Filtering" icon="user-shield">
+ Automatically redact sensitive data from requests and responses.
+ </Card>
+ <Card title="Auth Delegation" icon="key">
+ Handle OAuth and token-based authentication for connected servers.
+ </Card>
</CardGroup>
## How It Works
@@ -132,9 +138,64 @@ When a user connects to an endpoint with servers requiring personal credentials:
![mcp endpoints finalize personal complete](/images/platform/ai/mcp/mcp-endpoints-finalize-personal-complete.png)
+## PII Filtering
+
+MCP Endpoints support automatic PII (Personally Identifiable Information) filtering to redact sensitive data from requests sent to MCP servers and responses returned to AI clients. This helps maintain compliance and prevent accidental exposure of sensitive information through AI tool interactions.
+
+### Supported PII Types
+
+| Type | Description | Redacted As |
+|------|-------------|-------------|
+| Email | Email addresses | `[REDACTED_EMAIL]` |
+| Phone | Phone numbers (US format) | `[REDACTED_PHONE]` |
+| SSN | Social Security Numbers | `[REDACTED_SSN]` |
+| Credit Card | Credit card numbers | `[REDACTED_CREDIT_CARD]` |
+| IP Address | IPv4 addresses | `[REDACTED_IP]` |
+
+### Configuring PII Filters
+
+<Tabs>
+ <Tab title="Infisical UI">
+ <Steps>
+ <Step title="Navigate to Endpoint Details">
+ Open your MCP endpoint and locate the **Filters** section in the left column.
+
+ ![pii filters section](/images/platform/ai/mcp/mcp-pii-filters-section.png)
+ </Step>
+ <Step title="Open Filter Configuration">
+ Click the edit icon to open the PII filter configuration modal.
+
+ ![pii filter config modal](/images/platform/ai/mcp/mcp-pii-filters-config.png)
+ </Step>
+ <Step title="Configure Filtering Options">
+ Configure the following options:
+
+ - **Filter Requests**: Enable to redact PII from requests sent to MCP servers
+ - **Filter Responses**: Enable to redact PII from responses returned to AI clients
+ - **PII Detection**: Select which types of PII to detect and redact
+ </Step>
+ <Step title="Save Configuration">
+ Click **Save** to apply your PII filter settings. Changes take effect immediately for new tool invocations.
+ </Step>
+ </Steps>
+ </Tab>
+</Tabs>
+
## FAQ
<AccordionGroup>
+ <Accordion title="How does PII filtering work?">
+ When PII filtering is enabled, Infisical scans request and/or response payloads using pattern matching to detect sensitive data. Detected PII is replaced with redaction placeholders (e.g., `[REDACTED_EMAIL]`) before the data is passed through. The original data is never stored or logged when filtering is enabled.
+ </Accordion>
+ <Accordion title="Can I filter requests and responses separately?">
+ Yes, you can enable PII filtering independently for requests (data sent to MCP servers) and responses (data returned to AI clients). This gives you granular control over where redaction is applied.
+ </Accordion>
+ <Accordion title="What PII types are supported?">
+ Infisical currently supports detection and redaction of: email addresses, phone numbers (US format), Social Security Numbers, credit card numbers, and IPv4 addresses.
+ </Accordion>
+ <Accordion title="Can I select different PII types for requests and responses?">
+ Not currently. The selected PII types apply to both request and response filtering. If you need different filtering rules, consider creating separate endpoints.
+ </Accordion>
<Accordion title="Can I connect the same MCP server to multiple endpoints?">
Yes, you can connect an MCP server to as many endpoints as needed. Each endpoint can have different tools enabled, allowing you to create different access profiles.
</Accordion>
diff --git a/docs/documentation/platform/agent-sentinel/overview.mdx b/docs/documentation/platform/agent-sentinel/overview.mdx
index f779b28e6e..cf107c4c3c 100644
--- a/docs/documentation/platform/agent-sentinel/overview.mdx
+++ b/docs/documentation/platform/agent-sentinel/overview.mdx
@@ -23,4 +23,7 @@ As AI agents become more capable and autonomous, organizations need robust infra
<Card title="Tool Governance" icon="shield-check">
Fine-grained control over which tools are available through each endpoint.
</Card>
+ <Card title="PII Filtering" icon="user-shield" href="/documentation/platform/agent-sentinel/mcp-endpoints#pii-filtering">
+ Automatically redact sensitive data like emails, phone numbers, and credit cards from AI tool interactions.
+ </Card>
</CardGroup>
diff --git a/docs/images/platform/ai/mcp/mcp-pii-filters-config.png b/docs/images/platform/ai/mcp/mcp-pii-filters-config.png
new file mode 100644
index 0000000000..e5543e7025
Binary files /dev/null and b/docs/images/platform/ai/mcp/mcp-pii-filters-config.png differ
diff --git a/docs/images/platform/ai/mcp/mcp-pii-filters-section.png b/docs/images/platform/ai/mcp/mcp-pii-filters-section.png
new file mode 100644
index 0000000000..f3051faadb
Binary files /dev/null and b/docs/images/platform/ai/mcp/mcp-pii-filters-section.png differ