Haldir logo

Haldir

Governance layer for AI agents with scoped sessions, encrypted secrets, audit trails, approvals, and MCP call interception.

Install Haldir

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "haldir": {
      "command": "uvx",
      "args": [
        "haldir"
      ],
      "env": {
        "HALDIR_ENCRYPTION_KEY": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

uvx haldir

Process exited before answering initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

Haldir MCP server adds identity, secret management, audit logging, and policy enforcement around AI agent tool calls. It uses scoped sessions, spend caps, encrypted secrets, human approval workflows, and a proxy that intercepts MCP requests before they reach upstream tools. You can self-host the API with Docker and Postgres or use the hosted service at haldir.xyz. Reach for it when an agent needs controlled access to credentials, spending, and auditable tool activity.

Use cases

  • Gate agent tool calls with scoped permissions
  • Store credentials outside the model context
  • Enforce per-session spending limits
  • Verify and export tamper-evident audit records
  • Route sensitive actions through human approval

Key features

  • Scoped agent sessions
  • AES-256-GCM encrypted secret vault
  • Hash-chained audit trail
  • Human approval workflows
  • MCP call interception proxy
  • Compliance evidence exports

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

18/18 checks healthy over the last 106d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 3d ago via OSV.dev · haldir (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars4Stargazers on the source repository.
Last commit1mo agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.
Directory activity5 viewsConfig copies, upvotes, and views on AllMCPs.

How Haldir works

What Haldir MCP server does

Haldir MCP server provides a governance layer for AI agents that call tools and APIs. It places a controlled boundary between an agent and its upstream tools, allowing teams to apply identity, access, spending, secret-handling, and audit rules to agent activity.

The platform supports scoped agent sessions with permissions and per-session spend limits. Secrets are stored in an encrypted vault and retrieved through access-controlled requests, so the model does not receive credentials directly as part of the normal governance flow. Haldir also records actions in a hash-chained audit trail intended to make later tampering detectable.

Human approvals are available for actions that require review, and webhooks can report related events.

How it works

An agent sends tool activity through Haldir's proxy. The proxy intercepts each MCP call before it reaches the upstream tool, where Haldir can apply session permissions and policy checks. Approved activity can then be logged to the audit chain, while requests requiring review can enter an approval workflow.

The service exposes an HTTP API and can run against SQLite or Postgres. The documented hosted endpoint is https://haldir.xyz; self-hosted deployments expose the API locally after the Docker Compose stack starts. The Python client can create sessions, store secrets, retrieve secrets with a session identifier, and interact with the governed API.

The Haldir MCP server is useful when an agent must operate with bounded authority rather than unrestricted access to environment variables, payment actions, or external APIs. It is also relevant when an operator needs an inspectable record of agent actions or evidence for an internal compliance process.

Setup and configuration

The command-line client supports login, status checks, audit operations, webhook delivery inspection, migration commands, and JSON output for scripts.

Self-hosting requires cloning the repository, copying .env.example to .env, generating a URL-safe 32-byte value, and placing it in HALDIR_ENCRYPTION_KEY. The documented startup command is docker compose up -d; the health endpoint is then available at http://localhost:8000/health. Self-hosted deployments run the API and Postgres according to the repository's Docker Compose configuration, while the service can also use SQLite.

The README identifies HALDIR_PG_POOL_MIN and HALDIR_PG_POOL_MAX as Postgres pool settings and shows DATABASE_URL for enabling a Postgres connection. These are deployment configuration options rather than required values for every installation.

Tools and capabilities

The Haldir MCP server and its API are described as supporting:

  • Scoped sessions with permissions and spend caps.
  • Encrypted secret storage using AES-256-GCM with access control.
  • Hash-chained audit records and audit-chain verification.
  • Human approval lifecycles with webhook notifications.
  • A proxy that intercepts MCP calls before upstream tools receive them.
  • Compliance evidence exports in Markdown and JSON formats.
  • CLI operations for service status, audits, webhooks, migrations, and readiness checks.

The project also lists native SDK support for LangChain, CrewAI, AutoGen, and the Vercel AI SDK.

Limitations and notes

The material does not document a specific MCP client setup command or a complete MCP server launch command, so installation through an MCP client cannot be specified reliably from this excerpt. Hosted use requires an Haldir API key, while self-hosting requires managing the API deployment and encryption key. Cloud use has a free tier and paid plans; self-hosting is described as free and MIT licensed.

Performance figures in the README are benchmark results for particular local hardware, backend, and concurrency settings. They should not be treated as a guarantee for a different deployment.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Haldir

Self-hosting uses the repository's Docker Compose setup after configuring `.env`.

Yes. Haldir provides an encrypted secret vault with access control and describes secrets as remaining unseen by the model.

Yes. It records actions in a hash-chained audit trail and provides commands to inspect, export, and verify the chain.

Yes. The platform includes human-in-the-loop approval workflows and webhook support for related notifications.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewHaldir AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/haldir?style=directory)](https://allmcps.com/mcp/haldir)
HTML Embed
<a href="https://allmcps.com/mcp/haldir"><img src="https://allmcps.com/api/badge/haldir?style=directory" alt="Haldir on AllMCPs" /></a>