Skip to main content
Glama

AgentMesh MCP (Lite Edition)

License: MIT Protocol: MCP Python: >=3.10

AgentMesh MCP is a resilient Model Context Protocol (MCP) server designed to coordinate multi-agent AI swarms (Claude, Cursor, CrewAI, LangGraph, custom subagents) without cloud deadlocks, race conditions, or duplicated work.

Powered by a high-throughput, zero-dependency SQLite WAL engine, AgentMesh provides mutual-exclusion task claiming and atomic state transitions so multiple autonomous agents can collaborate seamlessly in parallel.


๐ŸŽฏ The Problem

When running multiple AI agents in parallel:

  1. Collision & Race Conditions: Multiple agents attempt to tackle the same problem or modify the same files simultaneously, destroying each other's work.

  2. Zombie Locks: If an agent times out or crashes during an API call, tasks get stuck indefinitely.

  3. Cloud Overhead: Setting up Redis, RabbitMQ, or Celery just to let 3 local AI agents work together is overkill and introduces privacy leakage.

AgentMesh solves this locally and deterministically with a lightweight, standardized MCP server.


Related MCP server: coordinaut

โœจ Features (Lite Edition)

  • ๐Ÿ”’ Atomic Mutual Exclusion: Guaranteed single-claim mechanics using SQLite WAL BEGIN IMMEDIATE transactions.

  • โšก Zero External Dependencies: Built with pure Python 3 standard library (sqlite3, json, uuid).

  • ๐Ÿ› ๏ธ Full MCP Compliance: Implements MCP standard (tools/list, tools/call, initialize, ping) over stdio.

  • ๐Ÿ“Š Real-time Observability: CLI and MCP tools to inspect swarm board status, active worker counts, and queue depth.


๐Ÿš€ Quickstart

1. Installation

git clone https://github.com/johannschiffer/agentmesh-mcp.git
cd agentmesh-mcp
pip install -e .

2. Configure in Claude Desktop or Cursor

Add to your claude_desktop_config.json or Cursor MCP settings:

{
  "mcpServers": {
    "agentmesh": {
      "command": "python",
      "args": ["-m", "agentmesh.cli", "run"]
    }
  }
}

3. CLI Inspection

Check the current state of your swarm at any time:

# View board metrics
agentmesh status

# List pending or active tasks
agentmesh list --status pending

๐Ÿ› ๏ธ MCP Tools Reference

Tool

Parameters

Description

create_task

title, description, priority, metadata

Adds a task to the queue in pending state

claim_task

agent_id

Atomically claims the highest priority pending task

complete_task

task_id, agent_id, result

Marks task as completed with output payload

fail_task

task_id, agent_id, error

Marks task as failed with error details

get_task

task_id

Retrieves complete task state and payload

list_tasks

status, agent_id, limit

Queries tasks with status and worker filters

get_board_status

none

Returns high-level metrics of the entire swarm


๐Ÿš€ Upgrade to AgentMesh Pro

Need enterprise capabilities for production autonomous swarms?

The AgentMesh Pro Edition adds:

  • โ›“๏ธ DAG Dependency Engine: Complex multi-step task graphs (depends_on). Subtasks stay locked until parents pass. Cycle-detection prevents infinite deadlock loops.

  • ๐Ÿ’“ Heartbeat & Zombie Lease Reclaimer: Automatic detection of crashed or frozen agents. Automatically revokes expired leases back to the pool.

  • ๐Ÿง  ACID Shared Memory Blackboard: Namespaced key-value store with TTL for inter-agent context and artifact sharing.

  • ๐Ÿ“ˆ Swarm Cost & Token Ledger: Telemetry tracking execution time, token burn, and API costs per agent.

  • ๐Ÿณ Production Docker & Compose: Ready-to-ship container configurations.

  • ๐Ÿงช Comprehensive Pytest Suite: 100% test coverage ready for CI/CD.

๐Ÿ‘‰ Get AgentMesh Pro on Gumroad ($14.99 USD)


๐Ÿ“„ License

MIT ยฉ 2026 Johann Schiffer

Available Tools

7 tools
claim_taskB

Atomically claim the highest priority pending task for this agent.

Inputs: agent_id (required).

complete_taskA

Mark an in_progress task as completed with output results.

Inputs: task_id (required), agent_id (required), result.

create_taskC

Create a new task in pending state on the swarm task board.

Inputs: title (required), metadata, priority, description.

fail_taskB

Mark an in_progress task as failed with an error description.

Inputs: task_id (required), agent_id (required), error.

get_board_statusA

Get real-time summary metrics of all swarm tasks and active agents.

Inputs: no named parameters.

get_taskA

Retrieve complete task details, status, and results by task ID.

Inputs: task_id (required).

list_tasksB

Query tasks from the board with optional filtering by status and agent.

Inputs: limit, status, agent_id.

Tool Schema Changelog

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

Loading tool schema changelogโ€ฆ

    TDQS

    A3.6/5.0

    Scored across 7 tools

    Disambiguation5/5

    Each tool maps to a distinct action in the task lifecycle: create, claim, complete, fail, get, list, and board status. The boundaries between query tools (get_task for a single ID vs list_tasks for filtered sets) and mutation tools are clear, so an agent can select confidently.

    Naming Consistency5/5

    Every tool follows a consistent verb_noun snake_case pattern (create_task, claim_task, complete_task, fail_task, get_task, list_tasks, get_board_status). No deviations in style or casing.

    Tool Count5/5

    Seven tools is well-scoped for a swarm task board, with each tool earning its place across create/read/state-transition operations. No redundancy or filler.

    Completeness4/5

    The core task lifecycle (create, claim, complete, fail) plus read/query operations is fully covered. Minor gaps exist, such as releasing/unclaiming a task or updating task fields (priority, metadata), but agents can work around these.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      An atomic key-value store for AI agent coordination, ensuring agents always work with the latest state.
      5
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables agents to decompose a goal into a dependency-aware task tree, atomically claim and update tasks across parallel subagents in dependency waves, and coordinate through a shared progress board with paged notes and crash-safe, lock-protected persistence.
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Local OS for your AI Agents fleets. โ€”โ€”โ€”โ€”โ€”โ€”- Enables AI agents to coordinate through a durable local board with shared state, ticket lifecycle, evidence-based approvals, and journal-woken handoffs.
      2
      Apache 2.0