PII masking for MCP server logs
Personally identifiable information (PII) masking replaces tool-call inputs, tool-call outputs, and caller identity details in MCP server logs with [MASKED] to keep personal data out of your logs, while retaining the metadata you need to monitor server and tool health.
MCP servers often reach systems of record such as HR, CRM, and email. A server acts with the end user's own credentials when it uses verified user access, so tool arguments and responses can contain names, email addresses, record contents, and other personal data. MCP logs and any downstream destination you stream logs to receive that personal data unmasked when PII masking is off. This increases your privacy and compliance risk.
Masking obscures what the client sent and what the server returned, along with the end user's name, email, and IP address. It doesn't obscure which client made the call, which server and tool handled it, when the call happened, how long it took, or whether it succeeded. Refer to What masking includes for more information.
FEATURE AVAILABILITY
PII masking for MCP server logs is available to select customers. Contact your Customer Success Manager to confirm whether it's available in your workspace. Include your workspace ID and the environments to enable in your message. We recommend you enable masking in Production and leave Development and Test unmasked, so you can still inspect full payloads while debugging with non-production data.
What masking includes
Masking applies to every MCP server in an environment, including:
- Project asset-based servers (skills and API recipes)
- API collection-based servers
- Proxy servers to third-party MCP servers
Masking applies to successful and error responses, and to both token-based authentication and Workato Identity verified user access. Token-based authentication (auth_method: "hashed_token") has no access_identity block, so Workato only masks ip_address, arguments, and response content.
Workato replaces the values of all masked fields with the literal string [MASKED], even fields that normally hold other data types, such as arguments and structuredContent objects. Update parsers and schemas that expect a specific type for those fields to account for the change.
Log entries commonly include the following fields:
| Field | Masked | Notes |
|---|---|---|
details.request.params.arguments | Yes | All tool-call arguments, including nested objects, query and body parameters. |
details.response.content[].text | Yes | The tool output returned to the client. |
details.response.structuredContent | Yes | Structured tool output, when present. |
ip_address | Yes | The caller's IP address. |
access_identity.user_name | Yes | The end user's display name, present only with Workato Identity authentication. |
access_identity.user_email | Yes | The end user's email address, present only with Workato Identity authentication. |
access_identity.user_id | No | An opaque identifier for correlation. |
access_identity.user_group_ids | No | Opaque identifiers for the end user's groups. |
token_id | No | The API token's identifier. |
token_name | No | The API token's display name. |
identity_token_metadata | No | The token's issuer, audience, and expiry. |
oauth_client_id | No | The OAuth client ID. |
scopes | No | The granted OAuth scopes. |
user_agent | No | The requesting client's user-agent string, including name and version. |
ai_client | No | The requesting client's name. |
server_name | No | The name of the server that handled the call. |
mcp_server_id | No | The ID of the server that handled the call. |
details.request.params.name | No | The name of the tool the client called. |
timestamp | No | The date and time when the call happened. |
duration_seconds | No | How many seconds the call took. |
outcome | No | The overall result of the request, such as success. |
details.response.isError | No | Whether the tool's response was an error. |
request_id | No | The request's identifier. |
json_rpc_id | No | The JSON-RPC message identifier. |
environment_id | No | The environment's identifier. |
transport | No | The transport protocol, such as streamable_http. |
auth_method | No | The authentication method, such as workato_idp or hashed_token. |
message_type | No | The log entry's event type, such as mcp_method. |
details.direction | No | The message direction, such as server_to_client. |
details.method | No | The JSON-RPC method, such as tools/call. |
EXCLUDED VALUES
Two types of values remain visible even with masking enabled:
- Token names: Appear in logs if you name API tokens after people. Use descriptive names such as
codex-prodinstead. - Protocol lifecycle messages:
initializeandnotifications/initializedmessages carry capability negotiation and server instructions, not end-user data, so these messages' contents stay visible. Workato still masks theip_addresson these messages.
Example log payloads
The following examples show the same tools/call log for a server that uses Workato Identity, before and after masking:
Before masking
{
"message_type": "mcp_method",
"outcome": "success",
"timestamp": "2026-11-27T03:26:40.280365192Z",
"environment_id": 18488,
"auth_method": "workato_idp",
"access_identity": {
"user_id": "oM6uRGKxA5ygb2Q8icuSwR",
"user_name": "Kai Lee",
"user_email": "[email protected]",
"user_group_ids": ["2283mk7fN4fWNxYqosKPJG"]
},
"ip_address": "203.0.113.24",
"user_agent": "openai-mcp/1.0.0 (Codex)",
"request_id": "6d265c23-f149-43de-8b25-4c50d0a18144",
"server_name": "Airtable",
"mcp_server_id": "19682",
"transport": "streamable_http",
"token_id": 16932,
"token_name": "Workato IDP",
"duration_seconds": 2.375785376,
"details": {
"direction": "server_to_client",
"json_rpc_id": "1",
"method": "tools/call",
"request": {
"params": {
"arguments": { "baseId": "appX1y2Z3", "filter": "{Email} = '[email protected]'" },
"name": "list_records"
}
},
"response": {
"content": [
{ "text": "[{\"Name\":\"Dana Park\",\"Phone\":\"+65 9123 4567\"}]", "type": "text" }
],
"isError": false
}
}
}After masking
{
"message_type": "mcp_method",
"outcome": "success",
"timestamp": "2026-11-27T03:26:40.280365192Z",
"environment_id": 18488,
"auth_method": "workato_idp",
"access_identity": {
"user_id": "oM6uRGKxA5ygb2Q8icuSwR",
"user_name": "[MASKED]",
"user_email": "[MASKED]",
"user_group_ids": ["2283mk7fN4fWNxYqosKPJG"]
},
"ip_address": "[MASKED]",
"user_agent": "openai-mcp/1.0.0 (Codex)",
"request_id": "6d265c23-f149-43de-8b25-4c50d0a18144",
"server_name": "Airtable",
"mcp_server_id": "19682",
"transport": "streamable_http",
"token_id": 16932,
"token_name": "Workato IDP",
"duration_seconds": 2.375785376,
"details": {
"direction": "server_to_client",
"json_rpc_id": "1",
"method": "tools/call",
"request": {
"params": {
"arguments": "[MASKED]",
"name": "list_records"
}
},
"response": {
"content": [
{ "text": "[MASKED]", "type": "text" }
],
"isError": false
}
}
}Log streaming
Masking also applies to MCP logs sent through log streaming. Workato masks values before the log leaves the platform, so your Security Information and Event Management (SIEM) or log platform automatically receives masked data, without requiring any changes to your log streaming configuration.
Streamed MCP logs contain source: "apim-mcp-gateway". The data field carries the MCP log entry as a JSON string, with the same masked fields as the in-app log:
{
"data": "{\"message_type\":\"mcp_method\",\"outcome\":\"success\",\"timestamp\":\"2026-11-27T03:26:40.280365192Z\",\"environment_id\":18488,\"auth_method\":\"workato_idp\",\"access_identity\":{\"user_id\":\"oM6uRGKxA5ygb2Q8icuSwR\",\"user_name\":\"[MASKED]\",\"user_email\":\"[MASKED]\",\"user_group_ids\":[\"2283mk7fN4fWNxYqosKPJG\"]},\"ip_address\":\"[MASKED]\",\"user_agent\":\"openai-mcp/1.0.0 (Codex)\",\"request_id\":\"6d265c23-f149-43de-8b25-4c50d0a18144\",\"server_name\":\"Airtable\",\"mcp_server_id\":\"19682\",\"transport\":\"streamable_http\",\"token_id\":16932,\"token_name\":\"Workato IDP\",\"duration_seconds\":2.375785376,\"details\":{\"direction\":\"server_to_client\",\"json_rpc_id\":\"1\",\"method\":\"tools/call\",\"request\":{\"params\":{\"arguments\":\"[MASKED]\",\"name\":\"list_records\"}},\"response\":{\"content\":[{\"text\":\"[MASKED]\",\"type\":\"text\"}],\"isError\":false}}}",
"date_time": "2026-11-27T03:26:40.280365192Z",
"flow_id": 1975744,
"hostname": "workato-cloud",
"job_handle": "j-AcRptmTb-8RFzxJ-B6",
"log_level": "INFO",
"service": "ipaas",
"source": "apim-mcp-gateway",
"user_id": 18488
}Limitations and FAQ
Can I see the original values after masking?
View answer
No. Workato masks values before storing the log and doesn't keep an unmasked copy. Use an environment where masking is off to debug payloads.
Does masking apply to logs written before I enable it?
View answer
No. Masking applies only to log entries that Workato writes after you enable masking.
Can I mask some servers in an environment but not others?
View answer
No. Masking applies to all MCP servers in an enabled environment.
Can I choose which fields are masked?
View answer
No. You can't change the masked fields. Refer to What masking includes for more information.
Does masking affect what the AI client receives?
View answer
No. Masking only changes what Workato logs. Tool calls and responses between the MCP client and server are unchanged.
Does masking apply to recipe job history?
View answer
Masking applies only to MCP server logs. Data in the jobs of recipes that back your MCP tools follows your existing job data retention and Data masking settings.
How do I turn masking off?
View answer
Contact your Customer Success Manager with the workspace and environment IDs.
Last updated: