Skip to content
Install Core free
ProductsCompare Core, Hub, Connect and MDM pricing
Solutions
Docs
ResearchPricing
CompareCompare all AI data-leak tools
TrustBenchmarks
Start 30-day free trial

Shadow Hub for your business

Tell us about your team and we'll help you get started.

We use these details only to reply to your enquiry. No newsletter, no cookies, no trackers.

MCP server

shadow serve includes an MCP server at http://127.0.0.1:8878/mcp (streamable HTTP, JSON responses). Agents use it to mask data before handing it to another model, a hosted tool or a third-party API, and to restore the answer.

ToolArgumentsReturns
shadow_scantext, reveal?Findings with kind, detector, position and a shortened value
shadow_protecttext, session_id?, instruction?, policy?Masked text, session_id, replacements and kinds
shadow_restoretext, session_id?text with the real values back, and how many were restored

The tools behave exactly like the Privacy API endpoints of the same name. Results come back as structuredContent and as JSON text.

Start the server, then add it to your client.

Terminal window
shadow serve

Claude Code

Terminal window
claude mcp add --transport http shadow http://127.0.0.1:8878/mcp

Cursor, Windsurf and other clients with an mcp.json

{
"mcpServers": {
"shadow": { "url": "http://127.0.0.1:8878/mcp" }
}
}

With a token (required when Shadow listens on a non-loopback address), add the header your client supports:

{
"mcpServers": {
"shadow": {
"url": "https://shadow.internal.example.com/mcp",
"headers": { "Authorization": "Bearer ${SHADOW_API_TOKEN}" }
}
}
}

When to use the MCP server, and when the proxy

Section titled “When to use the MCP server, and when the proxy”

The MCP server protects what the agent chooses to pass through it: a document it is about to send to a hosted tool, a customer record going to another model. It does not see the agent’s own model traffic. To protect that too, run the agent through Shadow Core in gateway or proxy mode, which also checks the agent’s tool calls.