npm klanex-mcpstreamable-httpupdated 1mo ago
Reliable execution for agent tool calls, as an MCP server.
What can you do with klanex?
klanex MCP server
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:
| Endpoint | Environment | Keys |
|---|---|---|
https://api.klanexai.com/mcp |
production | klx_live_… |
https://api.sandbox.klanexai.com/mcp |
sandbox (free to try) | klx_test_… |
Get an API key at klanexai.com — sandbox keys are free.
Claude Code
claude mcp add --transport http klanex https://api.klanexai.com/mcp \
--header "X-API-Key: klx_live_..."
Cursor / Windsurf / VS Code (mcp.json)
{
"mcpServers": {
"klanex": {
"url": "https://api.klanexai.com/mcp",
"headers": { "X-API-Key": "klx_live_..." }
}
}
}
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:
{
"mcpServers": {
"klanex": {
"command": "npx",
"args": ["-y", "klanex-mcp"],
"env": { "KLANEX_API_KEY": "klx_live_..." }
}
}
}
The shim routes by key prefix — klx_test_… keys go to the sandbox automatically. Set KLANEX_MCP_URL to override.
Tools
| Tool | What it does |
|---|---|
execute |
Submit an HTTP call for reliable async execution: optional JSON Schema gate, retries/backoff/circuit breakers, idempotency keys, human approval gates, encrypted credentials. wait_seconds blocks up to 55s for the terminal result. |
get_execution |
Current status, attempts, target response, or classified error for an execution. |
list_executions |
The account's executions, filterable by status/time, paginated. |
replay_execution |
Re-run a terminal execution byte-exact — outage recovery without re-prompting the LLM. |
get_usage |
Plan and current-month usage/quota. |
list_connections |
Stored credential connections (token vault) to reference via connection_id — so secrets never pass through model context. |
Why this beats calling APIs directly
- Hallucinated payloads are rejected before they execute — pass
payload_schemaand 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_keymakes submits safe to retry. - Destructive actions can wait for a human —
requires_approvalpauses 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
Install
Add klanex to your client. Pick the one you use.
{
"servers": {
"klanex-mcp": {
"type": "http",
"url": "https://api.klanexai.com/mcp"
}
}
}Add to `.vscode/mcp.json` in your workspace.
claude mcp add klanex-mcp -- npx -y klanex-mcpcodex mcp add klanex-mcp -- npx -y klanex-mcpamp mcp add klanex-mcp -- npx -y klanex-mcp{
"mcpServers": {
"klanex-mcp": {
"command": "npx",
"args": [
"-y",
"klanex-mcp"
]
}
}
}Add to `claude_desktop_config.json`, then restart Claude Desktop.
{
"mcpServers": {
"klanex-mcp": {
"command": "npx",
"args": [
"-y",
"klanex-mcp"
]
}
}
}Add to `~/.cursor/mcp.json`, or `.cursor/mcp.json` for a single project.
{
"mcpServers": {
"klanex-mcp": {
"command": "npx",
"args": [
"-y",
"klanex-mcp"
]
}
}
}Add to `~/.codeium/windsurf/mcp_config.json`.
{
"mcpServers": {
"klanex-mcp": {
"command": "npx",
"args": [
"-y",
"klanex-mcp"
]
}
}
}Add to `cline_mcp_settings.json` via the MCP Servers panel.
{
"mcpServers": {
"klanex-mcp": {
"command": "npx",
"args": [
"-y",
"klanex-mcp"
]
}
}
}Add to `~/.gemini/settings.json`.
{
"mcpServers": {
"klanex-mcp": {
"type": "local",
"command": "npx",
"args": [
"-y",
"klanex-mcp"
],
"tools": [
"*"
]
}
}
}Add to `~/.copilot/mcp-config.json`, or run `/mcp add` inside the CLI.
{
"context_servers": {
"klanex-mcp": {
"command": {
"path": "npx",
"args": [
"-y",
"klanex-mcp"
]
}
}
}
}Add to your Zed `settings.json`.
npx -y klanex-mcpRun `goose configure`, choose **Add Extension → Command-line Extension**, and paste this command.
5 tools
klanex exposes 5 tools to a connected agent.
- get_execution
- Current status, attempts, target response, or classified error for an execution.
- list_executions
- The account's executions, filterable by status/time, paginated.
- replay_execution
- Re-run a terminal execution byte-exact — outage recovery without re-prompting the LLM.
- get_usage
- Plan and current-month usage/quota.
- list_connections
- Stored credential connections (token vault) to reference via `connection_id` — so secrets never pass through model context.
Score
65 / 100
Good
- Documentation22/25
- Maintenance16/25
- Trust6/20
- Capability6/15
- Install experience15/15
- Documents what it does and how to connect
- Has a resolvable package or endpoint
- Exposes at least one tool, prompt or resource
- README has substantive content
- Includes a code example
- Documents its configuration
- Mentions credentials or security posture
- Last commit 41 days ago
- Has a release history
- Repository is not archived
- No licence detected
- Namespace verified in the official MCP registry
- Claimed by its owner
- Published under an organisation
- 5 tool(s) documented
- Provides prompt templates
- Provides resources
- 18 documented install method(s)
- Published to a package registry
- Offers a hosted endpoint — no local install
Version history
| Versions | Published |
|---|---|
| 0.1.0Latest | Jul 21, 2026 |