Skip to main content
Glama
agledger-ai

@agledger/mcp-server

Official
by agledger-ai

@agledger/mcp-server

The official MCP server for the AGLedger API: change control for AI agents. A self-hosted notary that records every change an agent makes, signed and hash-chained, and gates the ones that matter.

Connects any MCP-compatible AI agent (Claude, Cursor, Windsurf, etc.) to the AGLedger API with 2 universal API-pass-through tools plus an offline audit verifier. No SDK code required. Just point your agent at this server.

Learn more

  • agledger.ai: what AGLedger is and who needs it

  • How it works walks the lifecycle: record, completion, verdict

  • Glossary: canonical definitions of Record, Completion, SCITT Receipt, Verdict, Settlement Signal

  • MCP Server guide: installation and agent workflow

Install

npm install -g @agledger/mcp-server

Related MCP server: VaultMind

Quick Start

Add to your MCP client configuration (e.g. claude_desktop_config.json):

{
  "mcpServers": {
    "agledger": {
      "command": "agledger-mcp",
      "args": [
        "--api-key", "your-api-key",
        "--api-url", "https://your-agledger-instance"
      ]
    }
  }
}

Both flags are required. AGLedger is self-hosted, so there is no default server to call: without --api-url the server exits before it accepts a connection.

Or run directly:

agledger-mcp --api-key <key> --api-url <url>

Exit codes: 0 clean, 1 runtime failure, 2 usage or configuration error (missing flag, unknown flag), so a launcher can tell a misconfiguration from a crash.

Tools

Tool

Description

agledger_discover

Returns API health, your identity, available scopes, and a quickstart workflow. Call this first.

agledger_api

Make any AGLedger API call (method, path, params). The API returns nextSteps on every response for self-guided workflow discovery.

agledger_verify

Verify a record audit export offline (COSE_Sign1 envelopes per RFC 9052, hash chain + envelope signatures, Ed25519 or ES256). No network calls. Returns valid, verifiedEntries, and a brokenAt pointer with a canonical failure code on failure. Pass publicKeys to supply keys out of band and requireOutOfBandKeys for an independent audit that refuses the export's embedded keys. Built on the shared @agledger/verify-core.

Resources

Both are fetched live from the running instance, so neither can go stale.

Resource

Description

agledger://llms.txt

The API's agent-oriented documentation narrative (the llms.txt convention): what the product does, the vocabulary, and how records, completions, gates and webhooks fit together. Read this first if you are new to the API.

agledger://openapi

The OpenAPI 3.0 specification, for exact routes and request/response shapes.

Agent workflow

The agledger_discover tool returns a quickstart workflow that guides agents through the accountability flow:

  1. GET /v1/schemas -- list available Record types

  2. GET /v1/schemas/{type} -- get required fields and examples

  3. POST /v1/records -- create a record

  4. POST /v1/records/{id}/completions -- submit a completion (evidence) when done

Every API error response includes a suggestion field with actionable recovery guidance -- agents can self-correct without human intervention.

Configuration

Flag

Env Var

Description

--api-key

AGLEDGER_API_KEY

AGLedger API key (required)

--api-url

AGLEDGER_API_URL

API base URL of your instance (required). AGLedger is self-hosted, so there is no default; the server refuses to start without it.

What is AGLedger?

AGLedger is the accountability layer for automated operations. It notarizes what was agreed to, by whom, and when, and tracks the delegation of that agreement through other systems.

  • Records -- structured commitments with acceptance criteria and tolerance bands

  • Completions -- performer evidence recording what was reported to be done

  • Verdicts -- principal accept/reject decisions on a Completion (the Gate), with settlement signals

  • Audit chain -- notarized records as COSE_Sign1 envelopes, hash-chained, Ed25519-signed, tamper-evident, verifiable offline

Learn more at agledger.ai | API docs

Each self-hosted AGLedger instance also serves interactive Swagger UI at {AGLEDGER_API_URL}/docs.

Requirements

  • Node.js >= 24

  • A running self-hosted AGLedger API instance and an API key (see the self-hosted install guide at agledger.ai)

License

Proprietary. See LICENSE.

AGLedger is a trademark of AGLedger LLC, and Settlement Signal is a pending trademark of AGLedger LLC. All other trademarks are the property of their respective owners. Patent pending.

Install Server
A
license - permissive license
A
quality
A
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    -
    quality
    B
    maintenance
    Offline-first MCP proxy with policy engine and immutable audit trail for secure AI coding agents.
    2
    MIT
  • A
    license
    -
    quality
    D
    maintenance
    Turns any web API into a governed, agent-ready MCP server with lockfile-based approval, fail-closed enforcement, and full audit trail.
    MIT
  • A
    license
    A
    quality
    A
    maintenance
    AI-agent observability server whose distinguishing feature is a SHA-256 hash-chained, tamper-evident audit log with chain verification and signed export. Works with Claude Desktop, Cursor, and any MCP client.
    22
    2
    17
    MIT

View all related MCP servers

Related MCP Connectors

  • Hash-chained HMAC-signed audit log MCP for A2A (agent-to-agent) calls. Every tool-call, agent-ha...

  • Control plane for autonomous software labor. Agents claim objectives over MCP with audit trail.

  • Bitcoin-anchored, tamper-evident audit log for AI agents — record, disclose and verify actions.

View all MCP Connectors

Latest Blog Posts

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/agledger-ai/mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server