Secryn provides an MCP (Model Context Protocol) server so agents and MCP clients can retrieve secrets, keys, and certificates.
The MCP server calls your Secryn API. It is not a separate credential system.
All requests follow JSON-RPC format and use the tools/call method to execute operations.
MCP requires:
Mcp-Session-Id header. There is one session id for the instance, shown in MCP settings.vault.accessKey or credentials.accessKey). The client, and any model that sees the tool call, can see that key.Each MCP request requires:
One session id is configured for the whole instance. Every client sends that same value:
Mcp-Session-Id: YOUR_INSTANCE_SESSION_ID
Vault credentials are passed inside the request under:
vaultcredentialsThe MCP server will use the provided credentials to call your Secryn API.
baseUrl must include the /api suffix.
Example:
{
"vault": {
"id": "Test Vault",
"vaultId": "Test Vault",
"accessKey": "VAULT_ACCESS_KEY",
"baseUrl": "https://demo.secryn.io/api"
}
}
method must be tools/call (slash format).baseUrl must include /api.code when preferPublic=true.