klanex MCP server
[npm]
[MCP Marketplace]
Reliable execution for agent tool calls, as an MCP server.
klanex is an async execution layer between an agent's tool-use intents and real third-party APIs: it schema-gates hallucinated payloads before anything runs, absorbs rate limits and outages with retries/backoff/circuit breakers, encrypts credentials, keeps an audit trail, and reports back via signed webhooks. With this MCP server, an agent submits a call once — klanex makes sure it lands.
Failures come back written for the model: every error carries an llm_hint telling the agent exactly what to fix (or that klanex is already handling it), so agents self-correct instead of guessing.
Connect (hosted, recommended)
klanex's MCP server is hosted — no install needed if your client supports HTTP transports:
Get an API key at klanexai.com — sandbox keys are free.
Claude Code
Cursor / Windsurf / VS Code (mcp.json)
Authorization: Bearer klx_... works too, for clients that can only set that header.
Connect (stdio shim)
For clients that only speak stdio (e.g. Claude Desktop), this package proxies stdio to the hosted endpoint:
The shim routes by key prefix — klx_test_… keys go to the sandbox automatically. Set KLANEX_MCP_URL to override.
Tools
Why this beats calling APIs directly
- Hallucinated payloads are rejected before they execute — pass
payload_schema and mismatches return synchronously with a correction hint.
- Transient failures are not the agent's problem — 429s, timeouts, and 5xxs are retried with backoff behind a circuit breaker; the agent does nothing.
- A network blip can never double-execute a refund —
idempotency_key makes submits safe to retry.
- Destructive actions can wait for a human —
requires_approval pauses execution for an approve/reject decision (API, dashboard, or Slack buttons).
- Credentials stay out of model context — store them once as a connection; klanex injects them at execution time.
Full API docs: api.klanexai.com/docs
License
MIT