kakunin-mcp
The kakunin-mcp server provides MCP tools for AI agents to self-verify compliance, monitor risk, and maintain an immutable audit trail within MCP-compatible runtimes.
verify_agent_scope: Check if the agent is authorized to perform a specific action before executing it. Validates the active X.509 certificate, permitted action scopes, financial limits (including trading venues and USD thresholds), and revocation status.check_risk_score: Retrieve the agent's rolling 30-day risk score, risk band (low/medium/high), and behavioral drift trend. Returns actionable guidance to help the agent decide whether to proceed, self-throttle, or escalate to a human.audit_log_append: Record behavioral events (transactions, API calls, data access, authentication attempts, anomalies, etc.) to an immutable audit log. Returns a per-event risk score and transaction ID for traceability. Events scoring ≥ 0.85 automatically trigger a certificate revocation check.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@kakunin-mcpverify if I'm authorized to trade 50000 USD on euronext"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
@kakunin/mcp — MCP server for AI agent identity & compliance
Model Context Protocol server for the Kakunin AI agent compliance API. Lets AI agents self-verify scope, check their own risk score, and log behavioral events — all from within Claude, Cursor, or any MCP-compatible runtime.
npx @kakunin/mcpTools
verify_agent_scope
Check whether this agent is authorised to perform an action before executing it. Verifies the active X.509 certificate, permitted_actions scope, financial limits, and revocation status.
{
"action": "initiate EUR/USD trade on euronext for 50000 USD",
"venue": "euronext",
"amount_usd": 50000
}Returns { allowed: true|false, reason, certificate_status, permitted_actions }.
check_risk_score
Retrieve the agent's rolling 30-day risk score, band (low/medium/high), drift trend, and actionable guidance. No input required.
audit_log_append
Append a behavioral event to the agent's immutable audit log. Returns risk score + transaction ID. Events scoring ≥ 0.85 auto-trigger a certificate revocation check.
{
"action_type": "transaction_initiated",
"details": { "amount_usd": 50000, "venue": "NYSE" }
}Related MCP server: PolicyGuard
Setup
Prerequisites: Node ≥ 18, Kakunin API key + Agent ID from kakunin.ai/dashboard.
Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"kakunin": {
"command": "npx",
"args": ["-y", "@kakunin/mcp"],
"env": {
"KAKUNIN_API_KEY": "kak_live_...",
"KAKUNIN_AGENT_ID": "agt_..."
}
}
}
}Environment variables
Variable | Required | Description |
| ✅ | API key ( |
| ✅ | Agent ID the server acts on behalf of |
| optional | Override API base (default: |
Sandbox mode
Use a kak_test_... key for development — hits the sandbox CA, no cost, 100 free certs/day.
Full docs at docs.kakunin.ai.
Contributors
Thanks to everyone who contributes (emoji key) — code and non-code alike:
Contributions of any kind are welcome — this project follows the all-contributors spec.
Maintenance
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/kakunin-ai/kakunin-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server