Skip to main content
Glama
agent-staking-mcp-server

agent-staking-mcp-server

by AiAgentKarl

agent-staking-mcp-server

MCP server for agent reputation staking — trust through skin-in-the-game.

Agents deposit stakes as trust collateral. Bad behavior gets slashed. Good actors build reputation over time. Creates a self-regulating trust layer for the agent economy.

Why Staking?

Traditional reputation systems are cheap to game. Staking changes the incentive structure:

  • Agents that stake signal commitment — they have something to lose

  • Slashing punishes bad behavior with real consequences

  • Network effect — the more agents stake, the more trustworthy the entire network becomes

Related MCP server: Agent Identity MCP Server

Tools

Tool

Description

tool_stake_deposit

Deposit stake as trust collateral

tool_stake_verify

Check an agent's stake and trust tier

tool_reputation_by_stake

Get stake-weighted reputation score (0–100)

tool_slash_stake

Slash an agent's stake for bad behavior

tool_dispute_open

Open a dispute between two agents

tool_dispute_resolve

Resolve a dispute and auto-slash the loser

tool_stake_leaderboard

Ranked list of most trustworthy agents

Trust Tiers

Balance

Tier

0

unverified

1–9 REP

bronze

10–49 REP

silver

50–199 REP

gold

200+ REP

platinum

Installation

pip install agent-staking-mcp-server

Claude Desktop Config

{
  "mcpServers": {
    "agent-staking": {
      "command": "agent-staking-mcp-server"
    }
  }
}

Example Usage

# Deposit stake
stake_deposit("agent-alice", 100, "REP")

# Verify trust
stake_verify("agent-alice")
# → balance: 100, trust_tier: "gold", trust_score: 50.0

# Open dispute
dispute_open("agent-alice", "agent-bob", "Bob failed to deliver, took payment", stake_at_risk=50.0)

# Resolve — Alice wins, Bob gets slashed
dispute_resolve("dispute_12345_agent-al", "agent-alice", "Evidence confirmed non-delivery")
# → agent-bob's stake reduced by 50 REP automatically

# Leaderboard
stake_leaderboard(top_n=5)

How It Works

  1. Deposit: Agents stake REP tokens to prove commitment

  2. Build trust: Longevity + high balance + no slashes = high reputation score

  3. Slash: Bad actors get penalized — slash events are permanent and public

  4. Disputes: Structured conflict resolution with automatic stake enforcement

  5. Leaderboard: Most trustworthy agents ranked for easy discovery

Data is stored locally in ~/.agent_staking_store.json — persistent across restarts.

License

MIT

Available Tools

7 tools
tool_dispute_openA

Open a dispute between two agents.

If the defendant loses, their stake is automatically slashed by the stake_at_risk amount.

Args: claimant_id: Agent filing the complaint defendant_id: Agent being accused description: What happened (will be permanently logged) stake_at_risk: Amount of defendant's stake to slash if they lose

Inputs: claimant_id (required), defendant_id (required), description (required), stake_at_risk.

tool_dispute_resolveA

Resolve an open dispute and optionally slash the loser's stake.

If claimant wins, defendant's stake is automatically slashed by the disputed amount.

Args: dispute_id: ID of the dispute to resolve (from dispute_open) winner_id: Agent ID of the winner (claimant or defendant) resolution_notes: Explanation of the resolution decision

Inputs: dispute_id (required), winner_id (required), resolution_notes (required).

tool_reputation_by_stakeA

Get a stake-weighted reputation score for an agent (0-100).

Combines stake size, slash history, and membership duration. Returns score, grade (A+ to F), and breakdown.

Args: agent_id: Agent identifier to evaluate

Inputs: agent_id (required).

tool_slash_stakeA

Slash an agent's stake for bad behavior (fraud, non-delivery, rule violations).

The slash is permanently recorded in the agent's history. Slash events reduce the agent's trust score and tier.

Args: agent_id: Agent to slash slash_amount: Amount to slash from their stake reason: Description of the bad behavior (logged permanently)

Inputs: agent_id (required), slash_amount (required), reason (required).

tool_stake_depositA

Deposit stake for an agent as a trust proof.

Higher stake = higher trust tier. Tiers: unverified → bronze → silver → gold → platinum. Stake can be slashed for bad behavior.

Args: agent_id: Unique identifier for the agent (e.g. DID, UUID, name) amount: Amount to stake (must be > 0) currency: Currency/token for the stake (default: REP)

Inputs: agent_id (required), amount (required), currency.

tool_stake_leaderboardA

Get the trust leaderboard — top staked agents ranked by trust score.

Shows the most trustworthy agents in the network. Higher stake + no slashes + longer membership = better ranking.

Args: top_n: Number of agents to show (default: 10)

Inputs: top_n.

tool_stake_verifyA

Verify an agent's stake status and trust level.

Returns current balance, trust tier, slash history, and trust score.

Args: agent_id: Agent identifier to look up

Inputs: agent_id (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4/5.0

    Scored across 7 tools

    Disambiguation5/5

    Each tool targets a distinct operation: dispute opening/resolution, stake deposit/verification/leaderboard/slashing, and reputation scoring. No overlapping or ambiguous purposes.

    Naming Consistency4/5

    Most tools follow a noun_verb pattern (e.g., stake_deposit, dispute_open) or verb_noun (slash_stake). However, reputation_by_stake deviates with a preposition, and leaderboard is a noun rather than an action.

    Tool Count5/5

    7 tools cover the core staking and dispute resolution workflows without being too few or excessive. The number feels right for the domain.

    Completeness4/5

    Core CRUD-like operations are present for staking (deposit, verify, slash) and disputes (open, resolve). Missing are a withdraw/unstake tool and perhaps a dispute list, but these are not essential for basic functionality.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      A
      quality
      C
      maintenance
      Reputation and trust scoring service for AI agents, exposed as an MCP server. Evaluate counterparties, report interactions, issue portable trust certificates, and detect Sybil attacks.
      23
      70 PyPI
      -