Access the Public Akto MCP Server
Overview
Akto hosts a public MCP (Model Context Protocol) server that lets any MCP-compatible client (Claude, Cursor, etc.) connect directly to your Akto data, without deploying or self-hosting an MCP server yourself.
Akto's MCP server is HTTP-only; stdio is not supported. Configure it as an http-type server entry pointing at https://mcp.akto.io/mcp, as shown below.
It also supports only the request/response half of MCP's Streamable HTTP transport, not the streaming (GET/SSE) half. If your client requires that streaming handshake to connect, it won't work with this server yet; don't assume a connection failure is an auth issue.
Prerequisites
An Akto account with access to Settings
An MCP-compatible client (Claude, Cursor, etc.)
Configuration
Generate Your Akto API Key
In your Akto dashboard, go to Settings → Integrations → Automation → Akto API Token
Click Generate to create a new token
Copy the token; you'll use it as the
x-mcp-api-keyvalue in the next step
Configure the MCP Server
Add the following configuration in your MCP client:
"akto-mcp-server": {
"type": "http",
"url": "https://mcp.akto.io/mcp",
"headers": {
"x-mcp-api-key": "<YOUR_AKTO_API_KEY>",
"x-context-source": "Agentic"
}
}Replace <YOUR_AKTO_API_KEY> with the token generated in the previous step.
The x-context-source Header
The x-context-source header tells the MCP server which Akto product's data to serve:
API
Akto API Security
Agentic
Akto Argus (Agentic AI Security)
Endpoint
Akto Atlas (Agentic AI Security for Employee Endpoints)
DAST
Akto DAST
Most MCP clients apply a fixed headers block for the life of a server connection, so you can't switch x-context-source per question. If your work spans multiple contexts (e.g. both Agentic and Endpoint), add multiple named server entries pointing at the same URL and API key, each with a different x-context-source, and enable whichever matches what you're currently working on:
Troubleshooting
Check the server is reachable:
GET https://mcp.akto.io/healthreturns a liveness response and doesn't require any headers.Connection fails immediately / handshake never completes: your client may depend on the streaming (
GET/SSE) half of Streamable HTTP, which this server doesn't implement yet. See the note above.401 error:
x-mcp-api-keyis missing or invalid. Double-check the token generated in Step 1.400 error:
x-context-sourceis set to a value other thanAPI,Agentic,Endpoint, orDAST. Fix the value, or omit the header to default toAPI.
Support
If you need help with the setup:
Discord Community: Join our community at discord.gg/Wpc6xVME4s
Email Support: Contact us at support@akto.io
Our team is available 24/7 to assist you with setup, troubleshooting, and best practices.
Last updated