Skip to content
MCP server

AgentLedger

Hosted MCP server that meters, caps and logs what AI agents spend

Install
Pricing
Freemium
Platforms
API, CLI
Runs
Remotely
Version
0.4.7
Listing updated
1 day ago

About AgentLedger

AgentLedger is a freemium MCP server for finance and payments. It runs as a hosted remote server, so there is nothing to install locally.

Spend is recorded per agent_id across x402, MPP and API-key payment rails. Each agent gets a monthly budget cap and a report that flags spending anomalies, and the README frames the aim as proof of what every cent bought. Reads require either the agent's own secret or the workspace key; there is no unauthenticated read path.

A new workspace is minted from a /start page with no signup or card, and the key is shown once. The first track call for a new agent_id claims it and returns an agent_secret that authorises later writes. An autonomous agent with a wallet can instead create a workspace by paying through x402. A Python wrapper can sit around an OpenAI client so calls are metered automatically.

The same operator publishes related trust products on the same site, such as package scanning and agent health checks, but this entry covers the spend ledger.

Install

Run in a terminal

claude mcp add --transport http agent-ledger https://aiagentscity.com/mcp/

Add to Settings → Connectors → Add custom connector

https://aiagentscity.com/mcp/
Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "agent-ledger": {
      "url": "https://aiagentscity.com/mcp/"
    }
  }
}
Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to .vscode/mcp.json

{
  "servers": {
    "agent-ledger": {
      "type": "http",
      "url": "https://aiagentscity.com/mcp/"
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "agent-ledger": {
      "serverUrl": "https://aiagentscity.com/mcp/"
    }
  }
}

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "agent-ledger": {
      "type": "http",
      "url": "https://aiagentscity.com/mcp/"
    }
  }
}

What it does

Per-agent spend tracking
Records spend by agent across x402, MPP and API-key rails.
Monthly budget caps
Sets a cap in cents per agent that the ledger enforces.
Anomaly reports
Reports per agent flag unusual spending.
Secret-based isolation
Each agent has its own secret, and reads need a secret or the workspace key.
Wallet-based signup
Agents with a wallet can create a workspace through an x402 payment.
Client wrapper
A Python wrapper meters calls made through an OpenAI client.

Good for

  • Cap what a coding agent can spend per month
  • Keep an audit trail of what agents bought
  • Get alerts when an agent exceeds a daily amount
  • Produce a weekly spend report for a fleet

Pricing

Freemium

Free tier of 3 agents per workspace; paid upgrade available, prices not published

Prices change. Check aiagentscity.com before you buy.

AgentLedger FAQ

Do I need an account?

No login or card. Opening /start creates a workspace and shows the workspace key once.

What does the free tier include?

Three agents per workspace.

How do clients connect?

Point any MCP client at the streamable-http address with no headers; Claude Code, Codex and Cursor examples are given.

Can others read my agent's data?

Reports, tokens and alerts need the agent secret or the workspace key; missing or wrong credentials get a 401.

Is AgentLedger free?

AgentLedger has a free plan, with paid plans for more usage or features.

How do I add AgentLedger to Claude Code?

Run this command in your terminal: claude mcp add --transport http agent-ledger https://aiagentscity.com/mcp/

What are the best alternatives to AgentLedger?

The closest alternatives to AgentLedger are REA, Codebase Memory, GitHub, Serena MCP: the IDE for your agent and XERJ.

Alternatives to AgentLedger

  1. REA

    MCP server

    CLI and MCP server that lets coding agents reverse engineer apps and binaries

    Runs locally
    • Open source
    • 464K GitHub stars
    • Developer tools
  2. Codebase Memory

    MCP server

    Local MCP server that builds a code knowledge graph for AI coding agents

    Runs locally
    • Open source
    • 48.7K GitHub stars
    • Knowledge and memory
  3. GitHub

    MCP server

    Official MCP server connecting AI assistants to GitHub repos, issues and workflows

    Not checked yet
    • Remote
    • Open source
    • 34.5K GitHub stars
    • Developer tools
  4. MCP toolkit giving coding agents symbol-level code retrieval and editing

    Runs locally
    • Open source
    • 31.5K GitHub stars
    • Developer tools
  5. XERJ

    MCP server

    Local search engine for AI agents with cited answers over your code and docs

    Runs locally
    • Open source
    • 19.2K GitHub stars
    • Knowledge and memory
  6. Ouroboros

    MCP server

    Spec-first layer that pins requirements and verifies results of AI coding agent work

    Runs locally
    • Open source
    • 6.4K GitHub stars
    • Developer tools