Python and TypeScript SDKs for Algenta — self-hosted building blocks for AI applications. 6,000+ deterministic functions on custom Mojo kernels behind one API, SDK and MCP surface; no new language to learn. The engine is proprietary; the SDKs, API contract and examples are Apache-2.0. Siblings: thyn-ai/algenta-integrations, thyn-ai/mojo-kernels.
- ✓Open-source license (Apache-2.0)
- ✓Actively maintained (<30d)
- ✓Clear description
- ✓Topics declared
- ✓Documented (README)
claude mcp add algenta-sdk -- python -m algenta-mcp{
"mcpServers": {
"algenta-sdk": {
"command": "python",
"args": ["-m", "algenta-mcp"]
}
}
}Resumen de MCP Servers
<div align="center">
# Algenta SDK
**Python and TypeScript client libraries and the official MCP server for [Algenta](https://algenta.ai) — self-hosted building blocks for AI applications.**
[](https://github.com/thyn-ai/algenta-sdk/actions/workflows/ci.yml)
[](https://pypi.org/project/algenta-sdk/)
[](https://www.npmjs.com/package/algenta-sdk)
[](https://codecov.io/gh/thyn-ai/algenta-sdk)
[](https://scorecard.dev/viewer/?uri=github.com/thyn-ai/algenta-sdk)
[](./LICENSE)
[](#contributors)
📖 **Full documentation: [GitHub Wiki](https://github.com/thyn-ai/algenta-sdk/wiki)**
[Docs](https://docs.algenta.ai) · [Python SDK](./packages/python-sdk) · [TypeScript SDK](./packages/ts-sdk) · [MCP server](./packages/mcp) · [Integrations](https://github.com/thyn-ai/algenta-integrations) · [Examples](./examples) · [Contributing](./CONTRIBUTING.md)
</div>
Custom Mojo kernels give Algenta its speed. Your team never writes a line of
Mojo — the blocks speak Python and TypeScript. On your infrastructure, not
ours. These SDKs are how Python and TypeScript call the engine: typed access
to governed data queries, Monte Carlo simulations and recommendations,
decision memory with execution receipts that pin the policy and schema
snapshots each execution ran under, agent runs with human-in-the-loop
approvals, managed connectors, and a full audit trail — enforced by the
engine, never by client-side convention.
## MCP server
**MCP server (`algenta-mcp`)** — the official MCP server for Algenta lives in
THIS repository at [`packages/mcp/`](./packages/mcp) (implementation:
`packages/mcp/algenta_mcp`; stdio transport by default, Streamable HTTP
optional). Install it with `pip install algenta-mcp` and run it as the
`algenta-mcp` command; it is also on the official MCP Registry as
`io.github.thyn-ai/algenta`. The framework integrations (LangChain, LlamaIndex,
Vercel AI SDK, …) are what live in the companion repository
[thyn-ai/algenta-integrations](https://github.com/thyn-ai/algenta-integrations)
— not the MCP server.
## Installation
```bash
pip install algenta-sdk # Python 3.12+
npm install algenta-sdk # TypeScript / JavaScript, Node.js 18+
```
## Quickstart
Both clients read `ALGENTA_API_KEY` from the environment and default to
Algenta's hosted API at `https://api.algenta.ai`.
**Python** — note the import name is `decision_engine` (see
[Legacy names](#legacy-names)):
```python
from decision_engine import AlgentaClient
client = AlgentaClient() # reads ALGENTA_API_KEY; defaults to https://api.algenta.ai
datasets = client.list_datasets(search="orders", compact=True)
summary = client.get_dataset_summary(datasets.datasets[0].dataset_id)
result = client.query_with_metadata(
{
"dataset_id": summary.dataset_id,
"metric": {"hint": "gross_revenue"},
"aggregation": "sum",
}
)
print(result.data.result)
```
**TypeScript:**
```ts
import { AlgentaClient } from "algenta-sdk";
const client = new AlgentaClient(); // reads ALGENTA_API_KEY; defaults to https://api.algenta.ai
const datasets = await client.listDatasets({ search: "orders", compact: true });
const summary = await client.getDatasetSummary(datasets.datasets[0].dataset_id);
const result = await client.queryWithMetadata({
dataset_id: summary.dataset_id,
metric: { hint: "gross_revenue" },
aggregation: "sum",
});
console.log(result.data.result);
```
**Self-hosted engine?** Point the client at your own deployment —
`AlgentaClient(base_url="http://localhost:8000")` in Python,
`new AlgentaClient({ baseUrl: "http://localhost:8000" })` in TypeScript — and
use the API key provisioned by your operator. The `self_hosted` and
`air_gapped` deployment profiles fail closed: they never silently fall back to
Algenta's cloud. Framework integrations in
[thyn-ai/algenta-integrations](https://github.com/thyn-ai/algenta-integrations)
take the opposite default on purpose: they are self-hosted-first, resolve their
endpoint from `ALGENTA_BASE_URL` or an explicit `base_url`, and never default or
fall back to the hosted API.
The full API surface — governed queries, connectors, simulations, jobs,
triggers, agent runs, decisions, repository intelligence, and the TypeScript
local `Runtime` facade — is documented in
[`packages/python-sdk/README.md`](./packages/python-sdk/README.md) and
[`packages/ts-sdk/README.md`](./packages/ts-sdk/README.md), with runnable
projects in [`examples/`](./examples). The MCP server lives in this repository
(see [MCP server](#mcp-server) above); framework integrations (LangChain,
LlamaIndex, Vercel AI SDK, and more) live in the companion repository
[thyn-ai/algenta-integrations](https://github.com/thyn-ai/algenta-integrations).
## Errors, retries, and timeouts
Both SDKs raise the same exception taxonomy. Every error carries the HTTP
status, the engine's machine-readable `error_code`, and — in Python — the
engine-assigned `request_id`; validation failures additionally expose
per-field details via `field_errors` (Python) / `fieldErrors` (TypeScript).
| Exception | HTTP status | Raised when | Retried by default |
| --- | --- | --- | --- |
| `AuthenticationError` | 401 | Missing or invalid API key | No |
| `NotFoundError` | 404 | Resource does not exist | No |
| `ValidationError` | 422 | Request failed schema validation | No |
| `RateLimitError` | 429 | Quota or rate limit exceeded | Yes — honors the engine's `Retry-After` (`retry_after` / `retryAfter`, default 60s) |
| `ServerError` | 5xx | Engine-side failure | Yes — exponential backoff |
| `DecisionEngineError` | any | Base class for all of the above | — |
Transient network errors are retried on the same policy as 5xx responses. The
Python SDK additionally never retries one rate-limit code,
`inline_preview_rate_limited`.
| Setting | Python | TypeScript | Default |
| --- | --- | --- | --- |
| Request timeout | `timeout` (seconds) | `timeout` (milliseconds) | 120 |
| Retries per request | `max_retries` | `maxRetries` | 3 |
## Legacy names
The SDK was renamed to Algenta partway through its history. For backward
compatibility, the legacy names below still work — existing code and
deployment configurations do not need to change:
- **Python import name** — the PyPI package is `algenta-sdk`, but the
importable module remains `decision_engine`:
`from decision_engine import AlgentaClient`.
- **Client aliases** — `CodnaClient` (and `AsyncCodnaClient` in Python) remain
exported as aliases of `AlgentaClient` in both SDKs.
- **Environment variables** — `DE_API_KEY`, `DE_BASE_URL`, and
`ALGENTA_API_URL` are still accepted alongside the canonical
`ALGENTA_API_KEY` and `ALGENTA_BASE_URL`.
The published API contract guarantees a 90-day deprecation window
(`DEPRECATION_WINDOW_DAYS`) before any legacy name is removed.
## Powered by Mojo
The engine's compute kernels — simulation, scoring, and local query
execution — are written in [Mojo](https://www.modular.com/mojo) and are
proprietary. They are distributed as signed `algenta-runtime-native` wheels
and are **not** part of this repository.
What is open, here and under Apache-2.0: both SDKs, the published API contract
they are generated from, the client/runtime wire protocol they speak, and
runnable examples — including [`examples/mojo-quickstart/`](./examples/mojo-quickstart),
a minimal end-to-end walkthrough of calling the native runtime through the SDK.

## What is open source?
This repository contains Algenta's Python and TypeScript client SDKs and the
official MCP server ([`packages/mcp/`](./packages/mcp)), licensed
under **Apache-2.0** (see [LICENSE](./LICENSE) and [NOTICE](./NOTICE)).
**The Algenta engine itself is closed source and is not contained in this
repository.** Engine licensing, device entitlements, worker limits,
concurrency limits, and Server Compute Units are enforced independently by the
engine, subject to the separate Algenta Engine license.
The SDK is a plain HTTP client. It holds no license-signing keys, no
entitlement-enforcement logic, and no secret shared with the engine — every
entitlement claim is independently verified and enforced by the closed engine,
never by this SDK. Fork it, delete every check in it, or replace it with your
own HTTP client entirely — **modifying or replacing this SDK does not change
the execution capacity licensed to an Algenta engine.** See
[SECURITY.md](./SECURITY.md) for what that means for vulnerability reports.
Algenta does not require hosted inference or telemetry for execution. Paid
licenses expand local execution and governance capacity rather than charging
per SDK call.
## Verify a release
Every release built by [`release.yml`](./.github/workflows/release.yml) is
tied to:
- a protected `sdk-vX.Y.Z` source tag in this repository;
- the exact commit that tag points to;
- a release-authorization record, signed by the internal release pipeline
after the engine's test suite has validated the commit, binding that
commit and a contract-file digest to the version being released (see
[`releases/`](./releases)).
`release.yml` refuses to build or publish anything unless all of the above
independently agree — see
[`scripts/verify_release_authorization.py`](./scripts/verify_release_authorization.py).
Each [GitHub Release](https://github.com/thyn-ai/algenta-sdk/releases) cut
since signing was added (September 2026) carries, next to thLo que la gente pregunta sobre algenta-sdk
¿Qué es thyn-ai/algenta-sdk?
+
thyn-ai/algenta-sdk es mcp servers para el ecosistema de Claude AI. Python and TypeScript SDKs for Algenta — self-hosted building blocks for AI applications. 6,000+ deterministic functions on custom Mojo kernels behind one API, SDK and MCP surface; no new language to learn. The engine is proprietary; the SDKs, API contract and examples are Apache-2.0. Siblings: thyn-ai/algenta-integrations, thyn-ai/mojo-kernels. Tiene 0 estrellas en GitHub y su última actualización registrada es del 2026-09-22.
¿Cómo se instala algenta-sdk?
+
Puedes instalar algenta-sdk clonando el repositorio (https://github.com/thyn-ai/algenta-sdk) o siguiendo las instrucciones del README en GitHub. ClaudeWave también te ofrece bloques de instalación rápida en esta misma página.
¿Es seguro usar thyn-ai/algenta-sdk?
+
Nuestro agente de seguridad ha analizado thyn-ai/algenta-sdk y le ha asignado un Trust Score de 95/100 (tier: Verified). Revisa el desglose completo de comprobaciones superadas y flags en esta página.
¿Quién mantiene thyn-ai/algenta-sdk?
+
thyn-ai/algenta-sdk es mantenido por thyn-ai. La última actividad registrada en GitHub es del 2026-09-22, con 9 issues abiertos.
¿Hay alternativas a algenta-sdk?
+
Sí. En ClaudeWave puedes explorar mcp servers similares en /categories/mcp, ordenados por popularidad o actividad reciente.
Despliega algenta-sdk en tu cloud
Lleva este repo a producción en minutos. Cada plataforma genera su propio entorno con variables de entorno editables.
¿Mantienes este repo? Añade un badge a tu README
Pega el badge en tu README de GitHub para mostrar que está auditado por ClaudeWave. Cada badge enlaza de vuelta a esta página y muestra el Trust Score actual.
[](https://claudewave.com/repo/thyn-ai-algenta-sdk)<a href="https://claudewave.com/repo/thyn-ai-algenta-sdk"><img src="https://claudewave.com/api/badge/thyn-ai-algenta-sdk" alt="Featured on ClaudeWave: thyn-ai/algenta-sdk" width="320" height="64" /></a>Más MCP Servers
Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.
User-friendly AI Interface (Supports Ollama, OpenAI API, ...)
An open-source AI agent that brings the power of Gemini directly into your terminal.
Real-time global intelligence dashboard. AI-powered news aggregation, geopolitical monitoring, and infrastructure tracking in a unified situational awareness interface
🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and tricks: https://x.com/Scrapling_dev
The fastest path to AI-powered full stack observability, even for lean teams.