MCP Endpoint Shield
MCP Endpoint Shield provides runtime security and auto-discovery of local MCP servers configured on your machine. It acts as a protective layer between the MCP client (e.g., Cursor, VS Code, Claude) and the MCP serversβrequiring no changes to your setup.
What is Agentic Endpoint Shield?
Endpoint Shield continuously monitors employee devices to identify and track:
AI Agents: All deployed agents across web, desktop, and endpoint devices
MCP Servers: Model Context Protocol server instances running locally or remotely
Device Information: Complete device inventory with hardware IDs, usernames, and locations
Agent Activity: Real-time heartbeat monitoring and deployment status
MCP Connections: Server URLs, connection health, and last seen timestamps
β¨ Features
β Continuous safety checks on all requests and responses to the MCP servers
β Automatic blocking of unsafe interactions (via standard JSON-RPC errors)
β Works out-of-the-box with popular MCP clients (Cursor, VS Code, Claude)
β Zero changes required in your MCP server
π¦ Installation
The tool is provided as an installable binary for your platform (Linux, macOS, Windows).
Download the binary from the official release page and place it in your system path (
$PATH) for easy CLI access.
Example (macOS/Linux):
π Auto-Detection
Akto MCP Endpoint Shield automatically detects MCP client configurations:
Cursor β Reads
~/.cursor/mcp.jsonVisual Studio Code β Reads
.vscode/mcp.jsoninside your workspaceClaude Desktop β Reads Claudeβs MCP config JSON
For each detected MCP server config:
The JSON file is parsed.
Each server entry is automatically wrapped with Akto MCP Endpoint Shield.
Your MCP clients transparently run through the shield without requiring manual reconfiguration.
π You donβt need to manually edit your MCP config files β the wrapper handles this for you.
π Example β Cursor mcp.json
mcp.jsonOriginal file (before wrapping):
Automatically wrapped file (after Akto MCP Endpoint Shield):

What changed:
The server is renamed from
playwright-mcpβplaywright-mcp-endpoint-shield.mcp-endpoint-shieldis now the entry command.Original server command (
npx @playwright/mcp@latest) is passed through--exec.Security flags (
--akto-api-token) are automatically injected.
π Quick Start (Manual Run)
If you want to run manually (instead of auto-detection):
Examples
Python server:
Dockerized server:
βοΈ Common Flags
--name <project_name>β Friendly label used in logs and insights--akto-api-token <token>β Your Akto API token--exec <command> [args...]β Command to start your MCP server--env KEY=VALUE(repeatable) β Pass additional environment variables to the MCP process
π How It Works (Behind the Scenes)
The wrapper launches your MCP server.
Every request/response line is intercepted.
Safe traffic passes through unchanged.
Unsafe traffic is blocked, returning a clear JSON-RPC error to the client.
Metadata is recorded (lightweight, opt-in) to improve detection and insights.
π Logging
Location:
$HOME/.akto/mcp_endpoint_shield.logFormat: human-readable text logs
Includes: project name (
--name) for easy filteringRotation: automatic (size-based) to prevent unbounded growth
π» Using with Cursor (at a glance)
In Cursor settings, configure your MCP server to run through the wrapper.
Place your original MCP server command after
--exec.(Optional: Add a diagram/screenshot here for clarity.)
π§© Troubleshooting
Issue: Auto-detection didnβt work
β‘ Cause: Custom MCP config location or unsupported client.
β‘ Fix: Run your server manually with --exec.
Issue: Unexpected end of JSON input
β‘ Cause: Your MCP server is writing non-protocol logs to stdout.
β‘ Fix: Use stderr for logs instead.
Issue: ERROR writing to MCP stdin: file already closed
β‘ Cause: MCP server exited or closed stdin prematurely.
β‘ Fix: Run your server standalone to confirm stability.
Issue: No insights appearing β‘ Cause: Some tools donβt use standard JSON-RPC IDs. β‘ Fix: Safety still applies, but insights may be limited.
π Guarantees
β Transparency: Safe traffic is never altered.
β Clarity: Unsafe traffic always results in a clear JSON-RPC error.
β Minimal footprint: Designed to stay invisible unless an issue occurs.
Get Support for your Akto setup
There are multiple ways to request support from Akto. We are 24X7 available on the following:
In-app
intercomsupport. Message us with your query on intercom in Akto dashboard and someone will reply.Join our discord channel for community support.
Contact
[email protected]for email support.Contact us here.
Last updated